Skip to content

refactor virtual wards - #106

Merged
tomjemmett merged 4 commits into
mainfrom
refactor_virtual_wards
May 16, 2025
Merged

refactor virtual wards#106
tomjemmett merged 4 commits into
mainfrom
refactor_virtual_wards

Conversation

@tomjemmett

Copy link
Copy Markdown
Member
  • refactor virtual wards
  • refactors inpatient mitigators script

previously we defined all of the logic in activity avoidance, then imported activity avoidance into efficiencies.

however, that could cause an error as the activity avoidance mitigators would try to be defined twice when run with the reflective import (in raw_data.inpatients_mitigators.py).

moved the logic into a new 'shared' folder where we can re-use logic as needed
previously used some logic for reporting errors but continuing anyway.

this was useful when initially building, but it can mask errors.

this forces errors to be shown and stop excecution (so, tasks will fail)
@tomjemmett
tomjemmett requested a review from StatsRhian as a code owner May 16, 2025 13:06
@tomjemmett tomjemmett added this to the v3.6.0 milestone May 16, 2025
@tomjemmett tomjemmett added the enhancement New feature or request label May 16, 2025
@tomjemmett tomjemmett self-assigned this May 16, 2025
@tomjemmett tomjemmett added the enhancement New feature or request label May 16, 2025
@tomjemmett
tomjemmett requested a review from yiwen-h May 16, 2025 13:06
Comment thread raw_data/mitigators/ip/efficiency/virtual_wards.py Outdated
@tomjemmett
tomjemmett requested a review from yiwen-h May 16, 2025 14:24
@tomjemmett
tomjemmett merged commit 62dbe61 into main May 16, 2025
@tomjemmett
tomjemmett deleted the refactor_virtual_wards branch May 16, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants