Discharged to community: Difference between revisions

From CCMDB Wiki
Jump to navigation Jump to search
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')  
            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)
                /*  (came from ER or ambulatory care)
                   
and ( lagPreInptLocation in ('NA / not applicable',' ')   
                and ( lagPreInptLocation in ('NA / not applicable',' ')   
or lagInptRegion in ('out-of-WPG','out-of-MB','out-of-CAN')  
                    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)
                    /* was (not an in-patient or in-patient from outside of Winnipeg before that)
 
             
or lagFromHospital in ('Children'
                or lagFromHospital in ('Children'
  ,'Misericordia'
                                          ,'Misericordia'
  ,'Manitoba Adolescent Treatment Center'
                                          ,'Manitoba Adolescent Treatment Center'
  ,'River Ridge Transition Care Environment'
                                          ,'River Ridge Transition Care Environment'
  )
                                          )
/* or Children & Misericordia */
                                        /* or Children & Misericordia */
)
                )
                      
                      
                        
                        
Line 49: Line 49:
                     /* next admit from Home */
                     /* next admit from Home */
              
              
or  lagFromLoctype in ('PCH')  
            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 AMA=1 and readm7=1 then readm7=0;  /* AMA is excluded to readmission */
if palliative=1  and readm7=1 then readm7=0;  /*palliative excluded */
    if palliative=1  and readm7=1 then readm7=0;  /*palliative excluded */


/* EMIP pts moving to another ward is not readmission */
    /* EMIP pts moving to another ward is not readmission */
if Ward='EMIP' and (0 le diff le 7) and lagfromloctype in ('ER') then do;  
    if Ward='EMIP' and (0 le diff le 7) and lagfromloctype in ('ER') then do;  
readm7=0; end;
    readm7=0; end;


/* Same Visit_Admit_DtTm is not readmission */
    /* Same Visit_Admit_DtTm is not readmission */
if nextvisit=Visit_Admit_DtTm then do;
    if nextvisit=Visit_Admit_DtTm then do;
readm7=0; end;
    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


Just a placeholder for now because the idea of how we define dispo to community (or for that matter, re-admit Previous Location) in data came up re. things like Readmission to MedWard and others. We have the obvious "Home" but if someone is discharged to something like Dialysis, would that also count? How do we define? Ideally by a column in s_dispo table such as s_dispo.loc_type, but that one uses "non-patient" which it also uses for Deceased patients (should we just split that out?). There is probably even more to this. Likely Julie has more than one approach in reporting. This came up because we were looking to define this for LAU collection readmission data.

  • This is actually just as much regarding to admitted from community, so maybe this should just be renamed to "outpatient sites in s_dispo table"?
  • SMW


  • Cargo


  • Categories


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   

if (0 le diff le 7) /* within one week included */

       and ( 
           tolocation in ('Home','HSC Lennox Bell') 
           OR   toloctype in ('hospice','PCH','ambulatory care')  
           OR   toregion in ('out-of-WPG','out-of-MB','out-of-CAN') 
           /* left the hospital and went home, long-term care facility, outside city and prov */
           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 */
               )
                   
                     
           or   lagFromLocation in ('Home' ) 
                   /* next admit from Home */
           
           or  lagFromLoctype in ('PCH') 
                     /* next admit from nursing home */
       )
   then readm7=1; 
   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;