Determine Diagnoses at Admission
diagnoses_at_admission.RdSee CIHI's HSMR Methodology.
Specifically page 19 for inclusion/exclusion criteria.
Arguments
- ipdiag
(
data.tableordata.frame)ipdiagnosistable as defined in the GEMINI Data Repository Dictionary.- erdiag
(
data.tableordata.frame)erdiagnosistable as defined in the GEMINI Data Repository Dictionary. Typically, ER diagnoses should be included when deriving comorbidity in order to increase sensitivity. However, in certain scenarios, users may choose to only include IP diagnoses by specifyingerdiag = NULL. This may be useful when comparing cohorts with different rates of ER admissions.