import emod_api.campaign as campaign
import emodpy_malaria.interventions.drug_campaign as drug_campaign
drug_campaign.add_drug_campaign(campaign, ="SMC",
campaign_type=[165],
start_days="SPA",
drug_code=4,
repetitions=30,
tsteps_btwn_repetitions=0.7,
coverage=[{'StudyCohort': 'Treatment'}],
ind_property_restrictions={'agemin': 0.25, 'agemax': 5},
target_group="Received_SMC") receiving_drugs_event_name
Using Individual Properties in Interventions
Most interventions can be targeted to individuals holding specific IP values, typically with the ind_property_restrictions
function argument and setting the desired Individual Property restrictions. This example creates an SMC drug campaign that is limited to individuals in the ‘Treatment’ study cohort group as defined in the demographics file.