Just to clarify - is this what you want for each of these scenarios?
Patient A: Hospital A -> Discharged, alive for 30 days -> Admitted to Hospital B -> Discharged after 1 day -> Alive after 30 days
Patient A will count as a success (for Hospital A).
Patient B: Hospital A -> Discharged, alive for 3 days -> Dies at day 15
Patient B will count as a failure (for Hospital A).
Patient C: Hospital A -> Discharged, alive for 29 days -> Admitted to Hospital B -> Discharged after 1 day -> Alive after 30 days
Patient C will count as a success (for Hospital B).
Patient 😧 Hospital A -> Discharged, alive for 29 days -> Admitted to Hospital B -> Discharged after 1 day -> Dies at day 7
Patient D will count as a failure (for Hospital B).
Patient E: Hospital A -> Discharged, alive for 29 days -> Admitted to Hospital B -> Discharged after 1 day -> Contact lost after 10 days.
Patient E will count as "missing data".
If the above are correct, can't you ascribe success, failure, or missing to each patient in a DATA step?
- If the patient has not died, then find the "oldest" 30 day period of survival and ascribe to the Hospital immediately prior.
-- If there are no periods of survival >29 days, then this patient counts as missing.
- If the patient has died, ascribe to the Hospital immediately prior.
... View more