Skip to content

Commit

Permalink
co: only appts that require HSI to maintain on need to have a known d…
Browse files Browse the repository at this point in the history
…ate of last appt (#720)
  • Loading branch information
EvaJanouskova committed Oct 18, 2022
1 parent 070d5e7 commit f662f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tlo/methods/contraception.py
Expand Up @@ -187,7 +187,7 @@ def initialise_population(self, population):
)

# 3) Give a notional date on which the last appointment occurred for those that need them
needs_appts = females1549 & df['co_contraception'].isin(self.states_that_may_require_HSI_to_switch_to)
needs_appts = females1549 & df['co_contraception'].isin(self.states_that_may_require_HSI_to_maintain_on)
df.loc[needs_appts, 'co_date_of_last_fp_appt'] = pd.Series([
random_date(
self.sim.date - pd.DateOffset(days=self.parameters['days_between_appts_for_maintenance']),
Expand Down

0 comments on commit f662f5c

Please sign in to comment.