Determine Diagnoses at Admission
diagnoses_at_admission.Rd
See CIHI's HSMR Methodology.
Specifically page 19 for inclusion/exclusion criteria.
Arguments
- ipdiag
(
data.table
ordata.frame
)ipdiagnosis
table as defined in the GEMINI Data Repository Dictionary.- erdiag
(
data.table
ordata.frame
)erdiagnosis
table 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.