Retrieve CQC providers, subject to given parameters.
cqc_providers(
constituency = NULL,
local_authority = NULL,
inspection_directorate = NULL,
non_primary_inspection_category_code = NULL,
non_primary_inspection_category_name = NULL,
primary_inspection_category_code = NULL,
primary_inspection_category_name = NULL,
overall_rating = NULL,
region = NULL,
regulated_activity = NULL,
report_type = NULL,
verbose = TRUE,
clean_names = TRUE
)
Location is in a given parliamentary constituency
Location is in a given local authority.
The type of inspection directorate. Accepts one or more off "Adult social care", "Hospitals", "Primary medical services" or "Unspecified".
The non-primary inspection category code. e.g. "H1"
The non-primary inspection category name. e.g. "Slimming Clinics".
The primary inspection category code. e.g. "H1"
The primary inspection category name. e.g. "Slimming Clinics"
Include only locations with a given inspection rating. e.g. "Good". Accepts character vector of multiple inspection ratings.
Region of the UK, e.g. "London" or "North East".
The type of activity at a location, e.g. "Accommodation for persons who require treatment for substance misuse".
The type of report, e.g. "Location", "Provider" or "CoreService".
If TRUE
prints download progress to console if requesting
more than 1,000 records. Defaults to TRUE
.
If TRUE
, converts a column names to snake_case.
Defaults to TRUE
.
A tibble with the provider ID, name and postcode of all providers meeting the given parameters.
# \donttest{
# All providers in Tower Hamlets
prov1 <- cqc_providers(local_authority = "Tower Hamlets")
# }