Reconcile Observed and Inferred HAI/CAI Classification
Source:R/prep_hai_cai.R
prep_reconcile_hai_observed_inferred.RdWhere both an observed (raw) infection type and an inferred (date-derived) type exist, flags rows where they disagree. Retains observed classification by default and marks discordant records.
Usage
prep_reconcile_hai_observed_inferred(
data,
observed_col = "infection_type_observed",
inferred_col = "infection_type_inferred",
output_col = "infection_type"
)