Skip to contents

Similar to cvd_area_nested_subsystems() but the sub-areas are grouped based on their system level.

Usage

cvd_area_flat_subsystems(area_id = 5)

Arguments

area_id

integer - the area to return data for (compulsory)

Value

Tibble of details for the area and its child areas (where applicable)

Details

CVD Prevent API documentation: Area flat subsystems

Examples

# View details for for Somerset STP
cvd_area_flat_subsystems(area_id = 5) |>
  dplyr::glimpse()
#> Rows: 75
#> Columns: 14
#> $ AreaCode                   <chr> "E54000038", "E54000038", "E54000038", "E54…
#> $ AreaID                     <int> 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5…
#> $ AreaName                   <chr> "Somerset", "Somerset", "Somerset", "Somers…
#> $ AreaOdsCode                <chr> "QSL", "QSL", "QSL", "QSL", "QSL", "QSL", "…
#> $ ParentAreaID               <int> 7670, 7670, 7670, 7670, 7670, 7670, 7670, 7…
#> $ SystemLevelID              <int> 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2…
#> $ SystemLevelName            <chr> "STP", "STP", "STP", "STP", "STP", "STP", "…
#> $ SubSystems_AreaCode        <chr> "E38000150", "U47425", "U17153", "U84175", …
#> $ SubSystems_AreaID          <int> 105, 528, 613, 677, 688, 743, 786, 868, 963…
#> $ SubSystems_AreaName        <chr> "NHS Somerset CCG", "West Somerset PCN", "W…
#> $ SubSystems_AreaOdsCode     <chr> "11X", NA, NA, NA, NA, NA, NA, NA, NA, NA, …
#> $ SubSystems_ParentAreaID    <int> 5, 105, 105, 105, 105, 105, 105, 105, 105, …
#> $ SubSystems_SystemLevelID   <int> 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5…
#> $ SubSystems_SystemLevelName <chr> "CCG", "PCN", "PCN", "PCN", "PCN", "PCN", "…

# View details for Leicester Central PCN
cvd_area_flat_subsystems(area_id = 701) |>
  dplyr::glimpse()
#> Rows: 5
#> Columns: 13
#> $ AreaCode                   <chr> "U77315", "U77315", "U77315", "U77315", "U7…
#> $ AreaID                     <int> 701, 701, 701, 701, 701
#> $ AreaName                   <chr> "Leicester Central PCN", "Leicester Central…
#> $ ParentAreaID               <int> 8009, 8009, 8009, 8009, 8009
#> $ SystemLevelID              <int> 4, 4, 4, 4, 4
#> $ SystemLevelName            <chr> "PCN", "PCN", "PCN", "PCN", "PCN"
#> $ SubSystems_AreaCode        <chr> "C82642", "C82643", "Y02469", "Y02686", "C8…
#> $ SubSystems_AreaID          <int> 2278, 2279, 6621, 6653, 7323
#> $ SubSystems_AreaName        <chr> "Highfields Medical Centre", "Community Hea…
#> $ SubSystems_AreaOdsCode     <lgl> NA, NA, NA, NA, NA
#> $ SubSystems_ParentAreaID    <int> 701, 701, 701, 701, 701
#> $ SubSystems_SystemLevelID   <int> 5, 5, 5, 5, 5
#> $ SubSystems_SystemLevelName <chr> "Practice", "Practice", "Practice", "Practi…