Load LTLA- or UTLA-Trust mappings from two data sources: HES (Hospital Episodes Statistics) until September 2020, and linked COVID-19 cases and admissions June 2020 - May 2021. Replaces previous datasets trust_ltla_mapping and trust_utla_mapping (the HES mappings).

load_mapping(scale, source)

Arguments

scale

Character string defining the geographical scale. Supported options are "ltla" (lower-tier local authority) and "utla" (upper-tier local authority).

source

Character string defining the souce of the mapping. supported options are "link" (linked COVID-19 cases and admissions) and "sus" (Secondary Uses Service, originally the only mapping available).

Value

A data.frame with the following columns: geo_code (9-digit LTLA or UTLA ID); trust_code; n (the number of reported admissions); p_geo (the proportion of all admissions from a LTLA/UTLA that go to a given Trust); p_trust (the proportion of all admissions to a Trust that come from a given LTLA/UTLA); source ("SUS" or "Link"); and level ("ltla" or "utla").