Package 'healthyr'

Title: R package for mapping UK health data
Description: A package to distribute and summarise on UK health data.
Authors: Mike Page [cre], Matt Thomas [aut], Aileen McDonald [aut], British Red Cross [cph]
Maintainer: Mike Page <[email protected]>
License: MIT + file LICENSE
Version: 0.0.0.9000
Built: 2024-11-02 05:12:51 UTC
Source: https://github.com/humaniverse/healthyr

Help Index


England Attribution from Type 3 A&E Providers to Acute Trusts (updated June 2022)

Description

A dataset mapping proportion of A&E attendances attributed to Acute Trusts from Type 3 A&E Providers, including Minor Injury Units and Walk-in Centres

Usage

england_ae_acute_trust_attribution

Format

A data frame with 218 rows and 3 variables:

nhs_trust22_code_all

NHS Trust (organisational) code

nhs_trust22_code_acute

NHS Trust (organisational) code - Acute Trusts only

proportion_attendances_attributed_to_acute_trust

Percentage of A&E attendances attributed to the Acute Trust

...

Source

https://www.england.nhs.uk/


Crime severity score in England

Description

Crime severity score is based on sentencing data, community order and fines. Higher scores mean greater severity within an area.

Usage

england_crime_severity

Format

A data frame containing 2 columns.

ltla23_code

Local Authority code

crime_severity_score

Crime severity score (higher = more severe)

Source

https://www.ons.gov.uk/peoplepopulationandcommunity/crimeandjustice/datasets/crimeseverityscoreexperimentalstatistics


Critical care and General & Acute Beds

Description

A dataset containing NHS Trust level critical care and general and acute bed availability information. This is taken from the urgent and emergency care daily situation reports. Bed numbers are daily figures averaged over the month.

Usage

england_critical_general_acute_beds

Format

A data frame with 2,862 rows and 20 variables:

nhs_trust22_code

NHS Trust (organisational) code

date

Date

general_acute_beds_available

"G&A beds available"

general_acute_beds_occupied

"G&A beds occupied"

general_acute_beds_occupancy_rate

"G&A occupancy rate"

adult_general_acute_beds_available

"Adult G&A beds available"

adult_general_acute_beds_occupied

"Adult G&A beds occupied"

adult_general_acute_beds_occupancy_rate

"Adult G&A occupancy rate"

paediatric_general_acute_beds_available

"Paediatric G&A beds available"

paediatric_general_acute_beds_occupied

"Paediatric G&A beds occupied"

paediatric_general_acute_beds_occupancy_rate

"Paediatric G&A occupancy rate"

adult_critical_care_beds_available

"Adult critical care beds available"

adult_critical_care_beds_occupied

"Adult critical care beds occupied"

adult_critical_care_occupancy_rate

"Adult critical care occupancy rate"

paediatric_intensive_cared_beds_available

"Paediatric intensive care beds available"

paediatric_intensive_cared_beds_occupied

"Paediatric intensive care beds occupied"

paediatric_intensive_cared_occupancy_rate

"Paediatric intensive care occupancy rate"

neonatal_intensive_care_bed_avaialble

"Neonatal intensive care beds available"

neonatal_intensive_care_bed_occupied

"Neonatal intensive care beds occupied"

neonatal_intensive_care_occupancy_rate

"Neonatal intensive care occupancy rate"

...

Source

https://www.england.nhs.uk/


Disability by LTLA for England, 2021

Description

A dataset containing LTLA data on numbers disabled under the Equality Act.

Usage

england_disability_21

Format

A data frame with 662 rows and 5 variables:

ltla21_code

LTLA code

total_residents

Total residents in the local authority

disability_level

Disabled or Not disabled under the Equality Act

n

number of people

prop

proportion of people

...

Source

https://www.nomisweb.co.uk/sources/census_2021_bulk


England Health Index (ONS)

Description

A dataset containing overall health index scores for the English lower tier local authorities from 2015-2021.

Usage

england_health_index

Format

A data frame with 2,149 rows and 6 variables:

ltla21_code

2021 Lower tier local authority code

year

Year

overall_score

The overall health index score

healthy_people_domain_score

Score for the Healthy People domain

healthy_lives_domain_score

Score for the Healthy Lives domain

healthy_places_domain_score

Score for the Healthy Places domain

...

Source

https://www.ons.gov.uk/


England Health Index (ONS) - underlying indicators

Description

A dataset containing underlying indicators for the ONS Health Index for English lower tier local authorities from 2015-2021.

Usage

england_health_index_indicators

Format

A data frame with 120,344 rows and 4 variables:

