Skip to content

Commit 0e66cfa

Browse files
fix level of Tomography appointment (#1606)
* trigger Tomography appt at level 3 * check for key without creating list of keys --------- Co-authored-by: Tim Hallett <[email protected]>
1 parent c466a38 commit 0e66cfa

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/tlo/methods/rti.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3344,13 +3344,12 @@ def apply(self, person_id, squeeze_factor):
33443344
road_traffic_injuries = self.sim.modules['RTI']
33453345
road_traffic_injuries.rti_injury_diagnosis(person_id, self.EXPECTED_APPT_FOOTPRINT)
33463346

3347-
if 'DiagRadio' in list(self.EXPECTED_APPT_FOOTPRINT.keys()):
3348-
self.add_equipment(self.healthcare_system.equipment.from_pkg_names('X-ray'))
3349-
3350-
elif 'Tomography' in list(self.EXPECTED_APPT_FOOTPRINT.keys()):
3347+
if 'Tomography' in self.EXPECTED_APPT_FOOTPRINT:
33513348
self.ACCEPTED_FACILITY_LEVEL = '3'
33523349
self.add_equipment({'Computed Tomography (CT machine)', 'CT scanner accessories'})
33533350

3351+
self.add_equipment(self.healthcare_system.equipment.from_pkg_names('X-ray'))
3352+
33543353
def did_not_run(self, *args, **kwargs):
33553354
pass
33563355

0 commit comments

Comments
 (0)