Only relevant to SARS-CoV-2 PCR positive patient.
Timing of positive test compared to admission:
This relies on knowing dates and hence only works on the identifiable data
sets,
Usage
derive_nosocomial_covid_status(df, v, ...)
Arguments
- df
the dataframe.
- v
the value set. usually precomputed by the augment framework the value
set can be explicitly supplied with v = get_value_sets(df)
- ...
ignored
Details
Logic is:
Community if PCR result predates admission
Probably commuinity if PCR result within 7 days of admission
Probably nosocomial if 7-28 days after admission
Otherwise is it undefined.