drug_campaign
add_IPTi(campaign, start_day=1, triggered_campaign_delay=None, trigger_name=None, coverage=1, trigger_coverage=1, drug_configs=None, listening_duration=-1, delay_distribution=None, node_ids=None, ind_prop_restr_birthtrigger_event=None, ind_property_restrictions=None)
This function adds two intervention types and multiple deployments to your campaign file: 1) "IPTi" (IPTi eligible) - triggered campaign_delay_event of "Births" event with a "triggered_campaign_delay" option, with "demographic_coverage". 2) "Received_IPTi" event-triggered MultiIntervention event distributing "drug_configs" drugs, with "coverage" to specify custom coverages at the triggered campaign_delay_event.
Upon "Births" event a delayed "IPTi" is sent out, which triggers giving drugs in a separate event "Received_IPTi".
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
campaign
|
EMODCampaign
|
The |
required |
start_day
|
int
|
The day the intervention is distributed. Default is 0. |
1
|
trigger_coverage
|
float
|
Used to create BroadcastEvent to trigger IPTi campaign after Births. Default is 1 (i.e. all infants are captured by health system to reach an age eligible for IPTi). |
1
|
coverage
|
float
|
The proportion of the population covered by the intervention (fraction of infants receiving IPTi) |
1
|
drug_configs
|
list
|
List of dictionaries of drug configurations to be distributed, created in add_drug_campaign. |
None
|
listening_duration
|
int
|
Duration of the existence of the intervention. Default is ongoing. |
-1
|
delay_distribution
|
dict
|
Dictionary of parameters that define the distribution for duration at node, including the distribution Default: None Durations are in days. Examples:: |
None
|
triggered_campaign_delay
|
int
|
When using trigger_condition_list, this indicates the delay period between receiving the trigger event and running the triggered campaign intervention (days after Births at which infant is eligible for IPTi). This is ignored if delay_distribution is not None. |
None
|
trigger_name
|
str
|
Name of broadcast event sent out after trigger event. Also used as in drug campaign with default "Received_{trigger_name}" Example: "IPTi_{x}" with x = number of IPTi dose |
None
|
node_ids
|
list
|
The list of nodes to apply this intervention to (Node_List parameter). If not provided, set value of NodeSetAll. |
None
|
ind_property_restrictions
|
list
|
List of IndividualProperty key:value pairs that
individuals must have to receive the diagnostic intervention.
For example, |
None
|
Source code in emodpy_malaria/interventions/drug_campaign.py
797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 | |
add_MDA(campaign, start_days=None, coverage=1.0, drug_configs=None, receiving_drugs_event=None, repetitions=1, tsteps_btwn_repetitions=60, node_ids=None, expire_recent_drugs=None, ind_property_restrictions=None, disqualifying_properties=None, target_group='Everyone', trigger_condition_list=None, listening_duration=-1, triggered_campaign_delay=0, target_residents_only=1, check_eligibility_at_trigger=False)
Add an MDA (mass drug administration) drug intervention to your campaign.
See func:
add_drug_campaign for more information about each
argument.
Source code in emodpy_malaria/interventions/drug_campaign.py
353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 | |
add_MSAT(campaign, start_days=None, coverage=1.0, drug_configs=None, receiving_drugs_event=None, repetitions=1, tsteps_btwn_repetitions=60, treatment_delay=0, diagnostic_type='BLOOD_SMEAR_PARASITES', diagnostic_threshold=40, measurement_sensitivity=0.1, node_ids=None, expire_recent_drugs=None, ind_property_restrictions=None, disqualifying_properties=None, target_group='Everyone', trigger_condition_list=None, triggered_campaign_delay=0, listening_duration=-1, check_eligibility_at_trigger=False)
Add an MSAT (mass screening and treatment) drug intervention to your
campaign. See func:
add_drug_campaign for more information about each
argument.
Source code in emodpy_malaria/interventions/drug_campaign.py
add_drug_campaign(campaign, campaign_type='MDA', drug_code=None, start_days=None, coverage=1.0, repetitions=1, tsteps_btwn_repetitions=60, diagnostic_type='BLOOD_SMEAR_PARASITES', diagnostic_threshold=40, measurement_sensitivity=0.1, fmda_radius=0, node_selection_type='DISTANCE_ONLY', trigger_coverage=1.0, trigger_name=None, snowballs=0, treatment_delay=0, triggered_campaign_delay=0, delay_distribution=None, node_ids=None, target_group='Everyone', drug_ineligibility_duration=0, ind_property_restrictions=None, ind_prop_restr_birthtrigger_event=None, disqualifying_properties=None, trigger_condition_list=None, listening_duration=-1, adherent_drug_configs=None, target_residents_only=1, check_eligibility_at_trigger=False, receiving_drugs_event_name='Received_Campaign_Drugs')
Add a drug intervention campaign from a list of malaria campaign types.
This intervention uses the
:doc:emod/parameter-campaign-individual-malariadiagnostic class
to create either a scheduled or a triggered event to the campaign and the
:doc:emod/parameter-campaign-individual-antimalarialdrug class
to configure drug interventions. You can also specify a delay period for a
triggered event that broadcasts afterwards. If the campaign is repeated
or triggered, separate
:doc:emod/parameter-campaign-node-nodelevelhealthtriggerediv
interventions are created with a delay that sends an event to distribute
drugs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
campaign
|
EMODCampaign
|
The |
required |
campaign_type
|
str
|
The type of drug campaign. Available options are: MDA - Add a mass drug administration intervention. MSAT - Add a mass screening and treatment intervention. SMC - Add a seasonal malaria chemoprevention intervention. fMDA- Add a focal mass drug administration intervention based on results from a diagnostic survey, which is either scheduled or triggered (when trigger_condition_list is present). MTAT- Add a mass testing and treatment intervention. rfMSAT -Add a reactive focal mass screening and treatment intervention. Detecting malaria triggers diagnostic surveys to run on neighboring nodes and so on, up to the number of triggered interventions defined in the snowballs parameter. rfMDA - Add a reactive focal mass drug administration intervention. This triggers to broadcast a "Give_Drugs_rfMDA" event, which triggers to distribute drugs and a "Received_Treatment" event followed by a delayed "Give_Drugs_rfMDA" event to neighboring nodes, which will trigger another drug distribution. PMC - |
'MDA'
|
drug_code
|
str
|
The code of the drug regimen to distribute. This must be
listed in the |
None
|
start_days
|
list
|
List of start days (integers) when the drug regimen will be distributed. Due to diagnostic/treatment configuration, the earliest start day is 1. When trigger_condition_list is used, the first entry of start_days is the day to start listening for the trigger(s). |
None
|
coverage
|
float
|
The demographic coverage of the distribution (the fraction of people at home during the campaign). |
1.0
|
repetitions
|
int
|
The number of repetitions. |
1
|
tsteps_btwn_repetitions
|
int
|
The timesteps between the repetitions. |
60
|
diagnostic_type
|
str
|
The setting for Diagnostic_Type in
:doc: |
'BLOOD_SMEAR_PARASITES'
|
diagnostic_threshold
|
float
|
The setting for Diagnostic_Threshold in
:doc: |
40
|
measurement_sensitivity
|
float
|
The setting for Measurement_Sensitivity
in :doc: |
0.1
|
fmda_radius
|
int
|
Radius (in km) of focal response upon finding infection. Used in simulations with many small nodes to simulate community health workers distributing drugs to surrounding houses. Used when campaign_type is set to fMDA. |
0
|
node_selection_type
|
str
|
The setting for Node_Selection_Type in
:doc: |
'DISTANCE_ONLY'
|
trigger_coverage
|
float
|
The fraction of trigger events that will trigger reactive case detection (RCD). Used when campaign_type is set to rfMSAT or rfMDA. To set the fraction of individuals reached during RCD response, use coverage. |
1.0
|
trigger_name
|
str
|
Name of broadcast event sent out after trigger event. Also used as in drug campaign with default "Received_{trigger_name}" Example: "IPTi_{x}" with x = number of IPTi dose |
None
|
snowballs
|
int
|
The number of times each triggered intervention will be distributed to surrounding nodes. For example, one snowball gives drugs to nodes neighboring the first node and two snowballs gives drugs to the nodes neighboring those nodes. Used when campaign_type is set to rfMSAT. |
0
|
treatment_delay
|
int
|
For campaign_type set to MSAT or fMDA, the length of time between administering a diagnostic and giving drugs; for values of rfMSAT or rfMDA, the length of time between treating the index case and triggering an RCD response. |
0
|
triggered_campaign_delay
|
int
|
When using trigger_condition_list, this indicates the delay period between receiving the trigger event and running the triggered campaign intervention. |
0
|
delay_distribution
|
dict
|
For triggered_campaign_delay_event used in IPTi campaign, dictionary of parameters that define the distribution for duration at node, including the distribution Default: None Durations are in days. Examples:: |
None
|
node_ids
|
list
|
The setting for Node_List in :ref: |
None
|
target_group
|
any
|
A dictionary of |
'Everyone'
|
drug_ineligibility_duration
|
int
|
The number of days to set the DrugStatus
individual property to RecentDrug, after which the property value
is reverted. This property value prevents people from receiving drugs too
frequently, but they can still receive diagnostics during this period.
For more information, see :doc: |
0
|
ind_property_restrictions
|
list
|
The setting for Property_Restrictions_Within_Node
in :doc: |
None
|
ind_prop_restr_birthtrigger_event
|
list
|
List of IndividualProperty key:value pairs that
individuals must have to create trigger event for the intervention.
For example, |
None
|
disqualifying_properties
|
list
|
The setting for Disqualifying_Properties
in :doc: |
None
|
trigger_condition_list
|
list
|
The setting for Start_Trigger_Condition_List in
:doc: |
None
|
listening_duration
|
int
|
The setting for Duration in
:doc: |
-1
|
adherent_drug_configs
|
list
|
List of adherent drug configurations, which are dictionaries from configure_adherent_drug. |
None
|
target_residents_only
|
int
|
The setting for Target_Residents_Only in
:doc: |
1
|
check_eligibility_at_trigger
|
bool
|
Set to True to check the individual or node's eligibility at the initial trigger; set to False to check eligibility when the event is actually distributed after a delay. |
False
|
receiving_drugs_event_name
|
str
|
The event to broadcast when a person receives drugs. |
'Received_Campaign_Drugs'
|
Returns:
| Type | Description |
|---|---|
dict
|
A dictionary with drug campaign parameters. |
Source code in emodpy_malaria/interventions/drug_campaign.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 | |
add_fMDA(campaign, start_days=None, trigger_coverage=1, coverage=1, drug_configs=None, receiving_drugs_event=None, repetitions=1, tsteps_btwn_repetitions=365, treatment_delay=0, diagnostic_type='BLOOD_SMEAR_PARASITES', diagnostic_threshold=40, measurement_sensitivity=0.1, fmda_radius=0, node_selection_type='DISTANCE_ONLY', node_ids=None, expire_recent_drugs=None, ind_property_restrictions=None, disqualifying_properties=None, target_group='Everyone', trigger_condition_list=None, listening_duration=-1, triggered_campaign_delay=0, check_eligibility_at_trigger=False)
Add an fMDA (focal mass drug administration) drug intervention to your
campaign. See func:
add_drug_campaign for more information about each
argument.
Source code in emodpy_malaria/interventions/drug_campaign.py
518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 | |
add_rfMDA(campaign, start_day=0, coverage=1, drug_configs=None, receiving_drugs_event=None, listening_duration=-1, treatment_delay=0, trigger_coverage=1, fmda_radius=0, node_selection_type='DISTANCE_ONLY', node_ids=None, expire_recent_drugs=None, ind_property_restrictions=None, disqualifying_properties=None)
Add an rfMDA (reactive focal mass drug administration) drug intervention
to your campaign. See func:
add_drug_campaign for more information
about each argument.
Source code in emodpy_malaria/interventions/drug_campaign.py
add_rfMSAT(campaign, start_day=0, coverage=1, drug_configs=None, receiving_drugs_event=None, listening_duration=-1, treatment_delay=0, trigger_coverage=1, diagnostic_type='BLOOD_SMEAR_PARASITES', diagnostic_threshold=40, measurement_sensitivity=0.1, fmda_radius=0, node_selection_type='DISTANCE_ONLY', snowballs=0, node_ids=None, expire_recent_drugs=None, ind_property_restrictions=None, disqualifying_properties=None)
Add a rfMSAT (reactive focal mass screening and treatment) drug intervention to your
campaign. See func:
add_drug_campaign for more information about each
argument.
Source code in emodpy_malaria/interventions/drug_campaign.py
drug_configs_from_code(campaign, drug_code=None)
Add a single or multiple drug regimen to the configuration file based
on its code and add the corresponding
:doc:emod/parameter-campaign-individual-antimalarialdrug
intervention to the return dictionary. For example, passing the ALP drug
code will add the drug configuration for artemether, lumefantrine, and
primaquine to the configuration file and will return a dictionary containing a
full treatment course for those three drugs. For more information, see
Malaria_Drug_Params in :doc:emod/parameter-configuration-drugs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
campaign
|
EMODCampaign
|
The |
required |
drug_code
|
str
|
The code of the drug regimen. This must be listed in the |
None
|
Returns:
| Type | Description |
|---|---|
dict
|
A dictionary containing the intervention for the given drug regimen. |
Source code in emodpy_malaria/interventions/drug_campaign.py
fmda_cfg(campaign, fmda_type=0, node_selection_type='DISTANCE_ONLY', event_trigger='Give_Drugs')
Create an fMDA (focal mass drug administration) configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fmda_type
|
any
|
The setting for Max_Distance_To_Other_Nodes_Km in
:doc: |
0
|
node_selection_type
|
str
|
The setting for Node_Selection_Type in
:doc: |
'DISTANCE_ONLY'
|
event_trigger
|
str
|
The setting for Event_Trigger in
:doc: |
'Give_Drugs'
|
Returns:
| Type | Description |
|---|---|
BroadcastEventToOtherNodes
|
Configured intervention. |