ltla21_code

2021 Lower tier local authority code

year

Year

indicator

The name of the indicator

value

The value of the indicator

...

Source

https://www.ons.gov.uk/


England Health Index (ONS) - subdomains

Description

A dataset containing overall health index scores for the English lower tier local authorities from 2015-2021.

Usage

england_health_index_subdomains

Format

A data frame with 2,149 rows and 16 variables:

ltla21_code

2021 Lower tier local authority code

year

Year

Difficulties in daily life

Difficulties in daily life - Health People domain

Mental health

Mental health - Health People domain

Mortality

Mortality - Health People domain

Personal well-being

Personal well-being - Health People domain

Physical health conditions

Physical health conditions - Health People domain

Behavioural risk factors

Behavioural risk factors - Health Lives domain

Children and young people

Children and young people - Health Lives domain

Physiological risk factors

Physiological risk factors - Health Lives domain

Protective measures

Protective measures - Health Lives domain

Access to green space

Access to green space - Health Places domain

Access to services

Access to services - Health Places domain

Crime

Crime - Health Places domain

Economic and working conditions

Economic and working conditions - Health Places domain

Living conditions

Living conditions - Health Places domain

...

Source

https://www.ons.gov.uk/


Statutory homelessness in England

Description

A dataset containing statistics on households assessed as homeless and households in temporary accommodation, by Local Authority.

Usage

england_homelessness

Format

A data frame with 3 variables:

ltla23_code

Local Authority code

Households assessed as homeless per (000s)

Households assessed as homeless per 1,000 households in the Local Authority

Households in temporary accommodation per 1,000

Households in temporary accommodation per 1,000 households in the Local Authority

Source

https://www.gov.uk/government/statistical-data-sets/live-tables-on-homelessness


England Accident and Emergency Admissions by Integrated Care Board - (2022-23)

Description

A dataset containing England Accident and Emergency attendances and Emergency Admissions at Integrated Care Board level, by month

Usage

england_icb_accidents_emergency

Format

A data frame with 882 rows and 8 variables:

icb22_code

Integrated Care Board code

total_attendances

The total number of patients in an A&E service seeking medical attention

attendances_over_4hours

The number of patients seeking medical attention that spend over 4 hours from arrival to admission, transfer or discharge

total_emergency_admissions

The total number of admissions to a hospital bed as an emergency

emergency_admissions_over_4hours

The number of patients seeking admission to a hospital bed as an emergency that spend over 4 hours from decision to admit to admission

pct_attendance_over_4hours

The percentage of attendance that spend over 4 hours from arrival to admission, transfer of discharge

date

Date

pct_emergency_admissions_over_4hours

The percentage of emergency admissions that spend over 4 hours from decision to admit to admission

...

Source

https://www.england.nhs.uk/


Hospital ICB Discharge Data - Criteria to Reside

Description

A dataset containing NHS Integrated Care Board discharge data on how many patients do not meet criteria to reside each day.

Usage

england_icb_criteria_to_reside

Format

A data frame with 26,758 rows and 3 variables:

icb22_code

Integrated Care Board code

date

Date

do_not_meet_criteria_to_reside

Number of patients who no longer meet the criteria to reside

...

Source

https://www.england.nhs.uk/


Hospital ICB Discharge Data - Discharged Patients

Description

A dataset containing NHS Integrated Care Board discharge data on how many patients were discharged each day. From June 2023 figures for discharged by 17:00 and between 17:01 and 23:59 were no longer released.

Usage

england_icb_discharged_patients

Format

A data frame with 26,758 rows and 5 variables:

icb22_code

Integrated Care Board code

date

Date

discharged_by_1700

Number of patients discharged by 17:00

discharged_between_1701_2359

Number of patients discharged between 17:01 and 23:59

discharged_total

Total number of patients discharged

...

Source

https://www.england.nhs.uk/


Consultant-led Referral to Treatment (RTT) pathway flow by ICS/STP

Description

A dataset containing ICS/STP-level RTT data.

Usage

england_rtt_flow_stp

Format

A data frame with 1,260 rows and 7 variables:

stp20_nhs_code

NHS code for the ICS/STP

date

Date

year

Year

month

Month

completed

Number of pathways completed

incomplete

Number of incomplete pathways

new

Number of new pathways

Source

https://www.england.nhs.uk/


Consultant-led Referral to Treatment (RTT) by NHS Region

Description

A dataset containing ICS/STP-level RTT data.

Usage

england_rtt_region

Format

A data frame with 6,804 rows and 7 variables:

nhs_region20_name

Name of NHS England region

