Discharged to community: Difference between revisions
Ttenbergen (talk | contribs) →SAS code in the context of Readmission to MedWard: cleaned up formatting/indents |
Ttenbergen (talk | contribs) →SAS code in the context of Readmission to MedWard: tab to space for mw markup |
||
Line 24: | Line 24: | ||
if (0 le diff le 7) /* within one week included */ | if (0 le diff le 7) /* within one week included */ | ||
and ( | and ( | ||
tolocation in ('Home','HSC Lennox Bell') | |||
OR toloctype in ('hospice','PCH','ambulatory care') | OR toloctype in ('hospice','PCH','ambulatory care') | ||
OR toregion in ('out-of-WPG','out-of-MB','out-of-CAN') | OR toregion in ('out-of-WPG','out-of-MB','out-of-CAN') | ||
Line 30: | Line 30: | ||
or ( lagFromLoctype in ('ER','ambulatory care' ) | or ( lagFromLoctype in ('ER','ambulatory care' ) | ||
/* (came from ER or ambulatory care) | |||
and ( lagPreInptLocation in ('NA / not applicable',' ') | |||
or lagInptRegion in ('out-of-WPG','out-of-MB','out-of-CAN') | |||
) | |||
/* was (not an in-patient or in-patient from outside of Winnipeg before that) | |||
or lagFromHospital in ('Children' | |||
,'Misericordia' | |||
,'Manitoba Adolescent Treatment Center' | |||
,'River Ridge Transition Care Environment' | |||
) | |||
/* or Children & Misericordia */ | |||
) | |||
Line 49: | Line 49: | ||
/* next admit from Home */ | /* next admit from Home */ | ||
or lagFromLoctype in ('PCH') | |||
/* next admit from nursing home */ | /* next admit from nursing home */ | ||
) | ) | ||
Line 56: | Line 56: | ||
else readm7=0; /* discharged to hospital ward,ICUs,OR,RR excluded*/ | else readm7=0; /* discharged to hospital ward,ICUs,OR,RR excluded*/ | ||
if AMA=1 and readm7=1 then readm7=0; /* AMA is excluded to readmission */ | |||
if palliative=1 and readm7=1 then readm7=0; /*palliative excluded */ | |||
/* EMIP pts moving to another ward is not readmission */ | |||
if Ward='EMIP' and (0 le diff le 7) and lagfromloctype in ('ER') then do; | |||
readm7=0; end; | |||
/* Same Visit_Admit_DtTm is not readmission */ | |||
if nextvisit=Visit_Admit_DtTm then do; | |||
readm7=0; end; | |||
}} | }} | ||
[[Category:Dispo]] | [[Category:Dispo]] | ||
[[Category:End-of-life related data | z ]] | [[Category:End-of-life related data | z ]] |
Revision as of 20:30, 19 March 2025
![]() |
|
This will be even more relevant to keep track off with the recent changes to Dispo to add TRSF etc; but even aside from that, would we want to include such a thing as a discharge to odd S dispo.loc types:
- ambulatory care: 60
- ER: 61
- hospice: 102
- Nursing Station: 15 (all ancient since we now code this as "Outside City - unknown/other")
- TCE: 83
- TCU: 582
- UC: 7
- non-patient: 195250
SAS code in the context of Readmission to MedWard
As per 2025-02-14 email from JM |