Go through these in order and stop at the first one that applies. If you are reading this for someone else, answer for them.
Seek urgent or emergency care for new neurologic symptoms, severe breathing difficulty, fainting, seizure, a sudden extreme headache, or symptoms that continue to worsen despite descent.
And for anyone, someone who:
And for anyone, someone who:
A mild headache that fully resolves after acclimatization or descent usually does not require routine medical testing.
The person should remain alert for returning symptoms if they ascend again during the same trip.
Arrange a routine medical appointment if headaches repeatedly occur at relatively modest elevations, continue after returning to low elevation, or are different from previous headaches.
Follow-up is also useful after AMS that required prescription treatment or interrupted a trip.
A clinician can review other possible causes and help plan a safer future ascent.
The article also says
Anyone who has had HACE, HAPE, confusion, loss of coordination, or severe breathing symptoms should receive medical evaluation.
Future high-altitude travel should be discussed with a clinician experienced in altitude medicine.
Every sign above is quoted from the sofidex article on Altitude headache. If you are not sure, err upward — it is always reasonable to be checked.