date

Date

year

Year

month

Month

treatment

Treatment function name

waits_over_18_weeks

Total waiting > 18 weeks

waits_over_52_weeks

Total waiting > 52 weeks

Source

https://www.england.nhs.uk/


Consultant-led Referral to Treatment (RTT) by ICS/STP

Description

A dataset containing ICS/STP-level RTT data.

Usage

england_rtt_stp

Format

A data frame with 27,196 rows and 7 variables:

stp20_nhs_code

NHS code for the ICS/STP

stp20_name

Name of the ICS/STP

date

Date

year

Year

month

Month

treatment

Treatment function name

waits_over_18_weeks

Total waiting > 18 weeks

waits_over_52_weeks

Total waiting > 52 weeks

Source

https://www.england.nhs.uk/


Sexual orientation, England, 2021

Description

A dataset containing sexual orientation data at LTLA level

Usage

england_sexual_orientation_21

Format

A data frame with 1,655 rows and 5 variables:

ltla21_code

LTLA code

total_residents

Residents in the LTLA

sexual_orientation

Sexual orientation

n

Number of people

prop

Percentage

Source

https://www.nomisweb.co.uk/sources/census_2021_bulk


Psychological Therapies - IAPT

Description

A dataset containing NHS Sub Integrated Care Board (formerly CCGs) data.

Usage

england_sicb_iapt

Format

A data frame with 8,162 rows and 4 variables:

sicbl22_code

Sub Integrated Care Board code

date

Date

name

Name of the variable

value

Value of the variable

...

Source

https://www.england.nhs.uk/


England Accident and Emergency Admissions by Trust - (2021-23)

Description

A dataset containing England Accident and Emergency attendances and Emergency Admissions at provider level, by month.

Usage

england_trust_accidents_emergency

Format

A data frame with 5,044 rows and 8 variables:

nhs_trust22_code

NHS Trust (organisational) code

total_attendances

The total number of patients in an A&E service seeking medical attention

attendances_over_4hours

The number of patients seeking medical attention that spend over 4 hours from arrival to admission, transfer or discharge

total_emergency_admissions

The total number of admissions to a hospital bed as an emergency

emergency_admissions_over_4hours

The number of patients seeking admission to a hospital bed as an emergency that spend over 4 hours from decision to admit to admission

pct_attendance_over_4hours

The percentage of attendance that spend over 4 hours from arrival to admission, transfer of discharge

date

Date

pct_emergency_admissions_over_4hours

The percentage of emergency admissions that spend over 4 hours from decision to admit to admission

...

Details

Data notes:

  • Due to a cyber-attack several sites have been unable to provide complete data since August 2022

  • Fourteen trusts are field testing new A&E performance standards and as a result are not required to report attendances over four hours from May 2019

Source

https://www.england.nhs.uk/


Hospital Trust Discharge Data - Criteria to Reside

Description

A dataset containing NHS Trust level hopsital discharge data on how many patients do not meet criteria to reside each day.

Usage

england_trust_criteria_to_reside

Format

A data frame with 77,011 rows and 3 variables:

nhs_trust22_code

NHS Trust (organisational) code

date

Date

do_not_meet_criteria_to_reside

Number of patients who no longer meet the criteria to reside

...

Source

https://www.england.nhs.uk/


Hosptial Trust Discharge Data - Discharged Patients

Description

A dataset containing NHS Trust level hopsital discharge data on how many patients were discharged each day.

Usage

england_trust_discharged_patients

Format

A data frame with 77,011 rows and 5 variables:

nhs_trust22_code

NHS Trust (organisational) code

date

Date

discharged_by_1700

Number of patients discharged by 17:00

discharged_between_1701_2359

Number of patients discharged between 17:01 and 23:59

discharged_total

Total number of patients discharged

...

Source

https://www.england.nhs.uk/


Physchological Therpaies - IAPT

Description

A dataset containing NHS Trust level IAPT data.

Usage

england_trust_iapt

Format

A data frame with 5,082 rows and 4 variables:

nhs_trust22_code

NHS Trust (organisational) code

date

Date

name

Name of the variable

value

Value of the variable

...

Source

https://www.england.nhs.uk/


Bed Availability in Northern Ireland

Description

A dataset containing hospital statistics on bed availability, bed occupancy and inpatients data.

Usage

ni_beds

Format

A data frame with 13,327 rows and 14 variables:

trust18_code

Health and Social Care Trust code

date

Quarter ending date

hospital

Hospital name

programme_of_care

Programme of care

specialty

Specialty

total_available_beds

Total number of available beds

average_available_beds

