Each child was visited twice weekly ; tympanic temperature was measured , and if the child had a fever or history of fever , a malaria rapid diagnostic test was performed and a blood smear collected .