Skip to content

Commit

Permalink
Use triggered_campaign_delay_event instead of TriggeredCampaignEvent …
Browse files Browse the repository at this point in the history
…internally for routine_immunization function.
  • Loading branch information
Jonathan Bloedow committed Oct 4, 2023
1 parent 6240623 commit 4da7ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emodpy_typhoid/interventions/typhoid_vaccine.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def new_routine_immunization(
"Delay_Period_Max": child_age+7
}

event = common.TriggeredCampaignEvent( camp, Start_Day=start_day, Triggers=["Births"], Demographic_Coverage=coverage, Intervention_List=[ iv ], Node_Ids=node_ids, Property_Restrictions=property_restrictions_list, Event_Name="9-Month 'Typhoid' Vax", Delay=delay )
event = common.triggered_campaign_delay_event( camp, start_day=start_day, trigger="Births", delay=delay, intervention=iv, ip_targeting=property_restrictions_list, coverage=coverage )

return event

Expand Down

0 comments on commit 4da7ad5

Please sign in to comment.