Average number of available beds

total_occupied_beds

Total number of occupied beds

average_occupied_beds

Average number of occupied beds

total_inpatients

Total number of inpatients

total_day_case

Total number of day cases

elective_inpatient

Number of elective inpatients

non_elective_inpatient

Number of non-elective inpatients

regular_attenders

Number of regular attenders

Source

https://www.health-ni.gov.uk/


Consultant-led Referral to Treatment (RTT) by Health & Social Care Trust

Description

A dataset containing RTT data for Health & Social Care Trusts in NI.

Usage

ni_rtt_hsct

Format

A data frame with 2,706 rows and 7 variables:

hsct22_name

Health & Social Care Trust name

date

Date

year

Year

month

Month

specialty

Specialty

waits_over_18_weeks

Total waiting > 18 weeks

waits_over_52_weeks

Total waiting > 52 weeks

total_waits

Total waits

Source

https://www.health-ni.gov.uk/topics/doh-statistics-and-research/hospital-waiting-times-statistics


Provision of unpaid care (delayed discharge) in Northern Ireland

Description

A dataset containing unpaid care data in Local Government Districts in NI from 2021 census.

Usage

ni_unpaid_care_21

Format

A data frame with 605 rows and 4 variables:

ltla21_name

Local Government Districts name

ltla21_code

Local Government Districts code

variable

Age band and count/percentage of unpaid care hours

value

Value of the chosen variable

...

Source

https://www.nisra.gov.uk/


Bed occupancy/availability in Scotland

Description

Beds by Board of Treatment and Specialty, 2016-2022.

Usage

scotland_beds

Format

A data frame with 11,060 rows and 6 variables:

hb19_code

Scottish Health Board code

date

Date, representing the start of the quarter

specialty

Name of the specialty

average_number_available_staffed_beds

Daily average number of available staffed beds

average_number_occupied_beds

Daily average number of occupied beds

percent_occupied_beds

Percentage (%) of daily occupancy of beds

...

Source

https://www.opendata.nhs.scot


Delayed Discharge Bed Days by Health Board in Scotland

Description

A dataset containing Delayed Discharge Bed Days by Scottish Health Board.

Usage

scotland_delayed_discharge_hb

Format

A data frame with 20,025 rows and 6 variables:

hb_code

Scottish Health Board code

date

Date

age_group

Age grouping is calculated as at the person's ready for discharge date

delay_reason

Reason for delay indicates the principal reason grouping for a person's delay at the end of the reporting month

num_delayed_bed_days

The total number of delayed bed days

average_daily_delayed_beds

The average daily number of delayed beds is calculated by dividing the total number of delayed discharge bed days in the month by the number of days in the calendar month

...

Source

https://www.opendata.nhs.scot/


Delayed Discharge Bed Days by Council Area in Scotland

Description

A dataset containing Delayed Discharge Bed Days by Scottish Council Area

Usage

scotland_delayed_discharge_ltla

Format

A data frame with 41,310 rows and 6 variables:

ltla_code

Scottish Council Area code

date

Date

age_group

Age grouping is calculated as at the person's ready for discharge date

delay_reason

Reason for delay indicates the principal reason grouping for a person's delay at the end of the reporting month

num_delayed_bed_days

The total number of delayed bed days

average_daily_delayed_beds

The average daily number of delayed beds is calculated by dividing the total number of delayed discharge bed days in the month by the number of days in the calendar month

...

Source

https://www.opendata.nhs.scot/


Homelessness in Scotland

Description

A dataset containing statistics on households assessed as homeless and households in temporary accommodation, by Local Authority.

Usage

scotland_homelessness

Format

A data frame with 3 variables:

ltla21_code

Local Authority code

Assessed as homeless or threatened with homelessness per 1,000

Households assessed as homeless per 1,000 households in the Local Authority

Households in temporary accommodation per 1,000

Households in temporary accommodation per 1,000 households in the Local Authority

Source

https://www.gov.scot/collections/homelessness-statistics/


Consultant-led Referral to Treatment (RTT) in Scotland

Description

A dataset containing RTT data for Scotland.

Usage

scotland_rtt

Format

A data frame with 153 rows and 5 variables:

date

Date

year

Year

month

Month

waits_over_18_weeks_count

Total number waiting > 18 weeks

waits_over_18_weeks_percent

Percent waiting > 18 weeks

Source

https://www.opendata.nhs.scot/


Consultant-led Referral to Treatment (RTT) by Scottish Health Board

Description

A dataset containing RTT data for Scottish Health Boards.

Usage

scotland_rtt_hb

Format

