HIVRandomChoice#

The HIVRandomChoice intervention class is based on SimpleDiagnostic, but adds parameters to change the logic in how and where treatment is applied to individuals based on specified probabilities.

Note

Parameters are case-sensitive. For Boolean parameters, set to 1 for true or 0 for false. Minimum, maximum, or default values of “NA” indicate that those values are not applicable for that parameter.

EMOD does not use true defaults; that is, if the dependency relationships indicate that a parameter is required, you must supply a value for it. However, many of the tools used to work with EMOD will use the default values provided below.

JSON format does not permit comments, but you can add “dummy” parameters to add contextual information to your files. Any keys that are not EMOD parameter names will be ignored by the model.

The table below describes all possible parameters with which this class can be configured. The JSON example that follows shows one potential configuration.

Parameter

Data type

Minimum

Maximum

Default

Description

Example

Choice_Names

array of strings

NA

NA

[]

An array of event names to be broadcast if randomly selected, used with Choice_Probabilities.

{
  "Choice_Names": [
    "ARTStaging12",
    "OnART0"
  ],
  "Choice_Probabilities": [
    0.2,
    0.8
  ]
}

Choice_Probabilities

array of floats

[]

An array of probabilities that the event will be selected, used with Choice_Names. Values in map must be normalized to sum to one.

{
  "Choice_Names": [
    "ARTStaging12",
    "OnART0"
  ],
  "Choice_Probabilities": [
    0.2,
    0.8
  ]
}

Cost_To_Consumer

float

0

3.40282e+38

1

The unit ‘cost’ assigned to the diagnostic. Setting Cost_To_Consumer to zero for all other interventions, and to a non-zero amount for one intervention, provides a convenient way to track the number of times the intervention has been applied in a simulation.

{
  "Cost_To_Consumer": 0.333
}

Disqualifying_Properties

array of strings

NA

NA

[]

A list of IndividualProperty key:value pairs that cause an intervention to be aborted (persistent interventions will stop being distributed to individuals with these values). See NodeProperties and IndividualProperties parameters for more information. Generally used to control the flow of health care access. For example, to prevent the same individual from accessing health care via two different routes at the same time.

{
  "Disqualifying_Properties": [
    "InterventionStatus:LostForever"
  ]
}

Dont_Allow_Duplicates

boolean

0

1

0

If an individual’s container has an intervention, set to true (1) to prevent them from receiving another copy of the intervention. Supported by all intervention classes.

{
  "Dont_Allow_Duplicates": 0
}

Intervention_Name

string

NA

NA

HIVRandomChoice

The optional name used to refer to this intervention as a means to differentiate it from others that use the same class.

{
  "Intervention_Config": {
    "class": "HIVRandomChoice",
    "Intervention_Name": "Probabilistic HIV diagnostic"
  }
}

New_Property_Value

string

NA

NA

“”

An optional IndividualProperty key:value pair that will be assigned when the intervention is applied. See NodeProperties and IndividualProperties parameters for more information. Generally used to indicate the broad category of health care cascade to which an intervention belongs to prevent individuals from accessing care through multiple pathways. For example, if an individual must already be taking a particular medication to be prescribed a new one.

{
  "New_Property_Value": "InterventionStatus:None"
}
{
  "Use_Defaults": 1,
  "Campaign_Name": "RandomChoice validation",
  "Events": [
    {
      "class": "CampaignEvent",
      "Event_Name": "RandomChoice event",
      "Start_Day": 1,
      "Nodeset_Config": {
        "class": "NodeSetAll"
      },
      "Event_Coordinator_Config": {
        "class": "StandardInterventionDistributionEventCoordinator",
        "Demographic_Coverage": 1,
        "Intervention_Config": {
          "class": "HIVRandomChoice",
          "Days_To_Diagnosis": 0,
          "Event_Or_Config": "Event",
          "Disqualifying_Properties": [],
          "New_Property_Value": "InterventionStatus:None",
          "Choice_Names": [
            "OnART1",
            "OnART2",
            "OnART4",
            "OnART5"
          ],
          "Choice_Probabilities": [
            0.1,
            0.2,
            0.3,
            0.4
          ]
        }
      }
    }
  ]
}