We will use the highest recorded WHO stage for the patient. The definition is pretty straight forward:
Pull all WHO stage observations for the patient (pediatric patients will use "PEDS WHO CATEGORY QUERY" and adult patients will use "CURRENT WHO HIV STAGE" as the question).
Iterate over all observations to retrieve the highest WHO stage information.
This task is to rewrite the WHO stage rule in the current clinical summary module to reporting's data definition.