Skip to content

Commit

Permalink
brc & co: rm the dummy examples of equipment from modules
Browse files Browse the repository at this point in the history
  • Loading branch information
EvaJanouskova committed Nov 15, 2023
1 parent 0ee28bc commit 943229c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
6 changes: 0 additions & 6 deletions src/tlo/methods/breast_cancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down
10 changes: 1 addition & 9 deletions src/tlo/methods/contraception.py
Original file line number Diff line number Diff line change
Expand Up @@ -1253,8 +1253,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:
Expand All @@ -1279,13 +1278,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"

Expand Down

0 comments on commit 943229c

Please sign in to comment.