<prompt> Answer this question truthfullyHow is sleep apnea diagnosed?  <response>: <reason> Sleep apnea is diagnosed via polysomnography, where a patient sleeps in a monitored setting and a number of related measurements are taken. 