From 3eb22d4dad4d5c6368906ff160c121f22a5fcfa6 Mon Sep 17 00:00:00 2001 From: Eva Janouskova Date: Wed, 20 Sep 2023 17:44:03 +0100 Subject: [PATCH] brc & co: rm the dummy examples of equipment from modules --- src/tlo/methods/breast_cancer.py | 6 ------ src/tlo/methods/contraception.py | 10 +--------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/tlo/methods/breast_cancer.py b/src/tlo/methods/breast_cancer.py index aef476c870..1ce9ad2bf6 100644 --- a/src/tlo/methods/breast_cancer.py +++ b/src/tlo/methods/breast_cancer.py @@ -646,8 +646,6 @@ def __init__(self, module, person_id): self.TREATMENT_ID = "BreastCancer_Investigation" self.EXPECTED_APPT_FOOTPRINT = self.make_appt_footprint({"Over5OPD": 1, "Mammography": 1}) self.ACCEPTED_FACILITY_LEVEL = '3' # Biopsy only available at level 3 and above. - self.EQUIPMENT = {'Slice Master sample processing Unit', 'Paraffin Dispense', 'Whatever used with biopsy'} - # biopsy always performed with this HSI, hence always used the same set of equipment def apply(self, person_id, squeeze_factor): df = self.sim.population.props @@ -761,10 +759,6 @@ def apply(self, person_id, squeeze_factor): df.at[person_id, "brc_date_treatment"] = self.sim.date df.at[person_id, "brc_stage_at_which_treatment_given"] = df.at[person_id, "brc_status"] - # Update equipment used with treatment - # NB. read only with HSI run and healthsystem.summary logger set at the level INFO or higher - self.EQUIPMENT.update({'Anything used for mastectomy as I guess this is about'}) - # Schedule a post-treatment check for 12 months: hs.schedule_hsi_event( hsi_event=HSI_BreastCancer_PostTreatmentCheck( diff --git a/src/tlo/methods/contraception.py b/src/tlo/methods/contraception.py index e22d31f9db..bff0675d16 100644 --- a/src/tlo/methods/contraception.py +++ b/src/tlo/methods/contraception.py @@ -1261,8 +1261,7 @@ def apply(self, person_id, squeeze_factor): items_all = {**items_essential, **items_optional} # Determine whether the contraception is administrated (ie all essential items are available), - # if so do log the availability of all items and record used equipment if any, if not set the contraception to - # "not_using": + # if so do log the availability of all items, if not set the contraception to "not_using": co_administrated = all(v for k, v in cons_available.items() if k in items_essential) if co_administrated: @@ -1287,13 +1286,6 @@ def apply(self, person_id, squeeze_factor): _new_contraceptive = self.new_contraceptive - # Update equipment when needed - # NB. read only with HSI run and healthsystem.summary logger set at the level of logger.INFO or higher - if _new_contraceptive == 'female_sterilization': - self.EQUIPMENT.update({'Smt used to sterilize a woman'}) - elif _new_contraceptive == 'IUD': - self.EQUIPMENT.update({'Equipment used when performing IUD'}) - else: _new_contraceptive = "not_using"