A data frame with 2,295 rows and 7 variables:

hb19_code

Scottish Health Board code

date

Date

year

Year

month

Month

specialty

Specialty

waits_over_18_weeks_count

Total number waiting > 18 weeks

waits_over_18_weeks_percent

Percent waiting > 18 weeks

Source

https://www.opendata.nhs.scot/


Wales ambulance waiting times - (2022)

Description

A dataset containing Welsh emergency ambulance calls and responses to red calls, by local health boards (HB) and month

Usage

wales_ambulance_waiting_times

Format

A data frame with 288 rows and 9 variables:

date

Date

hb_code

Local health board code

hb

Name of local health board

red_calls

Number of red calls

red_calls_resulting_in_an_emergency_response_at_the_scene

Number of red call resulting in an emergency response at the scene

amber_calls

Number of amber calls

green_calls

Number of green calls

red_calls_resulting_in_an_emergency_response_at_the_scene_within_8_minutes

Number of red call resulting in an emergency response at the scene within 8 minutes

red_calls_percent_of_emergency_responses_arriving_at_the_scene_within_8_minutes

Percentage of emergency responses to red calls arriving at the scene within 8 minutes

...

Source

https://statswales.gov.wales/


Crime severity score in Wales

Description

Crime severity score is based on sentencing data, community order and fines. Higher scores mean greater severity within an area.

Usage

wales_crime_severity

Format

A data frame containing 2 columns.

ltla23_code

Local Authority code

crime_severity_score

Crime severity score (higher = more severe)

Source

https://www.ons.gov.uk/peoplepopulationandcommunity/crimeandjustice/datasets/crimeseverityscoreexperimentalstatistics


Disability by LTLA for Wales, 2021

Description

A dataset containing LTLA data on numbers disabled under the Equality Act.

Usage

wales_disability_21

Format

A data frame:

ltla21_code

LTLA code

total_residents

Total residents in the local authority

disability_level

Disabled or Not disabled under the Equality Act

n

number of people

prop

proportion of people

...

Source

https://www.nomisweb.co.uk/sources/census_2021_bulk


Wales health board bed availability - (2022)

Description

A dataset containing Welsh monthly NHS beds data by health board, measure, and specialty

Usage

wales_health_board_critical_general_acute_beds

Format

A data frame with 3,103 rows and 7 variables:

date

Date

health_board_code

Local health board code

health_board_name

Name of local health board

specialism

Name of specialism

daily_beds_available

Average number of daily beds available

daily_beds_occupied

Average number of daily beds occucpied

beds_occupancy_rate

Bed occupancy rate

...

Source

https://statswales.gov.wales/


Homelessness in Wales

Description

A dataset containing statistics on households assessed as homeless and households in temporary accommodation, by Local Authority.

Usage

wales_homelessness

Format

A data frame with 3 variables:

ltla21_code

Local Authority code

Homeless or threatened with homelessness per 1,000

Households assessed as homeless per 1,000 households in the Local Authority

Households in temporary accommodation per 1,000

Households in temporary accommodation per 1,000 households in the Local Authority

Source

https://statswales.gov.wales/


Wales hospital bed availability - (2022)

Description

A dataset containing Welsh monthly NHS beds data by hospital site, measure, and specialty

Usage

wales_hospitals_critical_general_acute_beds

Format

A data frame with 7,517 rows and 7 variables:

date

Date

hospital_code

Local health board code

hospital_name

Name of local health board

specialism

Name of specialism

daily_beds_available

Average number of daily beds available

daily_beds_occupied

Average number of daily beds occucpied

beds_occupancy_rate

Bed occupancy rate

...

Source

https://statswales.gov.wales/


Consultant-led Referral to Treatment (RTT) by Local Health Board

Description

A dataset containing RTT data for Wales.

Usage

wales_rtt_lhb

Format

A data frame with 1,652 rows and 6 variables:

lhb22_code

Local Health Board code

lhb22_name

Local Health Board name

date

Date

pathway_stage

Stage of the treatment pathway

waits_over_18_weeks

Total waiting > 18 weeks

waits_over_53_weeks

Total waiting > 53 weeks

total_waits

Total waiting

Source

https://statswales.gov.wales/


Sexual orientation, Wales, 2021

Description

A dataset containing sexual orientation data at LTLA level

Usage

wales_sexual_orientation_21

Format

A data frame:

ltla21_code

LTLA code

total_residents

Residents in the LTLA

sexual_orientation

Sexual orientation

n

Number of people

prop

Percentage

Source

https://www.nomisweb.co.uk/sources/census_2021_bulk