View source: R/addInpatients.R
| addInpatients | R Documentation |
Add Inpatient and ICU Hospitalization Metrics to a Cohort
addInpatients(
x,
indexDate = "cohort_start_date",
censorDate = NULL,
window = list(c(-365, -1), c(0, 365)),
visitConceptIds = c(9201L, 8717L, 581379L),
icuConceptIds = 32037L,
icuSpecialtyConceptIds = c(38004500L),
stratifySpecialty = FALSE,
specialties = NULL,
readmissions = FALSE,
nameStyle = "{domain}_{metric}_{window_name}",
name = NULL
)
addHospitalizations(
x,
indexDate = "cohort_start_date",
censorDate = NULL,
window = list(c(-365, -1), c(0, 365)),
visitConceptIds = c(9201L, 8717L, 581379L),
icuConceptIds = 32037L,
icuSpecialtyConceptIds = c(38004500L),
stratifySpecialty = FALSE,
specialties = NULL,
readmissions = FALSE,
nameStyle = "{domain}_{metric}_{window_name}",
name = NULL
)
addInpatient(
x,
indexDate = "cohort_start_date",
censorDate = NULL,
window = list(c(-365, -1), c(0, 365)),
visitConceptIds = c(9201L, 8717L, 581379L),
icuConceptIds = 32037L,
icuSpecialtyConceptIds = c(38004500L),
stratifySpecialty = FALSE,
specialties = NULL,
readmissions = FALSE,
nameStyle = "{domain}_{metric}_{window_name}",
name = NULL
)
x |
A cohort table or cdm_table. |
indexDate |
Date variable in |
censorDate |
Optional date variable in |
window |
A named or unnamed list of 2-element numeric vectors. Default: |
visitConceptIds |
OMOP visit concept IDs for general inpatient stays. Default: |
icuConceptIds |
OMOP visit concept IDs for ICU stays. Default: |
icuSpecialtyConceptIds |
OMOP provider specialty concept IDs for ICU stays. Default: |
stratifySpecialty |
Logical; whether to compute specialty breakdown. Default: |
specialties |
Optional named list of integer vectors of OMOP specialty concept IDs for granular specialty breakdown. Default: |
readmissions |
Logical; whether to compute 30-day and 90-day readmissions. Default: |
nameStyle |
Column naming pattern. Default: |
name |
Name of the new table in the write schema. If NULL, a temporary table is returned. |
The cohort table x with added inpatient metric columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.