View source: R/find_onset_type.R
find_onset | R Documentation |
Onset Type Function A function used to determine if a patient has community sepsis or hospital onset sepsis
find_onset(.data, blood_day, first_qad, patientid, admission_day)
.data |
Your dataset |
blood_day |
This is a Date column that represents when your blood cultures were taken |
first_qad |
This is a Date column that represents your first qualifying antibiotic day (see CDC definition) time |
patientid |
A unique identifier for each patient |
admission_day |
A Date object for the day a patient was admitted to the hospital |
Returns a dataset with a new column that flags a patient has having 'Community' or 'Hosptial' onset
## Not run: final_data <- data %>% find_onset(blood_day = blood_service_day, first_qad = first_qad, patientid = encounter, admission_day = admisison_date) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.