Pediatricians determine activity restrictions based on the child’s medical history, current health status, and specific condition. They consider factors such as the severity of the condition, the type of treatment received, and the expected recovery timeline.