Similar to cvd_area_nested_subsystems() but the sub-areas are grouped
based on their system level.
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: 14
#> Columns: 14
#> $ AreaCode <chr> "E54000038", "E54000038", "E54000038", "E54…
#> $ AreaID <int> 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
#> $ 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
#> $ SubSystems_SystemLevelName <chr> "CCG", "PCN", "PCN", "PCN", "PCN", "PCN", "…
# View details for Lincolnshire ICB
cvd_area_flat_subsystems(area_id = 8042) |>
dplyr::glimpse()
#> Rows: 3
#> Columns: 14
#> $ AreaCode <chr> "E54000013", "E54000013", "E54000013"
#> $ AreaID <int> 8042, 8042, 8042
#> $ AreaName <chr> "NHS Lincolnshire Integrated Care Board", "…
#> $ AreaOdsCode <chr> "QJM", "QJM", "QJM"
#> $ ParentAreaID <int> 7922, 7922, 7922
#> $ SystemLevelID <int> 7, 7, 7
#> $ SystemLevelName <chr> "ICB", "ICB", "ICB"
#> $ SubSystems_AreaCode <chr> "U75268", "U17012", "E38000238"
#> $ SubSystems_AreaID <int> 1090, 1169, 8005
#> $ SubSystems_AreaName <chr> "Boston PCN", "South Lincolnshire Rural PCN…
#> $ SubSystems_AreaOdsCode <chr> NA, NA, "71E"
#> $ SubSystems_ParentAreaID <int> 8005, 8005, 8042
#> $ SubSystems_SystemLevelID <int> 4, 4, 8
#> $ SubSystems_SystemLevelName <chr> "PCN", "PCN", "Sub-ICB"
