Skip to content

Commit eb95b27

Browse files
Fix typo in cancer PostTreatmentCheck scheduling (#1691)
* Fix discrepancy between use of months and years in the scheduling of PostTreatmentChecks * Make note of remaining discrepancies * making comment and code sync. * make all cancer post treatment checks come after 12 mo and every 12mo --------- Co-authored-by: Tim Hallett <[email protected]>
1 parent e4ef5de commit eb95b27

File tree

6 files changed

+14
-11
lines changed

6 files changed

+14
-11
lines changed

src/tlo/methods/bladder_cancer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ def apply(self, person_id, squeeze_factor):
909909
module=self.module,
910910
person_id=person_id,
911911
),
912-
topen=self.sim.date + DateOffset(years=12),
912+
topen=self.sim.date + DateOffset(months=12),
913913
tclose=None,
914914
priority=0
915915
)
@@ -961,7 +961,7 @@ def apply(self, person_id, squeeze_factor):
961961
module=self.module,
962962
person_id=person_id
963963
),
964-
topen=self.sim.date + DateOffset(years=1),
964+
topen=self.sim.date + DateOffset(months=1),
965965
tclose=None,
966966
priority=0
967967
)

src/tlo/methods/breast_cancer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,8 @@ def apply(self, person_id, squeeze_factor):
865865
)
866866

867867
else:
868-
# Schedule another HSI_BreastCancer_PostTreatmentCheck event in one month
868+
# Schedule another HSI_BreastCancer_PostTreatmentCheck event in three months
869+
# NOTE: interval of check-ups could be subject to reivew.
869870
hs.schedule_hsi_event(
870871
hsi_event=HSI_BreastCancer_PostTreatmentCheck(
871872
module=self.module,

src/tlo/methods/cervical_cancer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,13 +1379,13 @@ def apply(self, person_id, squeeze_factor):
13791379
df.at[person_id, 'ce_current_cc_diagnosed'] = False
13801380
df.at[person_id, 'ce_cured_date_cc'] = self.sim.date
13811381

1382-
# Schedule a post-treatment check for 3 months:
1382+
# Schedule a post-treatment check for 12 months:
13831383
hs.schedule_hsi_event(
13841384
hsi_event=HSI_CervicalCancer_Treatment_PostTreatmentCheck(
13851385
module=self.module,
13861386
person_id=person_id,
13871387
),
1388-
topen=self.sim.date + DateOffset(months=3),
1388+
topen=self.sim.date + DateOffset(months=12),
13891389
tclose=None,
13901390
priority=0
13911391
)

src/tlo/methods/oesophagealcancer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ def apply(self, person_id, squeeze_factor):
803803
module=self.module,
804804
person_id=person_id,
805805
),
806-
topen=self.sim.date + DateOffset(years=12),
806+
topen=self.sim.date + DateOffset(months=12),
807807
tclose=None,
808808
priority=0
809809
)
@@ -855,7 +855,7 @@ def apply(self, person_id, squeeze_factor):
855855
module=self.module,
856856
person_id=person_id
857857
),
858-
topen=self.sim.date + DateOffset(years=1),
858+
topen=self.sim.date + DateOffset(months=1),
859859
tclose=None,
860860
priority=0
861861
)

src/tlo/methods/other_adult_cancers.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,12 +796,13 @@ def apply(self, person_id, squeeze_factor):
796796
df.at[person_id, "oac_stage_at_which_treatment_given"] = df.at[person_id, "oac_status"]
797797

798798
# Schedule a post-treatment check for 12 months:
799+
# NOTE: interval of check-ups could be subject to reivew.
799800
hs.schedule_hsi_event(
800801
hsi_event=HSI_OtherAdultCancer_PostTreatmentCheck(
801802
module=self.module,
802803
person_id=person_id,
803804
),
804-
topen=self.sim.date + DateOffset(months=3),
805+
topen=self.sim.date + DateOffset(months=12),
805806
tclose=None,
806807
priority=0
807808
)
@@ -850,7 +851,8 @@ def apply(self, person_id, squeeze_factor):
850851
)
851852

852853
else:
853-
# Schedule another HSI_OtherAdultCancer_PostTreatmentCheck event in one month
854+
# Schedule another HSI_OtherAdultCancer_PostTreatmentCheck event in three months
855+
# NOTE: interval of check-ups could be subject to reivew.
854856
hs.schedule_hsi_event(
855857
hsi_event=HSI_OtherAdultCancer_PostTreatmentCheck(
856858
module=self.module,

src/tlo/methods/prostate_cancer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -975,13 +975,13 @@ def apply(self, person_id, squeeze_factor):
975975
)
976976

977977
else:
978-
# Schedule another HSI_ProstateCancer_PostTreatmentCheck event in one month
978+
# Schedule another HSI_ProstateCancer_PostTreatmentCheck event in 12 months
979979
hs.schedule_hsi_event(
980980
hsi_event=HSI_ProstateCancer_PostTreatmentCheck(
981981
module=self.module,
982982
person_id=person_id
983983
),
984-
topen=self.sim.date + DateOffset(years=1),
984+
topen=self.sim.date + DateOffset(months=12),
985985
tclose=None,
986986
priority=0
987987
)

0 commit comments

Comments
 (0)