inpatient_data: Simulated inpatient data in standardised format.

inpatient_dataR Documentation

Simulated inpatient data in standardised format.

Description

A dataset containing simulated, standardised Inpatient data.

Usage

inpatient_data

Format

A data frame with 18 (out of a possible 22 lised here) variables, depending on available hospital data. Each observation corresponds to a single episode within a patient spell.

pseudo_id

Unique ID number of the patient. Original mapping back to hospital number should be destroyed or adequately protected according to all relevant data governance legislation and protocols

gender

The recorded gender of the patient coded using the NHS data dictionary coding system (e.g. "Male","Female","Not Known","Not Specified") https://www.datadictionary.nhs.uk/data_dictionary/attributes/p/person/person_gender_code_de.asp?shownav=1?query=gender&rank=80&shownav=1

age_band_start

The age band that the patient was in at time of admission (e.g. "0 yrs", "1-4 yrs"..."95+")

ethnic_category

The ethnicity of the patient recorded using the NHS data dictionary coding system (e.g. "British", "Irish", "Bangladeshi"...) http://www.datadictionary.nhs.uk/data_dictionary/attributes/e/end/ethnic_category_code_de.asp

start_datetime

The datetime at which this episode began, as a POSIXct datetime

end_datetime

The datetime at which this episode ended, as a POSIXct datetime

spell_number

Optional index for the spell this episode is part of

episode_number

Optional index of this episode within its containing spell, ordered by start_datetime

admission_method

The admission method coded using the NHS data dictionary coding system (e.g. "Waiting list", "Booked", "Accident and Emergency"...) https://www.datadictionary.nhs.uk/data_dictionary/attributes/a/add/admission_method_de.asp?shownav=1?query=admission+method&rank=100&shownav=1

source_of_admission

The source of admission coded using the NHS data dictionary coding system (e.g. "Usual Place of Residence", "NHS other Hospital Provider", "NHS run Care Home"...) https://www.datadictionary.nhs.uk/data_dictionary/attributes/s/smo/source_of_admission_de.asp?shownav=1?query=source+of+admission&rank=87.19749&shownav=1

discharge_method

The discharge method coded using the NHS data dictionary coding system (e.g. "Patient died", "Discharged", "Stillbirth") https://www.datadictionary.nhs.uk/data_dictionary/attributes/d/disc/discharge_method_de.asp?shownav=1?query=discharge+method&rank=100&shownav=1

discharge_destination

The discharge destination coded using the NHS data dictionary coding system (e.g. "Own Residence", "Patient Died or Still Birth", "NHS Hospital Provider"...) https://www.datadictionary.nhs.uk/data_dictionary/attributes/d/disc/discharge_destination_de.asp?shownav=1?query=discharge+destination&rank=100&shownav=1

patient_classification

The patient classification coded using the NHS data dictionary coding system (e.g. "Ordinary Admission", "Day case admission", "Regular Day Admission"...) https://www.datadictionary.nhs.uk/data_dictionary/attributes/p/pati/patient_classification_de.asp?shownav=1?query=patient+classification&rank=34.61654&shownav=1

provider

The provider at which the episode took place (e.g. Lewisham and Greenwich Trust)

hospital_site

The hospital site at which the episode took place (e.g. Lewisham University Hospital)

main_specialty

The main speciality that the episode falls into coded using the NHS data (e.g. "TRAUMA & ORTHOPAEDICS", "ENT", "OPHTHALMOLOGY"...) dictionary coding system https://www.datadictionary.nhs.uk/web_site_content/supporting_information/main_specialty_and_treatment_function_codes_table.asp?shownav=1?query=main+category&rank=100&shownav=1

local_subspecialty

Local subspeciality that the episode falls into coded using the same data dictionary coding as Main Speciality

ward_category

The type of ward that the patient is on during the episode (e.g. Acute Medical Unit)

ward_stay_number

The number of wards that the patient has been on during their stay upto this specific episode

consultant

The name or pseudo-identifier of the consultant looking after the patient

diagnosis_code

A string formed by concatenating the ICD diagnosis codes for that patient stay in the format of a single column with an identifiable separator

hrg_code

Healthcare Resource Group code. Standard groupings of clinically similar treatments which use common levels of healthcare resource, and which are currently used as a means of determining fair and equitable reimbursement for care services


HorridTom/hospitalflow documentation built on June 14, 2022, noon