The primary outcome was the proportion of patients treated in accordance with WHO malaria treatment guidelines , which is a composite indicator of whether patients were tested for malaria and given appropriate treatment consistent with the test result .