import emod_api.campaign as campaign
import emodpy_malaria.interventions.diag_survey as diagnostic_survey
import emod_api.interventions.common
= emod_api.interventions.common.BroadcastEvent(campaign, Event_Trigger="Day_0_positive")
parasites_detected = emod_api.interventions.common.BroadcastEvent(campaign, Event_Trigger="Day_0_negative")
no_parasites_detected
=campaign, start_day=0,
diagnostic_survey.add_diagnostic_survey(campaign="TRUE_PARASITE_DENSITY",
diagnostic_type=20,
diagnostic_threshold=['Received_PMC_1'],
trigger_condition_list=[parasites_detected],
positive_diagnosis_configs=[no_parasites_detectedc]) negative_diagnosis_configs
Diagnostic Survey Intervention
Diagnostic surveys are useful interventions for triggering events based on an individual’s diagnosis. Testing can be performed at regular intervals (tsteps_between_repetitions
) for a set number of repetitions
based on target
groups and coverage
. Testing can also be triggered by other events, such as receiving a particular dose of perennial malaria chemoprevention (PMC) in this example.
Different methods of diagnostic testing may also be utilized, including TRUE_PARASITE_DENSITY, BLOOD_SMEAR, PCR, PF_HRP2, TRUE_INFECTION_STATUS, and HAS_FEVER. Diagnostic threshold, sensitivity, and specificity can all be parameterized. Once a positive or negative result is obtained in the simulation, the relative configs parameter dictates what will happen to that individual. In this example, either diagnosis broadcasts an event for that individual that they were positive or negative on the day that they received their first dose of PMC.
Additional targeting and configuration parameters are described here