Learn R Programming

SangerTools (version 1.0.2)

master_patient_index: Master Patient Index

Description

A fabricated Master Patient Index (MPI) inspired by Gloucestershire's population to be used with functions included in SangerTools

Usage

master_patient_index

Arguments

Format

A tibble with 10,000 rows and 11 variables:

PseudoNHSNumber

A Pseudonymised NHS Patient Identifier

Sex

The identifiable sex of the patient

Smoker

Health Condition Flag: 1 denotes if the patient is a smoker

Diabetes

Health Condition Flag: 1 denotes if the patient has diabetes

Dementia

Health Condition Flag: 1 denotes if the patient has dementia

Obesity

Health Condition Flag: 1 denotes if the patient is Obese

Age

Age of the patient

IMD_Decile

The decile of indices of multiple deprivation: https://www.gov.uk/government/statistics/english-indices-of-deprivation-2019

Ethnicity

The identifiable ethnicity of the patient

Locality

The region where the patient lives - sampled from Gloucestershire Clinical Commissioning Group

PrimaryCareNetwork

The network of General Practioners that the patient is registerd with - sampled from Gloucestershire Clinical Commissioning Group

Examples

Run this code
# NOT RUN {
library(dplyr)
data(master_patient_index)
# Convert diabetes data to factor'
master_patient_index %>%
 glimpse()
# }

Run the code above in your browser using DataLab