Learn R Programming

Epidemiological Data Management (epidm)

The goal of epidm is provide standard methods for the management and transformation of UK Public Health data.

The full function guide can be found here

Installation

Available via CRAN or you can download the development version via GitHub

install.packages("epidm")
devtools::install_github("alexbhatt/epidm")

Purpose

The epidm package has been developed to share standard methods for the processing of epidemiological data in the UK. Key data assets this focuses on include

Infection data

The Second Generation Surveillance System (SGSS) is a data asset held by the UK Health Security Agency (formerly Public Health England) which routinely and automatically collects laboratory data from across England.

Laboratories return data on organisms isolated from samples such as the organism species, specimen type, sampling date and antimicrobial susceptibility testing results. These data are routinely used for public health surveillance and epidemiology in England.

Hospital data

The functions for dealing with hospital data within epidm are designed to help clean, process, and link the hospital in a meaningful way. These methods have been used to help understand Healthcare Associated COVID-19 in England.

Emergency Care Data Set (ECDS)

ECDS is the national data set for urgent and emergency care and is reported daily by NHS Trusts.

Secondary Use Services (SUS)

SUS is the single, comprehensive repository for healthcare data in England which enables a range of reporting and analyses to support the NHS in the delivery of healthcare services. SUS is reported monthly, by the 21st of each month for the previous months data.

Hospital Episode Statistics (HES)

HES is a data warehouse containing details of all admissions, outpatient appointments and A and E attendances at NHS hospitals in England. Hes is reported quarterly, and is a 'cleaned' version of SUS and ECDS.

Copy Link

Version

Install

install.packages('epidm')

Monthly Downloads

307

Version

1.0.4

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Alex Bhattacharya

Last Published

July 11th, 2022

Functions in epidm (1.0.4)

respeciate_generic

Respeciate unspecified samples
group_time

Grouping of intervals or events in time together
proxy_episode_dates

HES/SUS Episode Date Cleaning
lookup_recode

Lookup table switch handler
cip_spells

Continuous Inpatient (CIP) Spells
inpatient_codes

Inpatient Codes cleanup
csv_from_zip

Download a csv from a zip
genus_gram_stain

Bacterial Genus Gram Stain Lookup Table
sql_connect

Connect to a SQL database
respeciate_organism

Respeciated organisms
specimen_type_grouping

Specimen type grouping
uk_patient_id

Patient ID record grouping
sql_write

Write a table to a SQL database
sql_clean

Clean and Read a SQL query
valid_nhs

NHS Number Validity Check
sql_read

Read a table from a SQL database
link_ae_inpatient

Link A&E to Inpatient records