uc_attribution: List of Urgent care sensitive fractions by condition and age

Description Usage Format See Also Examples

Description

Provides lookup tables for use with Urgent care sensitive analyses.

Usage

1

Format

data frame with 38 rows and 4 fields

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
Observations: 38
Variables: 8
$ ab_ucs                <chr> "0 - 5 yrs", "75+ yrs", "All ages", "All ages", "All ages", "All ages", "All ages", "All ages",...
$ condition_description <chr> "Pyrexial child", "Falls", "COPD", "COPD", "COPD", "Acute mental health crisis", "Acute mental ...
$ primary_diagnosis     <chr> "R50", "W0; W1-W19", "J40; J41; J42; J43; J44", "J40; J41; J42; J43; J44", "J40; J41; J42; J43;...
$ primary_regex         <chr> "R50", "W[01][0-9]", "J4[0-4]", "J4[0-4]", "J4[0-4]", "F", "F", "F", "R07[2-4]", "R07[2-4]", "R...
$ condition_uid         <int> 8, 4, 1, 1, 1, 2, 2, 2, 3, 3, 3, 12, 12, 12, 5, 5, 5, 6, 6, 6, 7, 7, 7, 9, 9, 9, 10, 10, 10, 11...
$ version               <chr> "ccg_iaf_201617", "ccg_iaf_201617", "ccg_iaf_201617", "ccg_iaf_201617", "ccg_iaf_201617", "ccg_...
$ ab_ucs_explode        <chr> "0 - 5 yrs", "75+ yrs", "0 - 5 yrs", "6 - 74 yrs", "75+ yrs", "0 - 5 yrs", "6 - 74 yrs", "75+ y...
$ ucs_af                <int> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,...

See Also

Other urgent care sensitive datasets: lu_ucc_icd10, uc_conditions, uc_versions, ucs_datasets

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
if (all(sapply(c("dplyr", "reshape2"), isNamespaceLoaded))) {
  require("dplyr", warn.conflicts = FALSE)
  require("reshape2", warn.conflicts = FALSE)

  uc_attribution %>%
    dcast(
      condition_uid + condition_description ~ ab_ucs_explode
      , value.var = "ucs_af", fill = 0
    )
}

ianbatesncc/aafractions.ncc documentation built on May 3, 2019, 3:34 p.m.