emodpy_hiv.interventions.rapiddiag module#
- emodpy_hiv.interventions.rapiddiag.new_diagnostic(camp, Positive_Event, Negative_Event, intervention_name: str | None = None, disqualifying_properties: List[str] | None = None, new_property_value: str | None = None)[source]#
Wrapper function to create and return a HIVRapidHIVDiagnostic intervention.
- Parameters:
camp – emod_api.campaign object with schema_path set.
intervention_name (str) – The name of the intervention.
disqualifying_properties (list of str) – A list of IndividualProperty key:value pairs that cause an intervention to be aborted
new_property_value (str) – An optional IndividualProperty key:value pair that will be assigned when the intervention is distributed.
- Returns:
Schema-based smart dictionary representing a new
- Return type:
ReadOnlyDict