A higher proportion of P falciparum cases received appropriate treatment with artemisinin based combination therapy when malaria was diagnosed by rapid diagnostic test ( 82 % , 58/71 v 32 % , 24/76 ; 9.2 , 3.88 to 21.66 , P < 0.001 ) .