Skip to content

Commit f1ae3c6

Browse files
tdm32tbhallett
andauthored
Equipment: adding equipment to HIV, TB and malaria (#1710)
* merge in master * incoming changes from master * set up scenarios * add required equipment to HSIs * add equipment package for inpatient care * Make all COPD HSI have same treatment_id * remove unncesary equipment of in-paitent, which is added automatically when bed-days are declared. --------- Co-authored-by: Tim Hallett <[email protected]>
1 parent 36cadc8 commit f1ae3c6

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

src/tlo/methods/copd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ class HSI_Copd_TreatmentOnModerateExacerbation(HSI_Event, IndividualScopeEventMi
570570
def __init__(self, module, person_id):
571571
super().__init__(module, person_id=person_id)
572572

573-
self.TREATMENT_ID = "Copd_Treatment_Moderate"
573+
self.TREATMENT_ID = "Copd_Treatment"
574574
self.ACCEPTED_FACILITY_LEVEL = "1a"
575575
self.EXPECTED_APPT_FOOTPRINT = self.make_appt_footprint({"Over5OPD": 1})
576576

src/tlo/methods/hiv.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2908,6 +2908,7 @@ def do_at_continuation(self, person_id):
29082908
if (self.module.rng.random_sample(size=1) <
29092909
p['dispensation_period_months'] / p['interval_for_viral_load_measurement_months']):
29102910
_ = self.get_consumables(item_codes=self.module.item_codes_for_consumables_required['vl_measurement'])
2911+
self.add_equipment({'Centrifuge'})
29112912

29122913
# Check if drugs are available, and provide drugs:
29132914
drugs_available = self.get_drugs(age_of_person=person["age_years"])

src/tlo/methods/malaria.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,8 +1312,10 @@ def apply(self, person_id, squeeze_factor):
13121312
df.at[person_id, 'ma_tx_counter'] += 1
13131313

13141314
# Add used equipment
1315-
self.add_equipment({'Drip stand', 'Haemoglobinometer',
1316-
'Analyser, Combined Chemistry and Electrolytes'})
1315+
self.add_equipment({'Drip stand',
1316+
'Haemoglobinometer',
1317+
'Analyser, Combined Chemistry and Electrolytes',
1318+
})
13171319

13181320
# rdt is offered as part of the treatment package
13191321
# Log the test: line-list of summary information about each test

src/tlo/methods/tb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1827,7 +1827,7 @@ def apply(self, person_id, squeeze_factor):
18271827
)
18281828
if test_result is not None:
18291829
# Add used equipment
1830-
self.add_equipment({'Sputum Collection box', 'Ordinary Microscope'})
1830+
self.add_equipment({'Sputum Collection box', 'Ordinary Microscope', 'Centrifuge'})
18311831

18321832
elif test == "xpert":
18331833

0 commit comments

Comments
 (0)