Skip to content

Commit a0fb346

Browse files
committed
add condition for infant testing: mother must be known HIV+ (confirmed with Joe)
linked to PR #732
1 parent 68858ed commit a0fb346

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/scripts/hiv/projections_jan2023/analysis_full_model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
# %% Run the simulation
2525
start_date = Date(2010, 1, 1)
26-
end_date = Date(2021, 1, 1)
26+
end_date = Date(2012, 1, 1)
2727
popsize = 10000
2828
# todo check if deviance_measure needed in fullmodel.py
2929
scenario = 0

src/tlo/methods/newborn_outcomes.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -948,9 +948,11 @@ def hiv_screening_for_at_risk_newborns(self, child_id):
948948
"""
949949
df = self.sim.population.props
950950
child_id = int(child_id)
951+
mother_id = df.at[child_id, 'mother_id']
951952

952953
if 'Hiv' in self.sim.modules:
953-
if not df.at[child_id, 'hv_diagnosed'] and (
954+
# schedule test if child not already diagnosed and mother is known hiv+
955+
if not df.at[child_id, 'hv_diagnosed'] and df.at[mother_id, 'hv_diagnosed'] and (
954956
self.rng.random_sample() < self.sim.modules['Hiv'].parameters['prob_hiv_test_for_newborn_infant']):
955957

956958
if df.at[child_id, 'nb_pnc_check'] == 1:

0 commit comments

Comments
 (0)