The child was diagnosed with an acute otitis media, also known as an ear infection.
Acute otitis media commonly affects the middle ear.
A high fever is a common symptom of acute otitis media.
The child was crying due to a painful ear caused by acute otitis media.