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
)

Arguments

constituency

Location is in a given parliamentary constituency

local_authority

Location is in a given local authority.

inspection_directorate

The type of inspection directorate. Accepts one or more off "Adult social care", "Hospitals", "Primary medical services" or "Unspecified".

non_primary_inspection_category_code

The non-primary inspection category code. e.g. "H1"

non_primary_inspection_category_name

The non-primary inspection category name. e.g. "Slimming Clinics".

primary_inspection_category_code

The primary inspection category code. e.g. "H1"

primary_inspection_category_name

The primary inspection category name. e.g. "Slimming Clinics"

overall_rating

Include only locations with a given inspection rating. e.g. "Good". Accepts character vector of multiple inspection ratings.

region

Region of the UK, e.g. "London" or "North East".

regulated_activity

The type of activity at a location, e.g. "Accommodation for persons who require treatment for substance misuse".

report_type

The type of report, e.g. "Location", "Provider" or "CoreService".

verbose

If TRUE prints download progress to console if requesting more than 1,000 records. Defaults to TRUE.

clean_names

If TRUE, converts a column names to snake_case. Defaults to TRUE.

Value

A tibble with the provider ID, name and postcode of all providers meeting the given parameters.

Examples

# \donttest{
# All providers in Tower Hamlets
prov1 <- cqc_providers(local_authority = "Tower Hamlets")
# }