AgeDiagnostic¶
The AgeDiagnostic intervention class identifies the age threshold of individuals. The minimum and maximum age ranges are configured (for example, 0-5 and 5-20), and the event is based on the resulting age of the individuals. This intervention should be used in conjunction with StandardInterventionDistributionEventCoordinator.
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 does not permit comments, but you can add “dummy” parameters to add contextual information to your files.
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 |
---|---|---|---|---|---|---|
Age_Thresholds |
array of JSON objects |
NA |
NA |
NA |
Used to associate age ranges for individuals. |
{
"class": "AgeDiagnostic",
"Age_Thresholds": [
{
"Low": 0,
"High": 15,
"Event": "AgeMeasured0"
}
]
}
|
Base_Sensitivity |
float |
0 |
1 |
1 |
The sensitivity of the diagnostic. This sets the proportion of the time that individuals with the condition being tested receive a positive diagnostic test. When set to 1, the diagnostic always accurately reflects the condition. When set to zero, then individuals who have the condition always receive a false-negative diagnostic test. |
{
"Base_Sensitivity": 0.8
}
|
Base_Specificity |
float |
0 |
1 |
1 |
The specificity of the diagnostic. This sets the proportion of the time that individuals without the condition being tested receive a negative diagnostic test. When set to 1, the diagnostic always accurately reflects the lack of having the condition. When set to zero, then individuals who do not have the condition always receive a false-positive diagnostic test. |
{
"Base_Specificity": 0.9
}
|
Cost_To_Consumer |
float |
0 |
3.40E+3 |
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
}
|
Days_To_Diagnosis |
float |
0 |
3.40E+3 |
0 |
The number of days from test until diagnosis. |
{
"Days_To_Diagnosis": 0.0
}
|
Enable_IsSymptomatic |
boolean |
0 |
1 |
0 |
If true (1), requires an infection to be symptomatic to return a positive test. |
{
"Enable_IsSymptomatic": 1,
"Base_Specificity": 0.85,
"Base_Sensitivity": 0.92
}
|
Event |
string |
NA |
NA |
“” |
The user-defined name of the diagnostic event. |
{
"class": "AgeDiagnostic",
"Age_Thresholds": [
{
"Low": 0,
"High": 15,
"Event": "AgeMeasured0"
}
]
}
|
High |
float |
0 |
1000 |
NA |
The high end of the age grouping. |
{
"class": "AgeDiagnostic",
"Age_Thresholds": [
{
"Low": 0,
"High": 15,
"Event": "AgeMeasured0"
}
]
}
|
Low |
float |
0 |
1000 |
NA |
The low end of the age grouping. |
{
"class": "AgeDiagnostic",
"Age_Thresholds": [
{
"Low": 0,
"High": 15,
"Event": "AgeMeasured0"
}
]
}
|
Treatment_Fraction |
float |
0 |
1 |
1 |
The fraction of positive diagnoses that are treated. |
{
"Intervention_Config": {
"Base_Sensitivity": 1.0,
"Base_Specificity": 1.0,
"Cost_To_Consumer": 0.0,
"Days_To_Diagnosis": 0.0,
"Event_Or_Config": "Event",
"Positive_Diagnosis_Event": "TestedPositive_CureMeNow",
"Treatment_Fraction": 1.0,
"class": "SimpleDiagnostic"
}
}
|
{
"Use_Defaults": 1,
"Events": [
{
"class": "CampaignEvent",
"Start_Day": 360,
"Nodeset_Config":
{
"class": "NodeSetAll"
},
"Event_Coordinator_Config":
{
"class": "StandardInterventionDistributionEventCoordinator",
"Demographic_Coverage": 1,
"Intervention_Config":
{
"class": "AgeDiagnostic",
"Age_Thresholds": [
{
"Low": 0,
"High": 15,
"Event": "AgeMeasured0"
},
{
"NOTE": "Age ranges need not be exclusive. This event and the next will ffire for a 20 year old.",
"Low": 15,
"High": 25,
"Event": "AgeMeasured1"
},
{
"Low": 15,
"High": 50,
"Event": "AgeMeasured2"
},
{
"Low": 50,
"High": 100,
"Event": "AgeMeasured3"
}
]
}
}
}
]
}