You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When moving out of the area, PDU_old marks date_leaving_service and reason_leaving_service in the Transfer model (via Edit Child Details form).
Once patient_1 appears in a Submission under PDU_new, they are included in KPI calculations.
Key Concern
This implementation doesn't explicitly "transfer" a child but relies on:
PDU_old marking them as left (to be excluded from KPIs).
PDU_new including them in a Submission (to be counted in KPIs).
This process is user-dependent, making it non-guaranteed but previously accepted.
KPI Calculation Issue
Currently, KPI calculations ignoreTransfer.date_leaving_service and Transfer.reason_leaving_service, meaning patient_1 may still be included in PDU_old's KPIs even after being marked as left.
Proposed Fix: Exclude Patients Marked as Left
Modify the base queryset for KPI calculations to exclude patients with a date_leaving_service and reason_leaving_service:
Currently, PDU_old includes patient_1 in KPI1 even after leaving.
The proposed change ensures patient_1 is excluded from all calculations in PDU_old once marked as left.
KPIs like KPI5 already exclude these patients correctly.
A change to this base patient queryset will have knock on effects on almost all subsequent KPIs: essentially, if filtered out, they are ignored for almost all KPI calculations
Discussion Points
Does this fix align with expected transfer behaviour?
The text was updated successfully, but these errors were encountered:
I asked chatgpt to summarise and succinct-ize:
Transfer Behaviour
Current Implementation
A "transfer" currently works as follows:
patient_1
is associated withPDU_old
.PDU_old
marksdate_leaving_service
andreason_leaving_service
in theTransfer
model (via Edit Child Details form).patient_1
appears in aSubmission
underPDU_new
, they are included in KPI calculations.Key Concern
This implementation doesn't explicitly "transfer" a child but relies on:
PDU_old
marking them as left (to be excluded from KPIs).PDU_new
including them in aSubmission
(to be counted in KPIs).KPI Calculation Issue
Currently, KPI calculations ignore
Transfer.date_leaving_service
andTransfer.reason_leaving_service
, meaningpatient_1
may still be included inPDU_old
's KPIs even after being marked as left.Proposed Fix: Exclude Patients Marked as Left
Modify the base queryset for KPI calculations to exclude patients with a
date_leaving_service
andreason_leaving_service
:Example Impact of This Change
PDU_old
PDU_new
PDU_old
includespatient_1
in KPI1 even after leaving.patient_1
is excluded from all calculations inPDU_old
once marked as left.Discussion Points
The text was updated successfully, but these errors were encountered: