Medical advice should be sought if the child experiences severe pain, pain that does not improve with home management, or pain that is accompanied by other symptoms such as fever, vomiting, or changes in behavior. Persistent or recurrent pain should also be evaluated by a healthcare professional to rule out any underlying conditions.