You should seek medical attention for your child's pain if:
The pain is severe and persistent.
Your child experiences high fever along with pain.
The pain is associated with injury, such as a fall or impact.
There are signs of infection, like redness, warmth, or discharge at the site of pain.
Your child has a medical condition or is taking medications, and the pain is a new or unusual symptom.
It's always better to consult a healthcare professional for a proper evaluation in these situations.