adherentdrug
adherent_drug(campaign, cost=1, doses=None, dose_interval=1, adherence_values=None, non_adherence_options=None, non_adherence_distribution=None, max_dose_consideration_duration=40, took_dose_event='Took_Dose', intervention_name=None)
Configures adherent drug dictionary using the **AdherentDrug** class, an individual-level
intervention which extends the **AntimalarialDrug** class.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
campaign
|
EMODCampaign
|
campaign object to which the intervention will be added, and schema_path container |
required |
cost
|
int
|
Unit cost per drug. |
1
|
doses
|
list
|
Lists of drugs for each dose. For example,
|
None
|
dose_interval
|
int
|
Interval between doses of drugs, in days. Default is 1. |
1
|
adherence_values
|
list
|
A list defining WaningEffectMapCount waning effect's "Values", to be used to set the probability for a particular dose. Where the "Times" is the dose number inferred from 'doses' parameter and "Values" is the probably of that dose being successfully taken. |
None
|
non_adherence_options
|
list
|
List of enums to define what happens when the user is not adherent. If not defined then NEXT_UPDATE is used. Enum values are: ["STOP", "NEXT_UPDATE", "NEXT_DOSAGE_TIME", "LOST_TAKE_NEXT"]. |
None
|
non_adherence_distribution
|
list
|
Non adherence probability value(s) assigned to the corresponding options in non_adherence_options. There must be one value in this list for each value in non_adherence_options. The sum of these values must equal 1.0. |
None
|
max_dose_consideration_duration
|
int
|
Maximum number of days that an individual will consider taking the doses of the drug. |
40
|
took_dose_event
|
str
|
Event that gets sent out every time a dose is taken. |
'Took_Dose'
|
intervention_name
|
str
|
The optional name used to refer to this intervention as a means to differentiate it from others that use the same class. Default is AdeherentDrug_drug1_drug2 in alphabetical order. |
None
|
Returns: Configured AdherentDrug class dictionary