diff --git a/.RData b/.RData new file mode 100644 index 0000000..c8054f4 Binary files /dev/null and b/.RData differ diff --git a/analysis/codelists.py b/analysis/codelists.py new file mode 100644 index 0000000..1f3511c --- /dev/null +++ b/analysis/codelists.py @@ -0,0 +1,176 @@ +# import ehrql function for importing codelists +from ehrql import ( + codelist_from_csv +) + +# ethnicity codes +ethnicity_codes = codelist_from_csv( + "codelists/opensafely-ethnicity-snomed-0removed.csv", + column = "snomedcode", + category_column = "Grouping_6", +) +ethnicity_codes_16 = codelist_from_csv( + "codelists/opensafely-ethnicity-snomed-0removed.csv", + column = "snomedcode", + category_column = "Grouping_16", +) + +# smoking +clear_smoking_codes = codelist_from_csv( + "codelists/opensafely-smoking-clear.csv", + column = "CTV3Code", + category_column = "Category", +) + +unclear_smoking_codes = codelist_from_csv( + "codelists/opensafely-smoking-unclear.csv", + column = "CTV3Code", + category_column = "Category", +) + +# drinking +drinking_codelist = codelist_from_csv( + "codelists/user-angel-wong-hazardous-drinking.csv", + column = "code", +) + +# illicit substances +drug_usage_codelist = codelist_from_csv( + "codelists/nhsd-primary-care-domain-refsets-illsub_cod.csv", + column = "code", +) +drug_intervention_codelist = codelist_from_csv( + "codelists/nhsd-primary-care-domain-refsets-illsubint_cod.csv", + column = "code", +) +drug_assessment_declination_codelist = codelist_from_csv( + "codelists/nhsd-primary-care-domain-refsets-illsubassdec_cod.csv", + column = "code", +) + +# asthma diagnosis +asthma_codelist = codelist_from_csv( + "codelists/nhsd-primary-care-domain-refsets-ast_cod.csv", + column = "code", +) + +# asthma medications +asthma_medications = codelist_from_csv( + "codelists/opensafely-asthma-inhaler-steroid-medication.csv", + column = "code", +) + +# reactive airway disease code +reactive_airway_disease_code = ["266898002"] + +# COPD +copd_codelist = codelist_from_csv( + "codelists/nhsd-primary-care-domain-refsets-copd_cod.csv", + column = "code", +) +copd_medications = codelist_from_csv( + "codelists/bristol-copd-medications-bnf.csv", + column = "code", +) + +# pulmonary fibrosis +pulmonary_fibrosis_codelist = codelist_from_csv( + "codelists/bristol-ild-snomed.csv", + column = "code", +) + +# # hypertension +# hypertension_codelist = codelist_from_csv( +# "codelists/nhsd-primary-care-domain-refsets-hyp_cod.csv", +# column = "code", +# ) +# +# # type 1 diabetes +# type1_diabetes_codelist = codelist_from_csv( +# "codelists/nhsd-primary-care-domain-refsets-dmtype1_cod.csv", +# column = "code", +# ) +# +# # non-type 1 diabetes +# non_type1_diabetes_codelist = codelist_from_csv( +# "codelists/nhsd-primary-care-domain-refsets-dmnontype1_cod.csv", +# column = "code", +# ) +# +# # heart failure +# heart_failure_codelist = codelist_from_csv( +# "codelists/nhsd-primary-care-domain-refsets-hf_cod.csv", +# column = "code", +# ) +# +# # prior MI +# prior_mi_codelist = codelist_from_csv( +# "codelists/nhsd-primary-care-domain-refsets-mi_cod.csv", +# column = "code", +# ) + +# rsv primary - specific + +# rsv secondary - specific + +# covid primary - specific +covid_primary_codelist = codelist_from_csv( + "codelists/opensafely-covid-identification-in-primary-care-probable-covid-positive-test.csv", + column = "CTV3ID", +) + +# covid secondary - specific +covid_secondary_codelist = codelist_from_csv( + "codelists/opensafely-covid-identification.csv", + column = "icd10_code", +) + +# flu primary - specific + +# flu secondary - specific + +# rsv primary - sensitive + +# rsv secondary - sensitive + +# covid primary - sensitive +covid_primary_codelist = codelist_from_csv( + "codelists/opensafely-covid-identification-in-primary-care-probable-covid-positive-test.csv", + column = "CTV3ID", +) + +# covid secondary - sensitive +covid_secondary_codelist = codelist_from_csv( + "codelists/opensafely-covid-identification.csv", + column = "icd10_code", +) + +# flu primary - sensitive + +# flu secondary - sensitive + +##exclusion criteria + +# care home +care_home_codelist = codelist_from_csv( + "codelists/nhsd-primary-care-domain-refsets-carehome_cod.csv", + column = "code", +) + +# severe combined immunodeficiency syndrome +severe_immunodeficiency_code = ["31323000"] + +# requiring ventilation +ventilation_codes = ["Z99.1", "P28.8"] + +# cardiac disease +cardiac_disease_codelist = codelist_from_csv( + "codelists/opensafely-chronic-cardiac-disease.csv", + column = "CTV3ID", +) + +# pulmonary hypertension +pulmonary_hypertension_codelist = codelist_from_csv( + "codelists/nhsd-primary-care-domain-refsets-pulmohyp_cod.csv", + column = "code", +) diff --git a/analysis/dataset_definition.py b/analysis/dataset_definition.py index 18824f6..69d51ef 100644 --- a/analysis/dataset_definition.py +++ b/analysis/dataset_definition.py @@ -1,14 +1,311 @@ -from ehrql import create_dataset -from ehrql.tables.tpp import patients, practice_registrations +import json, sys +from pathlib import Path -dataset = create_dataset() +from datetime import date, datetime +from ehrql import Dataset, case, when, maximum_of, minimum_of, years +from ehrql.tables.tpp import ( + patients, + medications, + ons_deaths, + addresses, + clinical_events, + practice_registrations, + household_memberships_2020, + vaccinations, + apcs +) +import codelists -index_date = "2020-03-31" +dataset = Dataset() -has_registration = practice_registrations.for_patient_on( - index_date -).exists_for_patient() +####################################################################################### +# Import study dates defined in "./analysis/design/study-dates.R" script and then exported +# to JSON +####################################################################################### +study_dates = json.loads( + Path("analysis/design/study-dates.json").read_text(), +) -dataset.define_population(has_registration) +args = sys.argv +# Change these in ./analysis/design/study-dates.R if necessary +study_start_date = study_dates[args[2]] +study_end_date = study_dates[args[3]] +index_date = study_start_date +registration_date = index_date - years(1) + +age_at_start = patients.age_on(study_start_date) +age_at_end = patients.age_on(study_end_date) +age_months = (index_date - patients.date_of_birth).months +age_at_start_months = (study_start_date - patients.date_of_birth).months + +#get patients who are registered, have sex, age, and imd info +registered_patients = case( + when(args[1] == "adults").then(practice_registrations + .for_patient_on(registration_date).exists_for_patient()), + when(args[1] == "children_adolescents").then(practice_registrations + .for_patient_on(registration_date).exists_for_patient()), + otherwise = practice_registrations.for_patient_on(index_date).exists_for_patient() +) +is_female_or_male = patients.sex.is_in(["female", "male"]) +is_appropriate_age = case( + when(args[1] == "older_adults").then((age_at_start <= 110) & (age_at_end >= 65)), + when(args[1] == "adults").then((age_at_start <= 64) & (age_at_end >= 18)), + when(args[1] == "children_adolescents").then((age_at_start <= 17) & (age_at_end >= 2)), + when(args[1] == "infants").then(age_at_start_months <= 23), + when(args[1] == "infants_subgroup").then(age_at_start_months <= 23) +) +has_imd = (addresses.for_patient_on(index_date).imd_rounded.is_not_null()) + +#define population +dataset.define_population( + registered_patients + & is_female_or_male + & is_appropriate_age + & has_imd +) + +#registration, sex and age +dataset.registered = registered_patients dataset.sex = patients.sex +dataset.age = case( + when(args[1] == "adults").then(age_at_start), + when(args[1] == "children_adolescents").then(age_at_start), + when(args[1] == "infants").then(age_at_start_months), + when(args[1] == "infants_subgroup").then(age_at_start_months) +) + +#date of death +dataset.death_date = ons_deaths.date + +#define latest ethnicity code for patient +dataset.latest_ethnicity_code = ( + clinical_events.where(clinical_events.snomedct_code.is_in(codelists.ethnicity_codes)) + .where(clinical_events.date.is_on_or_before(index_date)) + .sort_by(clinical_events.date) + .last_for_patient() + .snomedct_code +) + +#get patients IMD rank +dataset.imd_rounded = addresses.for_patient_on(index_date).imd_rounded + +#get rural/urban classification +dataset.rural_urban_classification = addresses.for_patient_on(index_date).rural_urban_classification + +#get patients household info +dataset.household_pseudo_id = household_memberships_2020.household_pseudo_id +dataset.household_size = household_memberships_2020.household_size + +# #get patients practice's pseudonymised identifier +# dataset.practice = practice_registrations.for_patient_on(index_date).practice_pseudo_id + +#practice and patient information +dataset.region = (practice_registrations.for_patient_on(index_date)).practice_nuts1_region_name +dataset.stp = (practice_registrations.for_patient_on(index_date)).practice_stp + +##comorbidities + +#medication date +medication_date = index_date - years(1) + +#has asthma if there is a recent asthma diagnosis and a medication prescribed +dataset.has_asthma = ( + clinical_events.where(clinical_events.snomedct_code.is_in(codelists.asthma_codelist)) + .exists_for_patient() & medications.where(medications.dmd_code + .is_in(codelists.asthma_medications)) + .where(medications.date.is_on_or_between(medication_date, index_date)) + .exists_for_patient() +) + +#reactive airway disease diagnosis +if args[1] == "children_adolescents" : + dataset.has_reactive_airway = ( + clinical_events.where(clinical_events.snomedct_code + .is_in(reactive_airway_disease_code)) + .exists_for_patient() + ) + +#copd diagnosis +if args[1] == "adults" or args[1] == "older_adults" : + dataset.has_copd = ( + clinical_events.where(clinical_events.snomedct_code.is_in(codelists.copd_codelist)) + #& medications.where(medications.dmd_code.is_in(codelists.copd_medications)) + .exists_for_patient() + ) + +#pulmonary fibrosis diagnosis +if args[1] == "adults" or args[1] == "older_adults" : + dataset.has_pulmonary_fibrosis = ( + clinical_events.where(clinical_events.snomedct_code + .is_in(codelists.pulmonary_fibrosis_codelist)) + .where(clinical_events.date.is_on_or_before(index_date)) + .exists_for_patient() + ) + +#define earliest vaccination date +vaccination_date = study_start_date - years(1) + +#define seasons for covid +covid_season_min = datetime.strptime("2019-09-01", "%Y-%m-%d") + +#vaccinations +if args[1] == "adults" or args[1] == "older_adults" or args[1] == "children_adolescents" : + flu_vaccination = ( + vaccinations.where(vaccinations.target_disease.is_in(["Influenza"])) + .sort_by(vaccinations.date) + .where(vaccinations.date.is_on_or_between(vaccination_date, index_date)) + .exists_for_patient() + ) + +if datetime.strptime(study_start_date, "%Y-%m-%d") >= covid_season_min : + if args[1] == "adults" or args[1] == "older_adults" or args[1] == "children_adolescents" : + covid_vaccination_count = ( + vaccinations.where(vaccinations.target_disease.is_in(["SARS-COV-2"])) + .sort_by(vaccinations.date) + .where(vaccinations.date.is_on_or_before(index_date)) + .count_for_patient() + ) + + +##outcomes + +#rsv primary +dataset.rsv_primary = ( + clinical_events.where(clinical_events.ctv3_code + .is_in(codelists.covid_primary_codelist)) #change codelist when available + .exists_for_patient() +) + +#date +dataset.rsv_primary_date = ( + clinical_events.where(clinical_events.ctv3_code + .is_in(codelists.covid_primary_codelist)) #change codelist when available + .sort_by(clinical_events.date) + .first_for_patient().date +) + +#rsv secondary +dataset.rsv_secondary = ( + apcs.where(apcs.primary_diagnosis + .is_in(codelists.covid_secondary_codelist)) #change codelist when available + .exists_for_patient() + |apcs.where(apcs.secondary_diagnosis + .is_in(codelists.covid_secondary_codelist)) #change codelist when available + .exists_for_patient() +) + +#date +dataset.rsv_secondary_date = ( + apcs.sort_by(apcs.admission_date) + .where(apcs.primary_diagnosis.is_in(codelists.covid_secondary_codelist) #change codelist when available + |apcs.secondary_diagnosis.is_in(codelists.covid_secondary_codelist)) #change codelist when available + .first_for_patient().admission_date +) + +#covid primary +if datetime.strptime(study_start_date, "%Y-%m-%d") >= covid_season_min : + dataset.covid_primary = ( + clinical_events.where(clinical_events.ctv3_code + .is_in(codelists.covid_primary_codelist)) + .exists_for_patient() + ) + +#date +if datetime.strptime(study_start_date, "%Y-%m-%d") >= covid_season_min : + dataset.covid_primary_date = ( + clinical_events.where(clinical_events.ctv3_code + .is_in(codelists.covid_primary_codelist)) + .sort_by(clinical_events.date) + .first_for_patient().date + ) + +#covid secondary +if datetime.strptime(study_start_date, "%Y-%m-%d") >= covid_season_min : + dataset.covid_secondary = ( + apcs.where(apcs.primary_diagnosis + .is_in(codelists.covid_secondary_codelist)) + .exists_for_patient() + |apcs.where(apcs.secondary_diagnosis + .is_in(codelists.covid_secondary_codelist)) + .exists_for_patient() + ) + +#date +if datetime.strptime(study_start_date, "%Y-%m-%d") >= covid_season_min : + dataset.covid_secondary_date = ( + apcs.sort_by(apcs.admission_date) + .where(apcs.primary_diagnosis.is_in(codelists.covid_secondary_codelist) + |apcs.secondary_diagnosis.is_in(codelists.covid_secondary_codelist)) + .first_for_patient().admission_date + ) + +#flu primary +dataset.flu_primary = ( + clinical_events.where(clinical_events.ctv3_code + .is_in(codelists.covid_primary_codelist)) #change codelist when available + .exists_for_patient() +) + +#date +dataset.flu_primary_date = ( + clinical_events.where(clinical_events.ctv3_code + .is_in(codelists.covid_primary_codelist)) #change codelist when available + .sort_by(clinical_events.date) + .first_for_patient().date +) + +#flu secondary +dataset.flu_secondary = ( + apcs.where(apcs.primary_diagnosis + .is_in(codelists.covid_secondary_codelist)) #change codelist when available + .exists_for_patient() + |apcs.where(apcs.secondary_diagnosis + .is_in(codelists.covid_secondary_codelist)) #change codelist when available + .exists_for_patient() +) + +#date +dataset.flu_secondary_date = ( + apcs.sort_by(apcs.admission_date) + .where(apcs.primary_diagnosis.is_in(codelists.covid_secondary_codelist) #change codelist when available + |apcs.secondary_diagnosis.is_in(codelists.covid_secondary_codelist)) #change codelist when available + .first_for_patient().admission_date +) + +##exclusion criteria + +#combined severe immunodeficiency syndrome +if args[1] == "infants" or args[1] == "infants_subgroup" : + dataset.severe_immunodeficiency = ( + clinical_events.where(clinical_events.snomedct_code + .is_in(codelists.severe_immunodeficiency_code)) + .exists_for_patient() + ) + +#infant risk group (cardiac disease, pulmonary hypertension) +if args[1] == "infants" or args[1] == "infants_subgroup" : + dataset.risk_group_infants = ( + clinical_events.where(clinical_events.ctv3_code + .is_in(codelists.cardiac_disease_codelist)) + .exists_for_patient() + |clinical_events.where(clinical_events.snomedct_code + .is_in(codelists.pulmonary_hypertension_codelist)) + .exists_for_patient() + ) + +#events occurring before index date +prior_events = clinical_events.where(clinical_events.date.is_on_or_before(index_date)) + +#query prior_events for existence of event-in-codelist +def has_prior_event(codelist, where=True): + return ( + prior_events.where(where) + .where(prior_events.snomedct_code.is_in(codelist)) + .exists_for_patient() + ) + +#care home resident +if args[1] == "older_adults" : + dataset.care_home_tpp = (addresses.care_home_is_potential_match.if_null_then(False)) + dataset.care_home_code = (has_prior_event(codelists.carehome_codelist)) diff --git a/analysis/design/design.R b/analysis/design/design.R new file mode 100644 index 0000000..f619c89 --- /dev/null +++ b/analysis/design/design.R @@ -0,0 +1,18 @@ +# # # # # # # # # # # # # # # # # # # # # +# Purpose: creates metadata objects for aspects of the study design +# This script should be sourced (ie `source(".../design.R")`) in the analysis scripts +# # # # # # # # # # # # # # # # # # # # # + +# Preliminaries ---- + +## Import libraries ---- +library("tidyverse") +library("here") + +## create output directories ---- +fs::dir_create(here("analysis", "design")) + +# import globally defined repo variables +study_dates <- + jsonlite::read_json(path=here("analysis", "design", "study-dates.json")) %>% + map(as.Date) diff --git a/analysis/design/study-dates.R b/analysis/design/study-dates.R new file mode 100644 index 0000000..9dc20b6 --- /dev/null +++ b/analysis/design/study-dates.R @@ -0,0 +1,31 @@ +# # # # # # # # # # # # # # # # # # # # # +# Purpose: Define the study dates that are used throughout the rest of the project +# Notes: +# This script is separate from the design.R script as the dates are used by the study definition as well as analysis R scripts. +# # # # # # # # # # # # # # # # # # # # # + +## create output directories ---- +fs::dir_create(here::here("analysis", "design")) + +# define key dates ---- + +study_dates <- tibble::lst( + study_start_date = "2016-03-01", # first possible study entry date (when HES data is first available) + study_end_date = "2024-01-28", # last study entry dates + season1_start_date = "2016-09-01", #start of first season + season1_end_date = "2017-08-31", #end of first season + season2_start_date = "2017-09-01", #start of first season + season2_end_date = "2018-08-31", #end of first season + season3_start_date = "2018-09-01", #start of first season + season3_end_date = "2019-08-31", #end of first season + season4_start_date = "2019-09-01", #start of first season + season4_end_date = "2020-08-31", #end of first season + season5_start_date = "2020-09-01", #start of first season + season5_end_date = "2021-08-31", #end of first season + season6_start_date = "2021-09-01", #start of first season + season6_end_date = "2022-08-31", #end of first season + season7_start_date = "2022-09-01", #start of first season + season7_end_date = "2023-08-31", #end of first season +) + +jsonlite::write_json(study_dates, path = here::here("analysis", "design", "study-dates.json"), auto_unbox=TRUE, pretty =TRUE) diff --git a/analysis/design/study-dates.json b/analysis/design/study-dates.json new file mode 100644 index 0000000..9bae18c --- /dev/null +++ b/analysis/design/study-dates.json @@ -0,0 +1,18 @@ +{ + "study_start_date": "2016-03-01", + "study_end_date": "2024-01-28", + "season1_start_date": "2016-09-01", + "season1_end_date": "2017-08-31", + "season2_start_date": "2017-09-01", + "season2_end_date": "2018-08-31", + "season3_start_date": "2018-09-01", + "season3_end_date": "2019-08-31", + "season4_start_date": "2019-09-01", + "season4_end_date": "2020-08-31", + "season5_start_date": "2020-09-01", + "season5_end_date": "2021-08-31", + "season6_start_date": "2021-09-01", + "season6_end_date": "2022-08-31", + "season7_start_date": "2022-09-01", + "season7_end_date": "2023-08-31" +} diff --git a/analysis/dummydata/dummydata_adults.R b/analysis/dummydata/dummydata_adults.R new file mode 100644 index 0000000..65bc699 --- /dev/null +++ b/analysis/dummydata/dummydata_adults.R @@ -0,0 +1,283 @@ +##create a dummy dataset + +library("tidyverse") +library("arrow") +library("here") +library("glue") +library("EnvStats") + +remotes::install_github("https://github.com/wjchulme/dd4d") +library("dd4d") + +## create output directories ---- +fs::dir_create(here("analysis", "dummydata")) + +#define population size for dummy data +population_size <- 100000 + +#define index date and study start date +source(here("analysis", "design", "design.R")) +study_start_date <- as.Date(study_dates$season1_start_date) +study_end_date <- as.Date(study_dates$season1_end_date) +index_date <- study_start_date + +#define index day and study start day +index_day <- 0L +study_start_day <- as.integer(study_start_date - index_date) +study_end_day <- as.integer(study_end_date - index_date) + +#define known variables +known_variables <- c( + "index_date", + "index_day" +) + +# Define a helper function to calculate household size based on household_pseudo_id +calculate_household_sizes <- function(pseudo_ids) { + as.integer(ave(pseudo_ids, pseudo_ids, FUN = function(x) rnormTrunc(1, mean = 2, sd = 3, min = 0))) +} + +#define a list which will contain all of the variables to be simulated +sim_list = lst( + + #whether the patient is registered with the practice + registered = bn_node( + ~ rbernoulli(n = ..n, p = 0.99), + ), + + #sex of the patient + sex = bn_node( + ~ rfactor(n = ..n, levels = c("female", "male", "intersex", "unknown"), + p = c(0.51, 0.49, 0, 0)), missing_rate = ~ 0.001 + ), + + #age of the patient + age = bn_node( + ~ as.integer(rnormTrunc(n = ..n, mean = 60, sd = 14, min = 18, max = 65)), + missing_rate = ~ 0.001 + ), + + #sustainability transformation partnership code (here a pseudocode just represented by a number) + stp = bn_node( + ~ factor(as.integer(runif(n = ..n, 1, 36)), levels = 1:36), + ), + + #whether the participant has diabetes or not + diabetes = bn_node( + ~ rbernoulli(n = ..n, p = plogis(-1 + age*0.02 + I(sex == "female")*-0.2)) + ), + + #region the patient lives in + region = bn_node( + ~ rfactor(n = ..n, levels = c( + "North East", + "North West", + "Yorkshire and The Humber", + "East Midlands", + "West Midlands", + "East", + "London", + "South East", + "South West" + ), p = c(0.2, 0.2, 0.3, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05)), + ), + + #practice ID + practice_pseudo_id = bn_node( + ~ as.integer(rnormTrunc(n = ..n, mean = 500, sd = 500, min = 1)) + ), + + #day of death for patient (want most to be alive) + death_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 2000)), + missing_rate = ~ 0.99 + ), + + #rurality classification + rural_urban_classification = bn_node( + ~ as.integer(runif(n = ..n, min = 1, max = 8)) + ), + + ##exposures + + #index of multiple deprivation + imd_rounded = bn_node( + ~ as.integer(round(runif(n = ..n, min = 0, max = 32844), digits = -2)), + missing_rate = ~ 0.05 + ), + + #ethnicity (group 6) + latest_ethnicity_code = bn_node( + ~ rfactor(n = ..n, levels = c( + "1", + "2", + "3", + "4", + "5", + "6" + ), p = c(0.81, 0.03, 0.1, 0.04, 0.02, 0)) + ), + + #household ID (to determine composition) + household_pseudo_id = bn_node( + ~ as.integer(rnormTrunc(n = ..n, mean = 500, sd = 500, min = 0)) + ), + + # number of people in household + household_size = bn_node( + ~ calculate_household_sizes(household_pseudo_id) + ), + + ##comorbidities + + #smoking status + most_recent_smoking_code = bn_node( + ~ rfactor(n = ..n, levels = c( + "S", #smoker + "E", #ever-smoked + "N", #never smoked + "M" #missing + ), p = c(0.1, 0.2, 0.7, 0)) + ), + + #drinking + hazardous_drinking = bn_node( + ~ rbernoulli(n = ..n, p = 0.1), + ), + + #drug usage + drug_usage = bn_node( + ~ rbernoulli(n = ..n, p = 0.05), + ), + + #has asthma + has_asthma = bn_node( + ~ rbernoulli(n = ..n, p = 0.2) + ), + + #copd + has_copd = bn_node( + ~ rbernoulli(n = ..n, p = plogis(-1 + I(most_recent_smoking_code == "S")*-0.5 + + I(most_recent_smoking_code == "E")*-0.1)) + ), + + #pulmonary fibrosis + has_pulmonary_fibrosis = bn_node( + ~ rbernoulli(n = ..n, p = 0.001) + ), + + #hypertension + has_hypertension = bn_node( + ~ rbernoulli(n = ..n, p = 0.2) + ), + + #diabetes + has_diabetes = bn_node( + ~ rbernoulli(n = ..n, p = plogis(-1 + age*0.02 + I(sex == "female")*-0.2)) + ), + + #heart failure + has_heart_failure = bn_node( + ~ rbernoulli(n = ..n, p = 0.015) + ), + + #myocardial infarction + has_prior_mi = bn_node( + ~ rbernoulli(n = ..n, p = 0.1) + ), + + #flu vaccination + flu_vaccination = bn_node( + ~ rbernoulli(n = ..n, p = 0.75) + ), + + #covid vaccination + covid_vaccination_count = bn_node( + ~ as.integer(rfactor(n = ..n, levels = c( + 0, 1, 2, 3, 4, 5, 6), + p = c(0.25, 0.4, 0.2, 0.1, 0.03, 0.01, 0.01))) + ), + + ##outcomes + + #rsv primary care + rsv_primary = bn_node( + ~ rbernoulli(n = ..n, p = 0.01) + ), + + #date + rsv_primary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #rsv secondary care + rsv_secondary = bn_node( + ~ rbernoulli(n = ..n, p = 0.05) + ), + + #date + rsv_secondary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #covid primary care + covid_primary = bn_node( + ~ rbernoulli(n = ..n, p = 0.05) + ), + + #date + covid_primary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #covid secondary care + covid_secondary = bn_node( + ~ rbernoulli(n = ..n, p = 0.1) + ), + + #date + covid_secondary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #flu primary care + flu_primary = bn_node( + ~ rbernoulli(n = ..n, p = 0.01) + ), + + #date + flu_primary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #flu secondary care + flu_secondary = bn_node( + ~ rbernoulli(n = ..n, p = 0.1) + ), + + #date + flu_secondary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ) + +) + +bn <- bn_create(sim_list, known_variables = known_variables) + +bn_plot(bn) +bn_plot(bn, connected_only = TRUE) + +set.seed(10) + +dummydata <- bn_simulate(bn, pop_size = population_size, keep_all = FALSE, .id = "patient_id") + +dummydata$patient_start_day <- study_start_day +dummydata$patient_end_day <- study_end_day + +dummydata_processed <- dummydata %>% + mutate(across(ends_with("_day"), ~ as.Date(as.character(index_date + .)))) %>% + rename_with(~str_replace(., "_day", "_date"), ends_with("_day")) + +fs::dir_create(here("analysis", "dummydata")) +write_feather(dummydata_processed, sink = here("analysis", "dummydata", + paste0("dummyextract_adults_", year(study_start_date), "_", year(study_end_date), ".arrow"))) diff --git a/analysis/dummydata/dummydata_children_adolescents.R b/analysis/dummydata/dummydata_children_adolescents.R new file mode 100644 index 0000000..4a12628 --- /dev/null +++ b/analysis/dummydata/dummydata_children_adolescents.R @@ -0,0 +1,237 @@ +##create a dummy dataset + +library("tidyverse") +library("arrow") +library("here") +library("glue") +library("EnvStats") + +remotes::install_github("https://github.com/wjchulme/dd4d") +library("dd4d") + +## create output directories ---- +fs::dir_create(here("analysis", "dummydata")) + +#define population size for dummy data +population_size <- 100000 + +#define index date and study start date +source(here("analysis", "design", "design.R")) +study_start_date <- as.Date(study_dates$season1_start_date) +study_end_date <- as.Date(study_dates$season1_end_date) +index_date <- study_start_date + +#define index day and study start day +index_day <- 0L +study_start_day <- as.integer(study_start_date - index_date) +study_end_day <- as.integer(study_end_date - index_date) + +#define known variables +known_variables <- c( + "index_date", + "index_day" +) + +# Define a helper function to calculate household size based on household_pseudo_id +calculate_household_sizes <- function(pseudo_ids) { + as.integer(ave(pseudo_ids, pseudo_ids, FUN = function(x) rnormTrunc(1, mean = 2, sd = 3, min = 0))) +} + +#define a list which will contain all of the variables to be simulated +sim_list = lst( + + #whether the patient is registered with the practice + registered = bn_node( + ~ rbernoulli(n = ..n, p = 0.99), + ), + + #sex of the patient + sex = bn_node( + ~ rfactor(n = ..n, levels = c("female", "male", "intersex", "unknown"), + p = c(0.51, 0.49, 0, 0)), missing_rate = ~ 0.001 + ), + + #age of the patient + age = bn_node( + ~ as.integer(rnormTrunc(n = ..n, mean = 60, sd = 14, min = 5, max = 17)), + missing_rate = ~ 0.001 + ), + + #sustainability transformation partnership code (here a pseudocode just represented by a number) + stp = bn_node( + ~ factor(as.integer(runif(n = ..n, 1, 36)), levels = 1:36), + ), + + #region the patient lives in + region = bn_node( + ~ rfactor(n = ..n, levels = c( + "North East", + "North West", + "Yorkshire and The Humber", + "East Midlands", + "West Midlands", + "East", + "London", + "South East", + "South West" + ), p = c(0.2, 0.2, 0.3, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05)), + ), + + #practice ID + practice_pseudo_id = bn_node( + ~ as.integer(rnormTrunc(n = ..n, mean = 500, sd = 500, min = 0)) + ), + + #day of death for patient (want most to be alive) + death_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 2000)), + missing_rate = ~ 0.99 + ), + + #rurality classification + rural_urban_classification = bn_node( + ~ as.integer(runif(n = ..n, min = 1, max = 8)) + ), + + ##exposures + + #index of multiple deprivation + imd_rounded = bn_node( + ~ as.integer(round(runif(n = ..n, min = 0, max = 32844), digits = -2)), + missing_rate = ~ 0.05 + ), + + #ethnicity (group 6) + latest_ethnicity_code = bn_node( + ~ rfactor(n = ..n, levels = c( + "1", + "2", + "3", + "4", + "5", + "6" + ), p = c(0.81, 0.03, 0.1, 0.04, 0.02, 0)) + ), + + #household ID (to determine composition) + household_pseudo_id = bn_node( + ~ as.integer(rnormTrunc(n = ..n, mean = 500, sd = 500, min = 0)) + ), + + # number of people in household + household_size = bn_node( + ~ calculate_household_sizes(household_pseudo_id) + ), + + ##comorbidities + + #has asthma + has_asthma = bn_node( + ~ rbernoulli(n = ..n, p = 0.15) + ), + + #has reactive airway disease + has_reactive_airway = bn_node( + ~ rbernoulli(n = ..n, p = 0.05) + ), + + # #diabetes + # has_diabetes = bn_node( + # ~ rbernoulli(n = ..n, p = plogis(-1 + age*0.02 + I(sex == "female")*-0.2)) + # ), + + #flu vaccination + flu_vaccination = bn_node( + ~ rbernoulli(n = ..n, p = 0.75) + ), + + #covid vaccination + covid_vaccination_count = bn_node( + ~ as.integer(rfactor(n = ..n, levels = c( + 0, 1, 2, 3, 4, 5, 6), + p = c(0.25, 0.4, 0.2, 0.1, 0.03, 0.01, 0.01))) + ), + + ##outcomes + + #rsv primary care + rsv_primary = bn_node( + ~ rbernoulli(n = ..n, p = 0.01) + ), + + #date + rsv_primary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #rsv secondary care + rsv_secondary = bn_node( + ~ rbernoulli(n = ..n, p = 0.05) + ), + + #date + rsv_secondary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #covid primary care + covid_primary = bn_node( + ~ rbernoulli(n = ..n, p = 0.05) + ), + + #date + covid_primary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #covid secondary care + covid_secondary = bn_node( + ~ rbernoulli(n = ..n, p = 0.1) + ), + + #date + covid_secondary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #flu primary care + flu_primary = bn_node( + ~ rbernoulli(n = ..n, p = 0.01) + ), + + #date + flu_primary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #flu secondary care + flu_secondary = bn_node( + ~ rbernoulli(n = ..n, p = 0.1) + ), + + #date + flu_secondary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ) + +) + +bn <- bn_create(sim_list, known_variables = known_variables) + +bn_plot(bn) +bn_plot(bn, connected_only = TRUE) + +set.seed(10) + +dummydata <- bn_simulate(bn, pop_size = population_size, keep_all = FALSE, .id = "patient_id") + +dummydata$patient_start_day <- study_start_day +dummydata$patient_end_day <- study_end_day + +dummydata_processed <- dummydata %>% + mutate(across(ends_with("_day"), ~ as.Date(as.character(index_date + .)))) %>% + rename_with(~str_replace(., "_day", "_date"), ends_with("_day")) + +fs::dir_create(here("analysis", "dummydata")) +write_feather(dummydata_processed, sink = here("analysis", "dummydata", + paste0("dummyextract_children_adolescents_", year(study_start_date), "_", year(study_end_date), ".arrow"))) diff --git a/analysis/dummydata/dummydata_infants.R b/analysis/dummydata/dummydata_infants.R new file mode 100644 index 0000000..f2adaac --- /dev/null +++ b/analysis/dummydata/dummydata_infants.R @@ -0,0 +1,228 @@ +##create a dummy dataset + +library("tidyverse") +library("arrow") +library("here") +library("glue") +library("EnvStats") + +remotes::install_github("https://github.com/wjchulme/dd4d") +library("dd4d") + +## create output directories ---- +fs::dir_create(here("analysis", "dummydata")) + +#define population size for dummy data +population_size <- 100000 + +#define index date and study start date +source(here("analysis", "design", "design.R")) +study_start_date <- as.Date(study_dates$season1_start_date) +study_end_date <- as.Date(study_dates$season1_end_date) +index_date <- study_start_date + +#define index day and study start day +index_day <- 0L +study_start_day <- as.integer(study_start_date - index_date) +study_end_day <- as.integer(study_end_date - index_date) + +#define known variables +known_variables <- c( + "index_date", + "index_day" +) + +# Define a helper function to calculate household size based on household_pseudo_id +calculate_household_sizes <- function(pseudo_ids) { + as.integer(ave(pseudo_ids, pseudo_ids, FUN = function(x) rnormTrunc(1, mean = 2, sd = 3, min = 0))) +} + +#define a list which will contain all of the variables to be simulated +sim_list = lst( + + #whether the patient is registered with the practice + registered = bn_node( + ~ rbernoulli(n = ..n, p = 0.99), + ), + + #sex of the patient + sex = bn_node( + ~ rfactor(n = ..n, levels = c("female", "male", "intersex", "unknown"), + p = c(0.51, 0.49, 0, 0)), missing_rate = ~0.001 + ), + + #age of the patient (months) + age = bn_node( + ~ as.integer(rnormTrunc(n = ..n, mean = 12, sd = 4, min = 0, max = 23)), + ), + + #sustainability transformation partnership code (here a pseudocode just represented by a number) + stp = bn_node( + ~ factor(as.integer(runif(n = ..n, 1, 36)), levels = 1:36), + ), + + #region the patient lives in + region = bn_node( + ~ rfactor(n = ..n, levels = c( + "North East", + "North West", + "Yorkshire and The Humber", + "East Midlands", + "West Midlands", + "East", + "London", + "South East", + "South West" + ), p = c(0.2, 0.2, 0.3, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05)), + ), + + #practice ID + practice_pseudo_id = bn_node( + ~ as.integer(rnormTrunc(n = ..n, mean = 500, sd = 500, min = 0)) + ), + + #day of death for patient (want most to be alive) + death_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 2000)), + missing_rate = ~ 0.999 + ), + + #rurality classification + rural_urban_classification = bn_node( + ~ as.integer(runif(n = ..n, min = 1, max = 8)) + ), + + #gestational age + gestational_age = bn_node( + ~ rnorm(n = ..n, mean = 38, sd = 2) + ), + + ##exposures + + #index of multiple deprivation + imd_rounded = bn_node( + ~ as.integer(round(runif(n = ..n, min = 0, max = 32844), digits = -2)) + ), + + #ethnicity (group 6) + latest_ethnicity_code = bn_node( + ~ rfactor(n = ..n, levels = c( + "1", + "2", + "3", + "4", + "5", + "6" + ), p = c(0.81, 0.03, 0.1, 0.04, 0.02, 0)) + ), + + #household ID (to determine composition) + household_pseudo_id = bn_node( + ~ as.integer(rnormTrunc(n = ..n, mean = 500, sd = 500, min = 0)) + ), + + # number of people in household + household_size = bn_node( + ~ calculate_household_sizes(household_pseudo_id) + ), + + ##outcomes + + #rsv primary care + rsv_primary = bn_node( + ~ rbernoulli(n = ..n, p = 0.01) + ), + + #date + rsv_primary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #rsv secondary care + rsv_secondary = bn_node( + ~ rbernoulli(n = ..n, p = 0.05) + ), + + #date + rsv_secondary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #covid primary care + covid_primary = bn_node( + ~ rbernoulli(n = ..n, p = 0.05) + ), + + #date + covid_primary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #covid secondary care + covid_secondary = bn_node( + ~ rbernoulli(n = ..n, p = 0.1) + ), + + #date + covid_secondary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #flu primary care + flu_primary = bn_node( + ~ rbernoulli(n = ..n, p = 0.01) + ), + + #date + flu_primary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #flu secondary care + flu_secondary = bn_node( + ~ rbernoulli(n = ..n, p = 0.1) + ), + + #date + flu_secondary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + ##exclusion criteria + + #severe combined immunodeficiency syndrome + severe_immmunodeficiency = bn_node( + ~ rbernoulli(n = ..n, p = 0.02) + ), + + #ventilator dependence + ventilator_dependent = bn_node( + ~ rbernoulli(n = ..n, p = 0.01) + ), + + #risk group + risk_group_infants = bn_node( + ~ rbernoulli(n = ..n, p = 0.01) + ) + +) + +bn <- bn_create(sim_list, known_variables = known_variables) + +bn_plot(bn) +bn_plot(bn, connected_only = TRUE) + +set.seed(10) + +dummydata <- bn_simulate(bn, pop_size = population_size, keep_all = FALSE, .id = "patient_id") + +dummydata$patient_start_day <- study_start_day +dummydata$patient_end_day <- study_end_day + +dummydata_processed <- dummydata %>% + mutate(across(ends_with("_day"), ~ as.Date(as.character(index_date + .)))) %>% + rename_with(~str_replace(., "_day", "_date"), ends_with("_day")) + +fs::dir_create(here("analysis", "dummydata")) +write_feather(dummydata_processed, sink = here("analysis", "dummydata", + paste0("dummyextract_infants_", year(study_start_date), "_", year(study_end_date), ".arrow"))) diff --git a/analysis/dummydata/dummydata_infants_subgroup.R b/analysis/dummydata/dummydata_infants_subgroup.R new file mode 100644 index 0000000..61cf2c7 --- /dev/null +++ b/analysis/dummydata/dummydata_infants_subgroup.R @@ -0,0 +1,275 @@ +##create a dummy dataset + +library("tidyverse") +library("arrow") +library("here") +library("glue") +library("EnvStats") + +remotes::install_github("https://github.com/wjchulme/dd4d") +library("dd4d") + +## create output directories ---- +fs::dir_create(here("analysis", "dummydata")) + +#define population size for dummy data +population_size <- 100000 + +#define index date and study start date +source(here("analysis", "design", "design.R")) +study_start_date <- as.Date(study_dates$season1_start_date) +study_end_date <- as.Date(study_dates$season1_end_date) +index_date <- study_start_date + +#define index day and study start day +index_day <- 0L +study_start_day <- as.integer(study_start_date - index_date) +study_end_day <- as.integer(study_end_date - index_date) + +#define known variables +known_variables <- c( + "index_date", + "index_day" +) + +# Define a helper function to calculate household size based on household_pseudo_id +calculate_household_sizes <- function(pseudo_ids) { + as.integer(ave(pseudo_ids, pseudo_ids, FUN = function(x) rnormTrunc(1, mean = 2, sd = 3, min = 0))) +} + +#define a list which will contain all of the variables to be simulated +sim_list = lst( + + #whether the patient is registered with the practice + registered = bn_node( + ~ rbernoulli(n = ..n, p = 0.99), + ), + + #sex of the patient + sex = bn_node( + ~ rfactor(n = ..n, levels = c("female", "male", "intersex", "unknown"), + p = c(0.51, 0.49, 0, 0)), missing_rate = ~0.001 + ), + + #age of the patient + age = bn_node( + ~ as.integer(rnormTrunc(n = ..n, mean = 12, sd = 4, min = 0, max = 23)), + ), + + #sustainability transformation partnership code (here a pseudocode just represented by a number) + stp = bn_node( + ~ factor(as.integer(runif(n = ..n, 1, 36)), levels = 1:36), + ), + + #region the patient lives in + region = bn_node( + ~ rfactor(n = ..n, levels = c( + "North East", + "North West", + "Yorkshire and The Humber", + "East Midlands", + "West Midlands", + "East", + "London", + "South East", + "South West" + ), p = c(0.2, 0.2, 0.3, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05)), + ), + + #practice ID + practice_pseudo_id = bn_node( + ~ as.integer(rnormTrunc(n = ..n, mean = 500, sd = 500, min = 0)) + ), + + #day of death for patient (want most to be alive) + death_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 2000)), + missing_rate = ~ 0.999 + ), + + #rurality classification + rural_urban_classification = bn_node( + ~ as.integer(runif(n = ..n, min = 1, max = 8)) + ), + + #gestational age + gestational_age = bn_node( + ~ rnorm(n = ..n, mean = 38, sd = 2) + ), + + ##exposures + + #index of multiple deprivation + imd_rounded = bn_node( + ~ as.integer(round(runif(n = ..n, min = 0, max = 32844), digits = -2)) + ), + + #ethnicity (group 6) + latest_ethnicity_code = bn_node( + ~ rfactor(n = ..n, levels = c( + "1", + "2", + "3", + "4", + "5", + "6" + ), p = c(0.81, 0.03, 0.1, 0.04, 0.02, 0)) + ), + + #household ID (to determine composition) + household_pseudo_id = bn_node( + ~ as.integer(rnormTrunc(n = ..n, mean = 500, sd = 500, min = 0)) + ), + + # number of people in household + household_size = bn_node( + ~ calculate_household_sizes(household_pseudo_id) + ), + + #family ID for baby + baby_id = bn_node( + ~ as.integer(rnormTrunc(n = ..n, mean = 500, sd = 500, min = 0)) + ), + + ##maternal characteristics + + #matching family ID for mother + mother_id = bn_node( + ~ baby_id, + ), + + #age + maternal_age = bn_node( + ~ rnorm(n = ..n, mean = 30, sd = 5) + ), + + #smoking status + maternal_smoking_code = bn_node( + ~ rfactor(n = ..n, levels = c( + "S", #smoker + "E", #ever-smoked + "N", #never smoked + "M" #missing + ), p = c(0.1, 0.2, 0.7, 0)) + ), + + #drinking + maternal_drinking = bn_node( + ~ rbernoulli(n = ..n, p = 0.05), + ), + + #drug usage + maternal_drug_usage = bn_node( + ~ rbernoulli(n = ..n, p = 0.01), + ), + + #flu vaccination + maternal_flu_vaccination = bn_node( + ~ rbernoulli(n = ..n, p = 0.4) #vary over ethnicity + ), + + #pertussis vaccination + maternal_pertussis_vaccination = bn_node( + ~ rbernoulli(n = ..n, p = 0.5) #vary over ethnicity + ), + + ##outcomes + + #rsv primary care + rsv_primary = bn_node( + ~ rbernoulli(n = ..n, p = 0.01) + ), + + #date + rsv_primary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #rsv secondary care + rsv_secondary = bn_node( + ~ rbernoulli(n = ..n, p = 0.05) + ), + + #date + rsv_secondary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #covid primary care + covid_primary = bn_node( + ~ rbernoulli(n = ..n, p = 0.05) + ), + + #date + covid_primary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #covid secondary care + covid_secondary = bn_node( + ~ rbernoulli(n = ..n, p = 0.1) + ), + + #date + covid_secondary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #flu primary care + flu_primary = bn_node( + ~ rbernoulli(n = ..n, p = 0.01) + ), + + #date + flu_primary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #flu secondary care + flu_secondary = bn_node( + ~ rbernoulli(n = ..n, p = 0.1) + ), + + #date + flu_secondary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + ##exclusion criteria + + #severe combined immunodeficiency syndrome + severe_immmunodeficiency = bn_node( + ~ rbernoulli(n = ..n, p = 0.02) + ), + + #ventilator dependence + ventilator_dependent = bn_node( + ~ rbernoulli(n = ..n, p = 0.01) + ), + + #risk group + risk_group_infants = bn_node( + ~ rbernoulli(n = ..n, p = 0.01) + ) + +) + +bn <- bn_create(sim_list, known_variables = known_variables) + +bn_plot(bn) +bn_plot(bn, connected_only = TRUE) + +set.seed(10) + +dummydata <- bn_simulate(bn, pop_size = population_size, keep_all = FALSE, .id = "patient_id") + +dummydata$patient_start_day <- study_start_day +dummydata$patient_end_day <- study_end_day + +dummydata_processed <- dummydata %>% + mutate(across(ends_with("_day"), ~ as.Date(as.character(index_date + .)))) %>% + rename_with(~str_replace(., "_day", "_date"), ends_with("_day")) + +fs::dir_create(here("analysis", "dummydata")) +write_feather(dummydata_processed, sink = here("analysis", "dummydata", + paste0("dummyextract_infants_subgroup_", year(study_start_date), "_", year(study_end_date), ".arrow"))) diff --git a/analysis/dummydata/dummydata_older_adults.R b/analysis/dummydata/dummydata_older_adults.R new file mode 100644 index 0000000..18b7e69 --- /dev/null +++ b/analysis/dummydata/dummydata_older_adults.R @@ -0,0 +1,294 @@ +##create a dummy dataset + +library("tidyverse") +library("arrow") +library("here") +library("glue") +library("EnvStats") + +remotes::install_github("https://github.com/wjchulme/dd4d") +library("dd4d") + +## create output directories ---- +fs::dir_create(here("analysis", "dummydata")) + +#define population size for dummy data +population_size <- 100000 + +#define index date and study start date +source(here("analysis", "design", "design.R")) +study_start_date <- as.Date(study_dates$season1_start_date) +study_end_date <- as.Date(study_dates$season1_end_date) +index_date <- study_start_date + +#define index day and study start day +index_day <- 0L +study_start_day <- as.integer(study_start_date - index_date) +study_end_day <- as.integer(study_end_date - index_date) + +#define known variables +known_variables <- c( + "index_date", + "index_day" +) + +# Define a helper function to calculate household size based on household_pseudo_id +calculate_household_sizes <- function(pseudo_ids) { + as.integer(ave(pseudo_ids, pseudo_ids, FUN = function(x) rnormTrunc(1, mean = 2, sd = 3, min = 0))) +} + +#define a list which will contain all of the variables to be simulated +sim_list = lst( + + #whether the patient is registered with the practice + registered = bn_node( + ~ rbernoulli(n = ..n, p = 0.99), + ), + + #sex of the patient + sex = bn_node( + ~ rfactor(n = ..n, levels = c("female", "male", "intersex", "unknown"), + p = c(0.51, 0.49, 0, 0)), missing_rate = ~ 0.001 + ), + + #age of the patient + age = bn_node( + ~ as.integer(rnormTrunc(n = ..n, mean = 60, sd = 14, min = 65)), + missing_rate = ~ 0.001 + ), + + #sustainability transformation partnership code (here a pseudocode just represented by a number) + stp = bn_node( + ~ factor(as.integer(runif(n = ..n, 1, 36)), levels = 1:36), + ), + + #whether the participant has diabetes or not + diabetes = bn_node( + ~ rbernoulli(n = ..n, p = plogis(-1 + age*0.02 + I(sex == "female")*-0.2)) + ), + + #region the patient lives in + region = bn_node( + ~ rfactor(n = ..n, levels = c( + "North East", + "North West", + "Yorkshire and The Humber", + "East Midlands", + "West Midlands", + "East", + "London", + "South East", + "South West" + ), p = c(0.2, 0.2, 0.3, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05)), + ), + + #practice ID + practice_pseudo_id = bn_node( + ~ as.integer(rnormTrunc(n = ..n, mean = 500, sd = 500, min = 1)) + ), + + #day of death for patient (want most to be alive) + death_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 2000)), + missing_rate = ~ 0.99 + ), + + #rurality classification + rural_urban_classification = bn_node( + ~ as.integer(runif(n = ..n, min = 1, max = 8)) + ), + + ##exposures + + #index of multiple deprivation + imd_rounded = bn_node( + ~ as.integer(round(runif(n = ..n, min = 0, max = 32844), digits = -2)), + missing_rate = ~ 0.05 + ), + + #ethnicity (group 6) + latest_ethnicity_code = bn_node( + ~ rfactor(n = ..n, levels = c( + "1", + "2", + "3", + "4", + "5", + "6" + ), p = c(0.81, 0.03, 0.1, 0.04, 0.02, 0)) + ), + + #household ID (to determine composition) + household_pseudo_id = bn_node( + ~ as.integer(rnormTrunc(n = ..n, mean = 500, sd = 500, min = 0)) + ), + + # number of people in household + household_size = bn_node( + ~ calculate_household_sizes(household_pseudo_id) + ), + + ##comorbidities + + #smoking status + most_recent_smoking_code = bn_node( + ~ rfactor(n = ..n, levels = c( + "S", #smoker + "E", #ever-smoked + "N", #never smoked + "M" #missing + ), p = c(0.1, 0.2, 0.7, 0)) + ), + + #drinking + hazardous_drinking = bn_node( + ~ rbernoulli(n = ..n, p = 0.1), + ), + + #drug usage + drug_usage = bn_node( + ~ rbernoulli(n = ..n, p = 0.05), + ), + + #has asthma + has_asthma = bn_node( + ~ rbernoulli(n = ..n, p = 0.2) + ), + + #copd + has_copd = bn_node( + ~ rbernoulli(n = ..n, p = plogis(-1 + I(most_recent_smoking_code == "S")*-0.5 + + I(most_recent_smoking_code == "E")*-0.1)) + ), + + #pulmonary fibrosis + has_pulmonary_fibrosis = bn_node( + ~ rbernoulli(n = ..n, p = 0.001) + ), + + #hypertension + has_hypertension = bn_node( + ~ rbernoulli(n = ..n, p = 0.2) + ), + + #diabetes + has_diabetes = bn_node( + ~ rbernoulli(n = ..n, p = plogis(-1 + age*0.02 + I(sex == "female")*-0.2)) + ), + + #heart failure + has_heart_failure = bn_node( + ~ rbernoulli(n = ..n, p = 0.015) + ), + + #myocardial infarction + has_prior_mi = bn_node( + ~ rbernoulli(n = ..n, p = 0.1) + ), + + #flu vaccination + flu_vaccination = bn_node( + ~ rbernoulli(n = ..n, p = 0.75) + ), + + #covid vaccination + covid_vaccination_count = bn_node( + ~ as.integer(rfactor(n = ..n, levels = c( + 0, 1, 2, 3, 4, 5, 6), + p = c(0.25, 0.4, 0.2, 0.1, 0.03, 0.01, 0.01))) + ), + + ##outcomes + + #rsv primary care + rsv_primary = bn_node( + ~ rbernoulli(n = ..n, p = 0.01) + ), + + #date + rsv_primary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #rsv secondary care + rsv_secondary = bn_node( + ~ rbernoulli(n = ..n, p = 0.05) + ), + + #date + rsv_secondary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #covid primary care + covid_primary = bn_node( + ~ rbernoulli(n = ..n, p = 0.05) + ), + + #date + covid_primary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #covid secondary care + covid_secondary = bn_node( + ~ rbernoulli(n = ..n, p = 0.1) + ), + + #date + covid_secondary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #flu primary care + flu_primary = bn_node( + ~ rbernoulli(n = ..n, p = 0.01) + ), + + #date + flu_primary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + #flu secondary care + flu_secondary = bn_node( + ~ rbernoulli(n = ..n, p = 0.1) + ), + + #date + flu_secondary_day = bn_node( + ~ as.integer(runif(n = ..n, index_day, index_day + 365)) + ), + + ##exclusion criteria + + #care home resident + care_home_tpp = bn_node( + ~ rbernoulli(n = ..n, p = 0.01) + ), + + care_home_code = bn_node( + ~ rbernoulli(n = ..n, p = 0.1) + ) + +) + +bn <- bn_create(sim_list, known_variables = known_variables) + +bn_plot(bn) +bn_plot(bn, connected_only = TRUE) + +set.seed(10) + +dummydata <- bn_simulate(bn, pop_size = population_size, keep_all = FALSE, .id = "patient_id") + +dummydata$patient_start_day <- study_start_day +dummydata$patient_end_day <- study_end_day + +dummydata_processed <- dummydata %>% + mutate(across(ends_with("_day"), ~ as.Date(as.character(index_date + .)))) %>% + rename_with(~str_replace(., "_day", "_date"), ends_with("_day")) + +fs::dir_create(here("analysis", "dummydata")) +write_feather(dummydata_processed, sink = here("analysis", "dummydata", + paste0("dummyextract_older_adults_", year(study_start_date), "_", year(study_end_date), ".arrow"))) diff --git a/analysis/dummydata/dummyextract_adults_2016_2017.arrow b/analysis/dummydata/dummyextract_adults_2016_2017.arrow new file mode 100644 index 0000000..7a89ba8 Binary files /dev/null and b/analysis/dummydata/dummyextract_adults_2016_2017.arrow differ diff --git a/analysis/dummydata/dummyextract_children_adolescents_2016_2017.arrow b/analysis/dummydata/dummyextract_children_adolescents_2016_2017.arrow new file mode 100644 index 0000000..2a262ef Binary files /dev/null and b/analysis/dummydata/dummyextract_children_adolescents_2016_2017.arrow differ diff --git a/analysis/dummydata/dummyextract_infants_2016_2017.arrow b/analysis/dummydata/dummyextract_infants_2016_2017.arrow new file mode 100644 index 0000000..9199c27 Binary files /dev/null and b/analysis/dummydata/dummyextract_infants_2016_2017.arrow differ diff --git a/analysis/dummydata/dummyextract_infants_subgroup_2016_2017.arrow b/analysis/dummydata/dummyextract_infants_subgroup_2016_2017.arrow new file mode 100644 index 0000000..6f01560 Binary files /dev/null and b/analysis/dummydata/dummyextract_infants_subgroup_2016_2017.arrow differ diff --git a/analysis/dummydata/dummyextract_older_adults_2016_2017.arrow b/analysis/dummydata/dummyextract_older_adults_2016_2017.arrow new file mode 100644 index 0000000..4a0a2e1 Binary files /dev/null and b/analysis/dummydata/dummyextract_older_adults_2016_2017.arrow differ diff --git a/analysis/processing/data_processing_adults.R b/analysis/processing/data_processing_adults.R new file mode 100644 index 0000000..6c42344 --- /dev/null +++ b/analysis/processing/data_processing_adults.R @@ -0,0 +1,54 @@ +library("tidyverse") +library("here") +library("arrow") +library("ggplot2") +library("data.table") + +## create output directories ---- +fs::dir_create(here("analysis", "processing")) + +#define study start date and study end date +source(here("analysis", "design", "design.R")) +study_start_date <- as.Date(study_dates$season1_start_date) +study_end_date <- as.Date(study_dates$season1_end_date) + +df_input <- read_feather( + here::here("output", paste0("input_adults", year(study_start_date), "_", year(study_end_date), ".arrow"))) + +#assign ethnicity group +df_input <- df_input %>% + mutate( + latest_ethnicity_group = ifelse(df_input$latest_ethnicity_code == "1", "White", + ifelse(df_input$latest_ethnicity_code == "2", "Mixed", + ifelse(df_input$latest_ethnicity_code == "3", "Asian or Asian British", + ifelse(df_input$latest_ethnicity_code == "4", "Black or Black British", + ifelse(df_input$latest_ethnicity_code == "5", "Other Ethnic Groups", "Unknown")))) + )) + +#calculate age bands +df_input <- df_input %>% + mutate(age_band = case_when( + df_input$age >= 60 & df_input$age <= 64 ~ "60-64", + df_input$age >= 65 & df_input$age <= 69 ~ "65-69", + df_input$age >= 70 & df_input$age <= 74 ~ "70-74", + df_input$age >= 75 & df_input$age <= 79 ~ "75-79", + df_input$age >= 80 & df_input$age <= 84 ~ "80-84", + df_input$age >= 85 & df_input$age <= 89 ~ "85-89", + df_input$age >= 90 ~ "90+", + TRUE ~ NA_character_ + )) + +#calculate IMD quintile +df_input <- df_input %>% + mutate(imd_quintile = case_when( + df_input$imd_rounded >= 0 & df_input$imd_rounded < as.integer(32800 * 1 / 5) ~ "1", + df_input$imd_rounded < as.integer(32800 * 2 / 5) ~ "2", + df_input$imd_rounded < as.integer(32800 * 3 / 5) ~ "3", + df_input$imd_rounded < as.integer(32800 * 4 / 5) ~ "4", + df_input$imd_rounded < as.integer(32800 * 5 / 5) ~ "5 (least deprived)", + TRUE ~ NA_character_ + )) + +#write the new input file +write_feather(df_input, here::here("output", + paste0("input_processed_adults", year(study_start_date), "_", year(study_end_date), ".arrow"))) diff --git a/codelists/bristol-copd-medications-bnf-4b00637c-dmd.csv b/codelists/bristol-copd-medications-bnf-4b00637c-dmd.csv new file mode 100644 index 0000000..c4d95b4 --- /dev/null +++ b/codelists/bristol-copd-medications-bnf-4b00637c-dmd.csv @@ -0,0 +1 @@ +dmd_type,dmd_id,dmd_name,bnf_code diff --git a/codelists/bristol-copd-medications-bnf.csv b/codelists/bristol-copd-medications-bnf.csv new file mode 100644 index 0000000..13c30cf --- /dev/null +++ b/codelists/bristol-copd-medications-bnf.csv @@ -0,0 +1,32 @@ +code,term +0301011AB,Beclometdiprop/formoterol/glycopyrronium +0301011E0,Formoterol fumarate +0301011F0,Fenoterol hydrobromide +0301011R0,Salbutamol +0301011U0,Salmeterol +0301011X0,Indacaterol maleate +0301011Z0,Olodaterol +0301020I0,Ipratropium bromide +0301020Q0,Tiotropium bromide +0301020R0,Aclidinium bromide +0301020S0,Glycopyrronium bromide +0301020T0,Umeclidinium bromide +0301030B0,Aminophylline +0301030C0,Aminophylline hydrate +0301030S0,Theophylline +0301040AA,Glycopyrronium/formoterol +0301040M0,Fenoterol hydrobromide +0301040R0,Salbutamol +0301040V0,Aclidinium bromide/formoterol +0301040W0,Umeclidinium bromide/vilanterol +0301040X0,Tiotropium bromide/olodaterol +0301040Y0,Indacaterol/glycopyrronium +0302000C0,Beclometasone dipropionate +0302000K0,Budesonide +0302000N0,Fluticasone propionate (Inhalation) +0302000R0,Mometasone furoate +0302000U0,Ciclesonide +0302000V0,Fluticasone furoate (Inhalation) +0302000W0,Mometasone/glycopyrronium/indacaterol +0302000X0,Indacaterol/mometasone +0302000Y0,Formoterol/glycopyrronium/budesonide diff --git a/codelists/bristol-ild-snomed.csv b/codelists/bristol-ild-snomed.csv new file mode 100644 index 0000000..4b23dc6 --- /dev/null +++ b/codelists/bristol-ild-snomed.csv @@ -0,0 +1,112 @@ +code,term +1017196003,Interstitial pulmonary fibrosis due to inhalation of substance +1017197007,Interstitial pulmonary fibrosis due to inhalation of drug +10713006,Diffuse interstitial rheumatoid disease of lung +129451001,Respiratory bronchiolitis associated interstitial lung disease +129452008,Nonspecific interstitial pneumonia +129458007,Bronchiolitis obliterans organizing pneumonia +14700006,Bauxite fibrosis of lung +155621007,Rheumatoid lung +17385007,Graphite fibrosis of lung +17996008,Pneumoconiosis caused by inorganic dust +192658007,Giant cell interstitial pneumonitis +196027008,Toxic bronchiolitis obliterans +196051003,Drug-induced interstitial lung disorder +196053000,Chronic drug-induced interstitial lung disorders +196125002,Diffuse interstitial pulmonary fibrosis +196132006,Rheumatoid lung +196133001,Lung disease with systemic sclerosis +196136009,Lung disease co-occurrent with polymyositis +201794001,Rheumatoid lung +201813004,(Rheumatoid lung) or (Caplan's syndrome) or (fibrosing alveolitis associated with rheumatoid arthritis) +22607003,Asbestosis +233673002,Drug-induced bronchiolitis obliterans +233692000,Cryptogenic pulmonary eosinophilia +233703007,Interstitial lung disease +233713004,Seasonal cryptogenic organizing pneumonia with biochemical cholestasis +233723008,Bronchiolitis obliterans with usual interstitial pneumonitis +233724002,Toxic diffuse interstitial pulmonary fibrosis +233725001,Drug-induced diffuse interstitial pulmonary fibrosis +233748006,Simple pneumoconiosis +233749003,Complicated pneumoconiosis +233750003,Erionite pneumoconiosis +233751004,Metal pneumoconiosis +233754007,Cerium pneumoconiosis +233755008,Nickel pneumoconiosis +233756009,Thorium pneumoconiosis +233757000,Zirconium pneumoconiosis +233758005,Mica pneumoconiosis +233759002,Mixed mineral dust pneumoconiosis +233760007,Acute silicosis +233761006,Subacute silicosis +233762004,Chronic silicosis +233764003,Wollastonite pneumoconiosis +233770009,Stage 4 pulmonary sarcoidosis +236302005,Acute interstitial pneumonia +239297008,Lymphomatoid granulomatosis of lung +239794002,Fibrosing alveolitis associated with rheumatoid arthritis +24369008,Pulmonary sarcoidosis +26511004,Pneumoconiosis caused by sisal fiber +277844007,Pulmonary lymphangioleiomyomatosis +29422001,Coal workers' pneumoconiosis +30042003,Confluent fibrosis of lung +319841000119107,Rheumatoid lung disease with rheumatoid arthritis +32139003,Mixed dust pneumoconiosis +32544004,Chronic obliterative bronchiolitis caused by inhalation of chemical fumes AND/OR vapors +34371004,Subacute obliterative bronchiolitis caused by inhalation of chemical fumes AND/OR vapors +35037009,Primary atypical interstitial pneumonia +3514002,Peribronchial fibrosis of lung +36599006,Chronic fibrosis of lung +37711000,Cadmium pneumonitis +385479009,Follicular bronchiolitis +398640008,Rheumatoid arthritis with pneumoconiosis +398726004,Rheumatoid lung disease +40100001,Obliterative bronchiolitis +40122008,Pneumoconiosis +40218008,Carbon electrode makers' pneumoconiosis +40527005,Idiopathic pulmonary hemosiderosis +405570007,Pulmonary fibrosis due to and following radiotherapy +40640008,Massive fibrosis of lung co-occurrent and due to silicosis +4120002,Bronchiolitis +426437004,Familial idiopathic pulmonary fibrosis +426853005,Pneumoconiosis caused by silicate +427046006,Drug-induced pneumonitis +427123006,Interstitial lung disease due to collagen vascular disease +430476004,Diffuse panbronchiolitis +44274007,Lymphoid interstitial pneumonia +47515009,Simple silicosis +47938003,Chronic obliterative bronchiolitis +51615001,Fibrosis of lung +54867000,Rheumatoid arthritis with fibrosing alveolitis +56841008,Massive fibrosis of lung +58691003,Antimony pneumoconiosis +59903001,Acute obliterating bronchiolitis +62371005,Pulmonary siderosis +64667001,Interstitial pneumonia +700249006,Idiopathic interstitial pneumonia +700250006,Idiopathic pulmonary fibrosis +700251005,Chronic idiopathic pulmonary fibrosis +700252003,Subacute idiopathic pulmonary fibrosis +704345008,Chronic interstitial pneumonia +707434003,Pulmonary fibrosis due to Hermansky-Pudlak syndrome +708537005,Acute idiopathic pulmonary fibrosis +711379004,Interstitial lung disease due to connective tissue disease +71193007,Fibrosis of lung caused by radiation +719218000,Cryptogenic organizing pneumonia +72270005,Collagenous pneumoconiosis +73144008,Pneumoconiosis caused by talc +733453005,"Congenital nephrotic syndrome, interstitial lung disease, epidermolysis bullosa syndrome" +737181009,Interstitial lung disease due to systemic disease +737182002,Interstitial lung disease due to granulomatous disease +737183007,Interstitial lung disease due to metabolic disease +737184001,Interstitial lung disease co-occurrent and due to systemic vasculitis +789574002,Acute exacerbation of idiopathic pulmonary fibrosis +805002,Pneumoconiosis caused by silica +836478002,Subacute obliterative bronchiolitis caused by chemical fumes +836479005,Subacute obliterative bronchiolitis caused by vapor +840350008,Chronic obliterative bronchiolitis caused by chemical fumes +840351007,Chronic obliterative bronchiolitis caused by vapor +8549006,Desquamative interstitial pneumonia +866103007,Interstitial lung disease due to juvenile polymyositis +870573008,Interstitial pneumonia with autoimmune features +87909002,Hard metal pneumoconiosis diff --git a/codelists/codelists.json b/codelists/codelists.json index 5cc232f..3e49a03 100644 --- a/codelists/codelists.json +++ b/codelists/codelists.json @@ -1,3 +1,160 @@ { - "files": {} + "files": { + "opensafely-ethnicity-snomed-0removed.csv": { + "id": "opensafely/ethnicity-snomed-0removed/2e641f61", + "url": "https://www.opencodelists.org/codelist/opensafely/ethnicity-snomed-0removed/2e641f61/", + "downloaded_at": "2024-02-01 17:02:55.752611Z", + "sha": "8b849b5b785d80306e488d0109640c8c1d2da01b" + }, + "opensafely-smoking-clear.csv": { + "id": "opensafely/smoking-clear/2020-04-29", + "url": "https://www.opencodelists.org/codelist/opensafely/smoking-clear/2020-04-29/", + "downloaded_at": "2024-02-01 17:02:55.896386Z", + "sha": "0b5f3afe1db96dcce5141220e893a42ba2e5a8f7" + }, + "opensafely-smoking-unclear.csv": { + "id": "opensafely/smoking-unclear/2020-04-29", + "url": "https://www.opencodelists.org/codelist/opensafely/smoking-unclear/2020-04-29/", + "downloaded_at": "2024-02-01 17:02:56.042564Z", + "sha": "d9dad3e9d9491f765863b2617114c521957b6db1" + }, + "nhsd-primary-care-domain-refsets-ast_cod.csv": { + "id": "nhsd-primary-care-domain-refsets/ast_cod/20210127", + "url": "https://www.opencodelists.org/codelist/nhsd-primary-care-domain-refsets/ast_cod/20210127/", + "downloaded_at": "2024-02-01 17:02:56.161008Z", + "sha": "662adcbaa8823de22b7f56175420e454da595177" + }, + "opensafely-asthma-inhaler-steroid-medication.csv": { + "id": "opensafely/asthma-inhaler-steroid-medication/2020-04-15", + "url": "https://www.opencodelists.org/codelist/opensafely/asthma-inhaler-steroid-medication/2020-04-15/", + "downloaded_at": "2024-02-01 17:02:56.301000Z", + "sha": "4228da7a16336f633432039249e0665cecb0bec3" + }, + "nhsd-primary-care-domain-refsets-astres_cod.csv": { + "id": "nhsd-primary-care-domain-refsets/astres_cod/20200812", + "url": "https://www.opencodelists.org/codelist/nhsd-primary-care-domain-refsets/astres_cod/20200812/", + "downloaded_at": "2024-02-09 10:54:23.261861Z", + "sha": "98e2d004cc77c059f3383e22b6d909c561439040" + }, + "user-angel-wong-hazardous-drinking.csv": { + "id": "user/angel-wong/hazardous-drinking/3c786eff", + "url": "https://www.opencodelists.org/codelist/user/angel-wong/hazardous-drinking/3c786eff/", + "downloaded_at": "2024-02-01 17:02:56.483540Z", + "sha": "7b7714a8b188c75e744b3bf9f6efb074ea292dc9" + }, + "nhsd-primary-care-domain-refsets-illsub_cod.csv": { + "id": "nhsd-primary-care-domain-refsets/illsub_cod/20210127", + "url": "https://www.opencodelists.org/codelist/nhsd-primary-care-domain-refsets/illsub_cod/20210127/", + "downloaded_at": "2024-02-01 17:02:56.681016Z", + "sha": "31aeef3b18f2715d628d252ec94f8ba88f72c433" + }, + "nhsd-primary-care-domain-refsets-illsubint_cod.csv": { + "id": "nhsd-primary-care-domain-refsets/illsubint_cod/20210127", + "url": "https://www.opencodelists.org/codelist/nhsd-primary-care-domain-refsets/illsubint_cod/20210127/", + "downloaded_at": "2024-02-01 17:02:56.793112Z", + "sha": "6b68ac82989ca3db741e03e9ea2947ae7581915e" + }, + "nhsd-primary-care-domain-refsets-illsubassdec_cod.csv": { + "id": "nhsd-primary-care-domain-refsets/illsubassdec_cod/20200812", + "url": "https://www.opencodelists.org/codelist/nhsd-primary-care-domain-refsets/illsubassdec_cod/20200812/", + "downloaded_at": "2024-02-01 17:02:56.919897Z", + "sha": "027e4593f9bfedcebd5c1f6119cc483648c4812c" + }, + "nhsd-primary-care-domain-refsets-copd_cod.csv": { + "id": "nhsd-primary-care-domain-refsets/copd_cod/20210127", + "url": "https://www.opencodelists.org/codelist/nhsd-primary-care-domain-refsets/copd_cod/20210127/", + "downloaded_at": "2024-02-01 17:02:57.032403Z", + "sha": "5d08ae3a50efe6a5fa54806e9ffce16d14ba9955" + }, + "bristol-copd-medications-bnf.csv": { + "id": "bristol/copd-medications-bnf/4b00637c", + "url": "https://www.opencodelists.org/codelist/bristol/copd-medications-bnf/4b00637c/", + "downloaded_at": "2024-02-09 10:54:23.988963Z", + "sha": "821a27601a67cb992663a4a84c4d493d53c4e924" + }, + "nhsd-primary-care-domain-refsets-copdres_cod.csv": { + "id": "nhsd-primary-care-domain-refsets/copdres_cod/20200812", + "url": "https://www.opencodelists.org/codelist/nhsd-primary-care-domain-refsets/copdres_cod/20200812/", + "downloaded_at": "2024-02-09 10:54:24.120962Z", + "sha": "58b2a092a7379250596e0a46897d1ae8e95277ca" + }, + "nhsd-primary-care-domain-refsets-hyp_cod.csv": { + "id": "nhsd-primary-care-domain-refsets/hyp_cod/20200812", + "url": "https://www.opencodelists.org/codelist/nhsd-primary-care-domain-refsets/hyp_cod/20200812/", + "downloaded_at": "2024-02-01 17:02:57.186824Z", + "sha": "00fdd3723042b0752e5f5131faf3a60756e07e16" + }, + "nhsd-primary-care-domain-refsets-dmtype1_cod.csv": { + "id": "nhsd-primary-care-domain-refsets/dmtype1_cod/20210127", + "url": "https://www.opencodelists.org/codelist/nhsd-primary-care-domain-refsets/dmtype1_cod/20210127/", + "downloaded_at": "2024-02-01 17:02:57.362110Z", + "sha": "23e6cb9c5555fb756c9a68295bd701b6ddb34ebd" + }, + "nhsd-primary-care-domain-refsets-dmnontype1_cod.csv": { + "id": "nhsd-primary-care-domain-refsets/dmnontype1_cod/20210127", + "url": "https://www.opencodelists.org/codelist/nhsd-primary-care-domain-refsets/dmnontype1_cod/20210127/", + "downloaded_at": "2024-02-01 17:02:57.559327Z", + "sha": "6abf111f4d4768cca47b1385fa8d233c2bafd380" + }, + "nhsd-primary-care-domain-refsets-hf_cod.csv": { + "id": "nhsd-primary-care-domain-refsets/hf_cod/20210127", + "url": "https://www.opencodelists.org/codelist/nhsd-primary-care-domain-refsets/hf_cod/20210127/", + "downloaded_at": "2024-02-01 17:02:57.784916Z", + "sha": "c1fdc20e835c8e00b50e4728592b79bb3e3ee887" + }, + "nhsd-primary-care-domain-refsets-mi_cod.csv": { + "id": "nhsd-primary-care-domain-refsets/mi_cod/20210127", + "url": "https://www.opencodelists.org/codelist/nhsd-primary-care-domain-refsets/mi_cod/20210127/", + "downloaded_at": "2024-02-01 17:02:57.893176Z", + "sha": "0fb41c6104328cbb930e4407078b693c59d9da9c" + }, + "bristol-ild-snomed.csv": { + "id": "bristol/ild-snomed/2f3e3051", + "url": "https://www.opencodelists.org/codelist/bristol/ild-snomed/2f3e3051/", + "downloaded_at": "2024-02-01 17:02:58.026955Z", + "sha": "9e2de5190c0081e01bffef1a56aa4431885da94e" + }, + "opensafely-covid-identification-in-primary-care-probable-covid-positive-test.csv": { + "id": "opensafely/covid-identification-in-primary-care-probable-covid-positive-test/508192f8", + "url": "https://www.opencodelists.org/codelist/opensafely/covid-identification-in-primary-care-probable-covid-positive-test/508192f8/", + "downloaded_at": "2024-02-01 17:02:58.147668Z", + "sha": "510e103970c4131e6e276fd3b5094b68d2e7905c" + }, + "opensafely-documented-influenza-illness.csv": { + "id": "opensafely/documented-influenza-illness/2020-05-18", + "url": "https://www.opencodelists.org/codelist/opensafely/documented-influenza-illness/2020-05-18/", + "downloaded_at": "2024-02-01 17:02:58.260839Z", + "sha": "c0acfad55b4d97fdf941cf0ce90d927401e571ff" + }, + "opensafely-covid-identification.csv": { + "id": "opensafely/covid-identification/2020-06-03", + "url": "https://www.opencodelists.org/codelist/opensafely/covid-identification/2020-06-03/", + "downloaded_at": "2024-02-01 17:02:58.418414Z", + "sha": "124db6929439379b7dacd55ba26ae4f2ed9370bc" + }, + "nhsd-primary-care-domain-refsets-carehome_cod.csv": { + "id": "nhsd-primary-care-domain-refsets/carehome_cod/20211221", + "url": "https://www.opencodelists.org/codelist/nhsd-primary-care-domain-refsets/carehome_cod/20211221/", + "downloaded_at": "2024-02-08 16:59:52.358427Z", + "sha": "11a75f8c271f6cd05276f49b038fbda8dfab77fe" + }, + "opensafely-chronic-cardiac-disease.csv": { + "id": "opensafely/chronic-cardiac-disease/2020-04-08", + "url": "https://www.opencodelists.org/codelist/opensafely/chronic-cardiac-disease/2020-04-08/", + "downloaded_at": "2024-02-09 10:54:25.510100Z", + "sha": "2267f6fada9c77a2bbf62ce7a1c07ddf48348d61" + }, + "nhsd-primary-care-domain-refsets-pulmohyp_cod.csv": { + "id": "nhsd-primary-care-domain-refsets/pulmohyp_cod/20210127", + "url": "https://www.opencodelists.org/codelist/nhsd-primary-care-domain-refsets/pulmohyp_cod/20210127/", + "downloaded_at": "2024-02-09 10:54:25.642529Z", + "sha": "47b0ad0e73cfd1b53edd33dfdf17173287f91a92" + }, + "nhsd-primary-care-domain-refsets-tempcarhome_cod.csv": { + "id": "nhsd-primary-care-domain-refsets/tempcarhome_cod/20200812", + "url": "https://www.opencodelists.org/codelist/nhsd-primary-care-domain-refsets/tempcarhome_cod/20200812/", + "downloaded_at": "2024-02-09 10:54:25.774557Z", + "sha": "931872c7b2c96884a1b4bdb5062356985875cea4" + } + } } \ No newline at end of file diff --git a/codelists/codelists.txt b/codelists/codelists.txt index e69de29..66afe87 100644 --- a/codelists/codelists.txt +++ b/codelists/codelists.txt @@ -0,0 +1,26 @@ +opensafely/ethnicity-snomed-0removed/2e641f61 +opensafely/smoking-clear/2020-04-29 +opensafely/smoking-unclear/2020-04-29 +nhsd-primary-care-domain-refsets/ast_cod/20210127 +opensafely/asthma-inhaler-steroid-medication/2020-04-15 +nhsd-primary-care-domain-refsets/astres_cod/20200812 +user/angel-wong/hazardous-drinking/3c786eff +nhsd-primary-care-domain-refsets/illsub_cod/20210127 +nhsd-primary-care-domain-refsets/illsubint_cod/20210127 +nhsd-primary-care-domain-refsets/illsubassdec_cod/20200812 +nhsd-primary-care-domain-refsets/copd_cod/20210127 +bristol/copd-medications-bnf/4b00637c +nhsd-primary-care-domain-refsets/copdres_cod/20200812 +nhsd-primary-care-domain-refsets/hyp_cod/20200812 +nhsd-primary-care-domain-refsets/dmtype1_cod/20210127 +nhsd-primary-care-domain-refsets/dmnontype1_cod/20210127 +nhsd-primary-care-domain-refsets/hf_cod/20210127 +nhsd-primary-care-domain-refsets/mi_cod/20210127 +bristol/ild-snomed/2f3e3051 +opensafely/covid-identification-in-primary-care-probable-covid-positive-test/508192f8 +opensafely/documented-influenza-illness/2020-05-18 +opensafely/covid-identification/2020-06-03 +nhsd-primary-care-domain-refsets/carehome_cod/20211221 +opensafely/chronic-cardiac-disease/2020-04-08 +nhsd-primary-care-domain-refsets/pulmohyp_cod/20210127 +nhsd-primary-care-domain-refsets/tempcarhome_cod/20200812 \ No newline at end of file diff --git a/codelists/nhsd-primary-care-domain-refsets-ast_cod.csv b/codelists/nhsd-primary-care-domain-refsets-ast_cod.csv new file mode 100644 index 0000000..fe80c5f --- /dev/null +++ b/codelists/nhsd-primary-care-domain-refsets-ast_cod.csv @@ -0,0 +1,142 @@ +code,term +1064811000000103,Moderate acute exacerbation of asthma +1064821000000109,Life threatening acute exacerbation of asthma +10674711000119105,Acute severe exacerbation of asthma co-occurrent with allergic rhinitis +10674991000119104,Intermittent allergic asthma +10675391000119101,Severe controlled persistent asthma +10675431000119106,Severe persistent allergic asthma +10675471000119109,Acute severe exacerbation of severe persistent allergic asthma +10675551000119104,Acute severe exacerbation of severe persistent asthma co-occurrent with allergic rhinitis +10675591000119109,Severe persistent allergic asthma controlled +10675631000119109,Severe persistent asthma controlled co-occurrent with allergic rhinitis +10675671000119107,Severe persistent allergic asthma uncontrolled +10675711000119106,Severe persistent asthma uncontrolled co-occurrent with allergic rhinitis +10675751000119107,Severe uncontrolled persistent asthma +10675871000119106,Mild persistent allergic asthma +10675911000119109,Acute severe exacerbation of mild persistent allergic asthma +10675991000119100,Acute severe exacerbation of mild persistent allergic asthma co-occurrent with allergic rhinitis +10676031000119106,Mild persistent allergic asthma controlled +10676071000119109,Mild persistent asthma controlled +10676111000119102,Mild persistent asthma controlled co-occurrent with allergic rhinitis +10676151000119101,Mild persistent allergic asthma uncontrolled +10676191000119106,Mild persistent asthma uncontrolled +10676231000119102,Mild persistent asthma uncontrolled co-occurrent with allergic rhinitis +10676351000119103,Moderate persistent asthma controlled +10676391000119108,Moderate persistent allergic asthma +10676431000119103,Acute severe exacerbation of moderate persistent allergic asthma +10676511000119109,Acute severe exacerbation of moderate persistent asthma co-occurrent with allergic rhinitis +10676551000119105,Moderate persistent allergic asthma controlled +10676591000119100,Moderate persistent controlled asthma co-occurrent with allergic rhinitis +10676631000119100,Moderate persistent allergic asthma uncontrolled +10676671000119102,Moderate persistent asthma uncontrolled co-occurrent with allergic rhinitis +10676711000119103,Moderate persistent asthma uncontrolled +10692681000119108,Aspirin exacerbated respiratory disease +10692721000119102,Chronic obstructive asthma co-occurrent with acute exacerbation of asthma +10692761000119107,Asthma-chronic obstructive pulmonary disease overlap syndrome +10742121000119104,Asthma in mother complicating childbirth +1086701000000102,Life threatening acute exacerbation of allergic asthma +1086711000000100,Life threatening acute exacerbation of intrinsic asthma +1103911000000103,Severe asthma with fungal sensitisation +11641008,Millers' asthma +11944003,Feather-pickers' disease +12428000,Intrinsic asthma without status asthmaticus +124991000119109,Severe persistent asthma co-occurrent with allergic rhinitis +125001000119103,Moderate persistent asthma co-occurrent with allergic rhinitis +125011000119100,Mild persistent asthma co-occurrent with allergic rhinitis +125021000119107,Intermittent asthma co-occurrent with allergic rhinitis +13151001,Flax-dressers' disease +135171000119106,Acute exacerbation of moderate persistent asthma +135181000119109,Acute exacerbation of mild persistent asthma +16584951000119101,Oral steroid-dependent asthma +1741000119102,Intermittent asthma uncontrolled +1751000119100,Acute exacerbation of chronic obstructive airways disease with asthma +18041002,Printers' asthma +195949008,Chronic asthmatic bronchitis +195967001,Asthma +195977004,Mixed asthma +19849005,Meat-wrappers' asthma +225057002,Brittle asthma +233672007,Byssinosis grade 3 +233678006,Childhood asthma +233679003,Late onset asthma +233683003,Hay fever with asthma +233687002,Colophony asthma +233688007,Sulfite-induced asthma +233691007,Asthmatic pulmonary eosinophilia +2360001000004109,Steroid dependent asthma +266361008,Non-allergic asthma +281239006,Exacerbation of asthma +30352005,Allergic-infective asthma +304527002,Acute asthma +312453004,Asthma - currently active +31387002,Exercise-induced asthma +34015007,Bakers' asthma +370218001,Mild asthma +370219009,Moderate asthma +370220003,Occasional asthma +370221004,Severe asthma +389145006,Allergic asthma +395022009,Asthma night-time symptoms +401000119107,Asthma with irreversible airway obstruction +401193004,Asthma confirmed +404804003,Platinum asthma +404806001,Cheese-makers' asthma +404808000,Isocyanate induced asthma +405944004,Asthmatic bronchitis +407674008,Aspirin-induced asthma +409663006,Cough variant asthma +41553006,Detergent asthma +418395004,Tea-makers' asthma +423889005,Non-immunoglobulin E mediated allergic asthma +424199006,Substance induced asthma +424643009,Immunoglobulin E-mediated allergic asthma +425969006,Exacerbation of intermittent asthma +426656000,Severe persistent asthma +426979002,Mild persistent asthma +427295004,Moderate persistent asthma +427603009,Intermittent asthma +427679007,Mild intermittent asthma +442025000,Acute exacerbation of chronic asthmatic bronchitis +445427006,Seasonal asthma +55570000,Asthma without status asthmaticus +56968009,Asthma caused by wood dust +57607007,Occupational asthma +59786004,Weavers' cough +63088003,Allergic asthma without status asthmaticus +641000119106,Intermittent asthma well controlled +703953004,Allergic asthma caused by Dermatophagoides pteronyssinus +703954005,Allergic asthma caused by Dermatophagoides farinae +707444001,Uncomplicated asthma +707445000,Exacerbation of mild persistent asthma +707446004,Exacerbation of moderate persistent asthma +707447008,Exacerbation of severe persistent asthma +707511009,Uncomplicated mild persistent asthma +707512002,Uncomplicated moderate persistent asthma +707513007,Uncomplicated severe persistent asthma +707979007,Acute severe exacerbation of severe persistent asthma +707980005,Acute severe exacerbation of moderate persistent asthma +707981009,Acute severe exacerbation of mild persistent asthma +708038006,Acute exacerbation of asthma +708090002,Acute severe exacerbation of asthma +708093000,Acute exacerbation of immunoglobulin E-mediated allergic asthma +708094006,Acute exacerbation of intrinsic asthma +708095007,Acute severe exacerbation of immunoglobin E-mediated allergic asthma +708096008,Acute severe exacerbation of intrinsic asthma +72301000119103,Asthma in pregnancy +733858005,Acute severe refractory exacerbation of asthma +734904007,Life threatening acute exacerbation of asthma +734905008,Moderate acute exacerbation of asthma +735587000,Acute severe exacerbation of asthma co-occurrent and due to allergic asthma +735588005,Uncomplicated allergic asthma +735589002,Uncomplicated non-allergic asthma +762521001,Exacerbation of allergic asthma +782513000,Acute severe exacerbation of allergic asthma +782520007,Exacerbation of allergic asthma due to infection +786836003,Near fatal asthma +829976001,Thunderstorm asthma +85761009,Byssinosis +866881000000101,Chronic asthma with fixed airflow obstruction +89099002,Chronic allergic bronchitis +92807009,Chemical-induced asthma +93432008,Drug-induced asthma +99031000119107,Acute exacerbation of asthma co-occurrent with allergic rhinitis diff --git a/codelists/nhsd-primary-care-domain-refsets-astres_cod.csv b/codelists/nhsd-primary-care-domain-refsets-astres_cod.csv new file mode 100644 index 0000000..5149510 --- /dev/null +++ b/codelists/nhsd-primary-care-domain-refsets-astres_cod.csv @@ -0,0 +1,2 @@ +code,term +162660004,Asthma resolved diff --git a/codelists/nhsd-primary-care-domain-refsets-carehome_cod.csv b/codelists/nhsd-primary-care-domain-refsets-carehome_cod.csv new file mode 100644 index 0000000..998eec8 --- /dev/null +++ b/codelists/nhsd-primary-care-domain-refsets-carehome_cod.csv @@ -0,0 +1,22 @@ +code,term +1078511000000102,Home visit requested by care home staff +1129891000000107,Seen by clinical pharmacist in care home +160734000,Lives in a nursing home +160737007,Lives in an old peoples home +185218006,Seen in nursing home +185219003,Seen in elderly mentally infirm home +193081000000106,Provision of nursing home care +193231000000103,Provision of permanent nursing home care +248171000000108,Lives in care home +275691001,Seen in old people's home +299701000000103,Provision of continuing care in nursing home +306694006,Discharge to nursing home +306695007,Discharge to private nursing home +394923006,Lives in a residential home +719023008,Referred by care home +751801000000106,Home visit request by residential institution +763301000000108,Admission to nursing home +838691000000105,Referred by nursing home +889311000000109,Care home visit +889331000000101,Care home visit for initial patient assessment +889351000000108,Care home visit for follow-up patient review diff --git a/codelists/nhsd-primary-care-domain-refsets-copd_cod.csv b/codelists/nhsd-primary-care-domain-refsets-copd_cod.csv new file mode 100644 index 0000000..473ce0d --- /dev/null +++ b/codelists/nhsd-primary-care-domain-refsets-copd_cod.csv @@ -0,0 +1,55 @@ +code,term +106001000119101,Chronic obstructive lung disease co-occurrent with acute bronchitis +10692761000119107,Asthma-chronic obstructive pulmonary disease overlap syndrome +135836000,End stage chronic obstructive airways disease +13645005,Chronic obstructive lung disease +16003001,Giant bullous emphysema +16846004,Obstructive emphysema +1751000119100,Acute exacerbation of chronic obstructive airways disease with asthma +185086009,Chronic obstructive bronchitis +195949008,Chronic asthmatic bronchitis +195951007,Acute exacerbation of chronic obstructive airways disease +195953005,Mixed simple and mucopurulent chronic bronchitis +195957006,Chronic bullous emphysema +195958001,Segmental bullous emphysema +195959009,Zonal bullous emphysema +195963002,Acute vesicular emphysema +196001008,Chronic obstructive pulmonary disease with acute lower respiratory infection +196026004,Chronic emphysema caused by chemical fumes +233674008,Pulmonary emphysema in alpha-1 primary immunodeficiency deficiency +233675009,Toxic emphysema +233677001,Scar emphysema +23958009,Vanishing lung +266355005,Bullous emphysema with collapse +266356006,Atrophic (senile) emphysema +285381006,Acute infective exacerbation of chronic obstructive airways disease +293241000119100,Acute exacerbation of chronic obstructive bronchitis +293991000000106,Very severe chronic obstructive pulmonary disease +313296004,Mild chronic obstructive pulmonary disease +313297008,Moderate chronic obstructive pulmonary disease +313299006,Severe chronic obstructive pulmonary disease +31898008,Paraseptal emphysema +360470001,Chronic mucus hypersecretion +425748003,Acute exacerbation of chronic bronchitis +45145000,Unilateral emphysema +47895001,Congenital emphysema +49691004,Occupational bronchitis +4981000,Panacinar emphysema +52571006,Chronic tracheobronchitis +60805002,Hemolytic anemia with emphysema AND cutis laxa +61937009,Simple chronic bronchitis +63480004,Chronic bronchitis +66110007,Chronic diffuse emphysema caused by inhalation of chemical fumes AND/OR vapors +66987001,Congenital lobar emphysema +68328006,Centriacinar emphysema +70756004,Bronchial atresia with segmental pulmonary emphysema +708030004,Pulmonary emphysema co-occurrent with fibrosis of lung +74417001,Mucopurulent chronic bronchitis +785736001,Chronic bronchitis co-occurrent with wheeze +836477007,Chronic emphysema caused by vapor +840493007,Congenital lobar emphysema of bilateral lungs +84409004,Fetid chronic bronchitis +847091000000104,Acute non-infective exacerbation of chronic obstructive pulmonary disease +866901000000103,Eosinophilic bronchitis +87433001,Pulmonary emphysema +89549007,Catarrhal bronchitis diff --git a/codelists/nhsd-primary-care-domain-refsets-copdres_cod.csv b/codelists/nhsd-primary-care-domain-refsets-copdres_cod.csv new file mode 100644 index 0000000..06a3d8b --- /dev/null +++ b/codelists/nhsd-primary-care-domain-refsets-copdres_cod.csv @@ -0,0 +1,2 @@ +code,term +941201000000103,Chronic obstructive pulmonary disease resolved diff --git a/codelists/nhsd-primary-care-domain-refsets-dmnontype1_cod.csv b/codelists/nhsd-primary-care-domain-refsets-dmnontype1_cod.csv new file mode 100644 index 0000000..fe6ab61 --- /dev/null +++ b/codelists/nhsd-primary-care-domain-refsets-dmnontype1_cod.csv @@ -0,0 +1,62 @@ +code,term +112991000000101,Lipoatrophic diabetes mellitus without complication +127012008,Lipoatrophic diabetes +1481000119100,Diabetes mellitus type 2 without retinopathy +190388001,Multiple complications due to type 2 diabetes mellitus +190389009,Type II diabetes mellitus with ulcer +190390000,Type II diabetes mellitus with gangrene +237599002,Insulin treated type 2 diabetes mellitus +237601000,Secondary endocrine diabetes mellitus +237604008,"Maturity onset diabetes of the young, type 2" +237613005,Hyperproinsulinemia +237618001,Insulin-dependent diabetes mellitus secretory diarrhea syndrome +237619009,Diabetes-deafness syndrome maternally transmitted +284449005,Congenital total lipodystrophy +313436004,Type II diabetes mellitus without complication +314902007,Peripheral angiopathy due to type 2 diabetes mellitus +314903002,Arthropathy due to type 2 diabetes mellitus +314904008,Type II diabetes mellitus with neuropathic arthropathy +335621000000101,Maternally inherited diabetes mellitus +368591000119109,Cheiroarthropathy due to diabetes mellitus type 2 +368711000119106,Mild nonproliferative retinopathy due to secondary diabetes mellitus +395204000,Hyperosmolar non-ketotic state due to type 2 diabetes mellitus +408540003,Diabetes mellitus caused by non-steroid drugs +413183008,Diabetes mellitus caused by non-steroid drugs without complication +420279001,Renal disorder due to type 2 diabetes mellitus +420436000,Mononeuropathy due to type 2 diabetes mellitus +420715001,Persistent microalbuminuria due to type 2 diabetes mellitus +420756003,Cataract of eye due to diabetes mellitus type 2 +421326000,Disorder of nervous system due to type 2 diabetes mellitus +421631007,Gangrene due to type 2 diabetes mellitus +421750000,Ketoacidosis due to type 2 diabetes mellitus +421779007,Exudative maculopathy due to type 2 diabetes mellitus +421847006,Ketoacidotic coma due to type 2 diabetes mellitus +421986006,Persistent proteinuria due to type 2 diabetes mellitus +422034002,Retinopathy due to type 2 diabetes mellitus +422099009,Disorder of eye due to type 2 diabetes mellitus +426705001,Diabetes mellitus co-occurrent and due to cystic fibrosis +44054006,Diabetes mellitus type 2 +443694000,Type II diabetes mellitus uncontrolled +445353002,Brittle type II diabetes mellitus +51002006,Diabetes mellitus associated with pancreatic disease +5368009,Drug-induced diabetes mellitus +5969009,Diabetes mellitus associated with genetic syndrome +609561005,Maturity-onset diabetes of the young +609562003,"Maturity onset diabetes of the young, type 1" +609572000,"Maturity-onset diabetes of the young, type 5" +703138006,Type II diabetes mellitus in remission +70694009,Diabetes mellitus AND insipidus with optic atrophy AND deafness +713703005,Gastroparesis due to type 2 diabetes mellitus +713706002,Polyneuropathy due to type 2 diabetes mellitus +719216001,Hypoglycemic coma due to type 2 diabetes mellitus +724276006,"X-linked immune dysregulation, polyendocrinopathy, enteropathy syndrome" +737212004,Diabetes mellitus caused by chemical +75682002,Diabetes mellitus caused by insulin receptor antibodies +781000119106,Neuropathic arthropathy due to type 2 diabetes mellitus +789567007,Ulcer of heel due to type 2 diabetes mellitus +789568002,Ulcer of midfoot due to diabetes mellitus +789569005,Neuropathic ulcer of heel due to type 2 diabetes mellitus +789570006,Neuropathic ulcer of midfoot due to type 2 diabetes mellitus +860712005,Disorder of macula of bilateral eyes due to diabetes mellitus present +860883001,Generalized autonomic neuropathy due to diabetes mellitus +8801005,Secondary diabetes mellitus diff --git a/codelists/nhsd-primary-care-domain-refsets-dmtype1_cod.csv b/codelists/nhsd-primary-care-domain-refsets-dmtype1_cod.csv new file mode 100644 index 0000000..4d29abf --- /dev/null +++ b/codelists/nhsd-primary-care-domain-refsets-dmtype1_cod.csv @@ -0,0 +1,38 @@ +code,term +190330002,Hyperosmolar coma due to type 1 diabetes mellitus +190368000,Type I diabetes mellitus with ulcer +190369008,Type I diabetes mellitus with gangrene +190372001,Type I diabetes mellitus maturity onset +290002008,Brittle type I diabetes mellitus +313435000,Type I diabetes mellitus without complication +314771006,Type I diabetes mellitus with hypoglycemic coma +314893005,Arthropathy due to type 1 diabetes mellitus +368561000119102,Hyperosmolarity due to type 1 diabetes mellitus +401110002,Type 1 diabetes mellitus with persistent microalbuminuria +420270002,Ketoacidosis due to type 1 diabetes mellitus +420486006,Exudative maculopathy due to type 1 diabetes mellitus +420514000,Persistent proteinuria due to type 1 diabetes mellitus +420789003,Retinopathy due to type 1 diabetes mellitus +420825003,Gangrene due to type 1 diabetes mellitus +420918009,Mononeuropathy due to type 1 diabetes mellitus +421075007,Ketoacidotic coma due to type 1 diabetes mellitus +421165007,Diabetic oculopathy associated with type I diabetes mellitus +421305000,Persistent microalbuminuria due to type 1 diabetes mellitus +421365002,Peripheral circulatory disorder due to type 1 diabetes mellitus +421437000,Hypoglycemic coma due to type 1 diabetes mellitus +421468001,Disorder of nervous system due to type 1 diabetes mellitus +421893009,Renal disorder due to type 1 diabetes mellitus +421920002,Cataract of eye due to diabetes mellitus type 1 +422228004,Multiple complications due to type 1 diabetes mellitus +426875007,Latent autoimmune diabetes mellitus in adult +428896009,Hyperosmolality due to uncontrolled type 1 diabetes mellitus +444073006,Type I diabetes mellitus uncontrolled +46635009,Diabetes mellitus type 1 +703137001,Type I diabetes mellitus in remission +713702000,Gastroparesis due to type 1 diabetes mellitus +713705003,Polyneuropathy due to type 1 diabetes mellitus +71771000119100,Neuropathic arthropathy due to type 1 diabetes mellitus +739681000,Disorder of eye due to type 1 diabetes mellitus +789571005,Ulcer of heel due to type 1 diabetes mellitus +789572003,Ulcer of midfoot due to type 1 diabetes mellitus +82581000119105,Rubeosis iridis due to type 1 diabetes mellitus diff --git a/codelists/nhsd-primary-care-domain-refsets-hf_cod.csv b/codelists/nhsd-primary-care-domain-refsets-hf_cod.csv new file mode 100644 index 0000000..333eec1 --- /dev/null +++ b/codelists/nhsd-primary-care-domain-refsets-hf_cod.csv @@ -0,0 +1,34 @@ +code,term +10335000,Chronic right-sided heart failure +10633002,Acute congestive heart failure +111283005,Chronic left-sided heart failure +128404006,Right heart failure +153941000119100,Chronic combined systolic and diastolic heart failure +16838951000119100,Acute on chronic right-sided congestive heart failure +195111005,Decompensated cardiac failure +195112003,Compensated cardiac failure +195114002,Acute left ventricular failure +233924009,Heart failure as a complication of care +314206003,Refractory heart failure +367363000,Right ventricular failure +420300004,New York Heart Association Classification - Class I +420913000,New York Heart Association Classification - Class III +421704003,New York Heart Association Classification - Class II +422293003,New York Heart Association Classification - Class IV +42343007,Congestive heart failure +426611007,Congestive heart failure due to valvular disease +43736008,Rheumatic left ventricular failure +441481004,Chronic systolic heart failure +441530006,Chronic diastolic heart failure +446221000,Heart failure with normal ejection fraction +48447003,Chronic heart failure +5375005,Chronic left-sided congestive heart failure +56675007,Acute heart failure +66989003,Chronic right-sided congestive heart failure +703272007,Heart failure with reduced ejection fraction +788950000,Heart failure with mid range ejection fraction +84114007,Heart failure +85232009,Left heart failure +871617000,Low output heart failure due to and following Fontan operation +88805009,Chronic congestive heart failure +92506005,Biventricular congestive heart failure diff --git a/codelists/nhsd-primary-care-domain-refsets-hyp_cod.csv b/codelists/nhsd-primary-care-domain-refsets-hyp_cod.csv new file mode 100644 index 0000000..694d543 --- /dev/null +++ b/codelists/nhsd-primary-care-domain-refsets-hyp_cod.csv @@ -0,0 +1,106 @@ +code,term +10562009,Malignant hypertension complicating AND/OR reason for care during childbirth +10725009,Benign hypertension +10752641000119102,Eclampsia with pre-existing hypertension in childbirth +10757401000119104,Pre-existing hypertensive heart and chronic kidney disease in mother complicating childbirth +1078301000112109,Multiple drug intolerant hypertension +111438007,Hypertension secondary to renal disease in obstetric context +118781000119108,Pre-existing hypertensive chronic kidney disease in mother complicating pregnancy +1201005,Benign essential hypertension +123799005,Renovascular hypertension +123800009,Goldblatt hypertension +132721000119104,Hypertensive emergency +140101000119109,Hypertension in chronic kidney disease stage 5 due to type 2 diabetes mellitus +140111000119107,Hypertension in chronic kidney disease stage 4 due to type 2 diabetes mellitus +140121000119100,Hypertension in chronic kidney disease stage 3 due to type 2 diabetes mellitus +140131000119102,Hypertension in chronic kidney disease stage 2 due to type 2 diabetes mellitus +14973001,Renal sclerosis with hypertension +16229371000119106,Labile systemic arterial hypertension +169465000,Hypertension caused by oral contraceptive pill +18416000,Essential hypertension complicating AND/OR reason for care during childbirth +194783001,Secondary malignant renovascular hypertension +194785008,Secondary benign hypertension +194788005,Hypertension secondary to endocrine disorder +194791005,Hypertension caused by drug +19769006,High-renin essential hypertension +198942000,"Benign essential hypertension complicating pregnancy, childbirth and the puerperium" +198944004,"Benign essential hypertension complicating pregnancy, childbirth and the puerperium - delivered" +198945003,"Benign essential hypertension complicating pregnancy, childbirth and the puerperium - delivered with postnatal complication" +198946002,"Benign essential hypertension complicating pregnancy, childbirth and the puerperium - not delivered" +198947006,"Benign essential hypertension complicating pregnancy, childbirth and the puerperium with postnatal complication" +198949009,"Renal hypertension complicating pregnancy, childbirth and the puerperium" +198951008,"Renal hypertension complicating pregnancy, childbirth and the puerperium - delivered" +198952001,"Renal hypertension complicating pregnancy, childbirth and the puerperium - delivered with postnatal complication" +198953006,"Renal hypertension complicating pregnancy, childbirth and the puerperium - not delivered" +198954000,"Renal hypertension complicating pregnancy, childbirth and the puerperium with postnatal complication" +198997005,Pre-eclampsia or eclampsia with pre-existing hypertension +198999008,Pre-eclampsia or eclampsia with pre-existing hypertension - delivered +199000005,Pre-eclampsia or eclampsia with pre-existing hypertension - delivered with postnatal complication +199002002,Pre-eclampsia or eclampsia with pre-existing hypertension - not delivered +199003007,Pre-eclampsia or eclampsia with pre-existing hypertension with postnatal complication +199005000,"Pre-existing hypertension complicating pregnancy, childbirth and puerperium" +199007008,"Pre-existing hypertensive heart and renal disease complicating pregnancy, childbirth and the puerperium" +199008003,"Pre-existing secondary hypertension complicating pregnancy, childbirth and puerperium" +23717007,Benign essential hypertension complicating AND/OR reason for care during pregnancy +23786008,Malignant hypertension complicating AND/OR reason for care during puerperium +24042004,Chronic hypertension complicating AND/OR reason for care during puerperium +26078007,Hypertension secondary to renal disease complicating AND/OR reason for care during childbirth +28119000,Renal hypertension +29259002,Malignant hypertension complicating AND/OR reason for care during pregnancy +31407004,Pre-existing hypertension complicating AND/OR reason for care during puerperium +31992008,Secondary hypertension +34694006,Pre-existing hypertension complicating AND/OR reason for care during childbirth +35303009,Benign essential hypertension complicating AND/OR reason for care during puerperium +371125006,Labile essential hypertension +37618003,Chronic hypertension complicating AND/OR reason for care during pregnancy +38341003,"Hypertensive disorder, systemic arterial" +39018007,Renal arterial hypertension +39727004,Hypertension secondary to renal disease complicating AND/OR reason for care during puerperium +397748008,Hypertension with albuminuria +40511000119107,Postpartum pre-existing essential hypertension +427889009,Hypertension associated with transplantation +428575007,Hypertension secondary to kidney transplant +429457004,Systolic essential hypertension +443482000,Hypertensive urgency +46481004,Low-renin essential hypertension +471521000000108,[X]Hypertensive diseases +48146000,Diastolic hypertension +48552006,Hypertension secondary to renal disease complicating AND/OR reason for care during pregnancy +56218007,Systolic hypertension +57684003,Parenchymal renal hypertension +59621000,Essential hypertension +59720008,Sustained diastolic hypertension +59997006,Endocrine hypertension +63287004,Benign essential hypertension in obstetric context +65402008,Pre-existing hypertension complicating AND/OR reason for care during pregnancy +65518004,Labile diastolic hypertension +67359005,Pre-eclampsia added to pre-existing hypertension +69909000,Eclampsia added to pre-existing hypertension +70272006,Malignant hypertension +706882009,Hypertensive crisis +712832005,Supine hypertension +71421000119105,Hypertension in chronic kidney disease due to type 2 diabetes mellitus +71701000119105,Hypertension in chronic kidney disease due to type 1 diabetes mellitus +71874008,Benign essential hypertension complicating AND/OR reason for care during childbirth +72022006,Essential hypertension in obstetric context +720568003,Brachydactyly and arterial hypertension syndrome +73410007,Benign secondary renovascular hypertension +74451002,Secondary diastolic hypertension +762463000,Diastolic hypertension co-occurrent with systolic hypertension +766937004,Hypertension due to gain-of-function mutation in mineralocorticoid receptor +78808002,Essential hypertension complicating AND/OR reason for care during pregnancy +78975002,Malignant essential hypertension +81626002,Malignant hypertension in obstetric context +8218002,Chronic hypertension complicating AND/OR reason for care during childbirth +84094009,Rebound hypertension +843821000000102,Stage 1 hypertension (National Institute for Health and Clinical Excellence 2011) +843841000000109,Severe hypertension (National Institute for Health and Clinical Excellence 2011) +845891000000103,Hypertension resistant to drug therapy +846371000000103,Stage 2 hypertension (National Institute for Health and Clinical Excellence 2011) +86041002,Pre-existing hypertension in obstetric context +863191000000102,Nocturnal hypertension +8762007,Chronic hypertension in obstetric context +89242004,Malignant secondary hypertension +908631000000108,Stage 1 hypertension (National Institute for Health and Clinical Excellence 2011) without evidence of end organ damage +908651000000101,Stage 1 hypertension (National Institute for Health and Clinical Excellence 2011) with evidence of end organ damage +9901000,Essential hypertension complicating AND/OR reason for care during puerperium diff --git a/codelists/nhsd-primary-care-domain-refsets-illsub_cod.csv b/codelists/nhsd-primary-care-domain-refsets-illsub_cod.csv new file mode 100644 index 0000000..87e23b4 --- /dev/null +++ b/codelists/nhsd-primary-care-domain-refsets-illsub_cod.csv @@ -0,0 +1,376 @@ +code,term +10327003,Cocaine-induced mood disorder +1047881000000106,Opioid analgesic dependence +105546006,Occasional drug abuser +105549004,Abuses volatile solvents +105550004,Misused volatile solvents in past +10755161000119102,Drug dependence in childbirth +1081000119105,"Opioid dependence, on agonist therapy" +1087481000000103,Late onset cocaine-induced psychosis +1087491000000101,Late onset lysergic acid diethylamide-induced psychosis +1087501000000107,Late onset cannabinoid-induced psychosis +11048011000119103,Cannabis hyperemesis syndrome co-occurrent and due to cannabis dependence +1104931000000109,Nitrous oxide misuse +11061003,Psychoactive substance use disorder +111480006,Psychoactive substance-induced organic dementia +11387009,Psychoactive substance-induced organic mental disorder +12398201000119102,Anxiety disorder caused by methamphetamine +12398281000119105,Methamphetamine withdrawal +12398321000119100,Mood disorder caused by methamphetamine +12398361000119105,Mental disorder caused by methamphetamine +1383008,Hallucinogen mood disorder +145121000119106,Intravenous nondependent opioid abuse +1461000119109,Drug dependence in remission +14784000,Opioid-induced organic mental disorder +15277004,Hallucinogen-induced anxiety disorder +153491000119103,"Drug dependence, continuous" +153501000119105,"Drug dependence, episodic" +16076691000119100,Episodic polysubstance dependence +16236661000119100,Delirium due to methamphetamine intoxication +16238221000119109,Depressive disorder caused by methamphetamine +18689007,Inhalant intoxication delirium +191816009,Drug dependence +191819002,Continuous opioid dependence +191820008,Episodic opioid dependence +191821007,Opioid dependence in remission +191825003,"Hypnotic or anxiolytic dependence, continuous" +191826002,"Hypnotic or anxiolytic dependence, episodic" +191827006,Hypnotic or anxiolytic dependence in remission +191829009,Cocaine type drug dependence +191831000,"Cocaine dependence, continuous" +191832007,"Cocaine dependence, episodic" +191833002,Cocaine dependence in remission +191837001,"Cannabis dependence, continuous" +191838006,"Cannabis dependence, episodic" +191839003,Cannabis dependence in remission +191849000,"Hallucinogen dependence, continuous" +191850000,"Hallucinogen dependence, episodic" +191851001,Hallucinogen dependence in remission +191853003,Glue sniffing dependence +191855005,"Glue sniffing dependence, continuous" +191856006,"Glue sniffing dependence, episodic" +191857002,Glue sniffing dependence in remission +191865004,Combined opioid with non-opioid drug dependence +191867007,"Combined opioid with non-opioid drug dependence, continuous" +191868002,"Combined opioid with non-opioid drug dependence, episodic" +191869005,Combined opioid with non-opioid drug dependence in remission +191871005,"Combined drug dependence, excluding opioids" +191873008,"Combined drug dependence, excluding opioid, continuous" +191874002,"Combined drug dependence, excluding opioid, episodic" +191875001,"Combined drug dependence, excluding opioid, in remission" +191877009,Ecstasy type drug dependence +191939002,Misuse of prescription only drugs +19445006,Opioid-induced psychotic disorder with hallucinations +197541000000101,Occasional drug user +199252002,Drug dependence during pregnancy - baby delivered +199253007,Drug dependence in the puerperium - baby delivered +199254001,Drug dependence during pregnancy - baby not yet delivered +199255000,Drug dependence in the puerperium - baby delivered during previous episode of care +202961000000106,Ecstasy misuse +202991000000100,Heroin misuse +20385005,Opioid-induced psychotic disorder with delusions +20876004,Inhalant-induced anxiety disorder +21647008,Amphetamine dependence +21831000119109,Phencyclidine psychosis +21841000119100,Phencyclidine induced mental problem +226034001,Injecting drug user +228367002,Does not misuse drugs +228368007,Has never misused drugs +228371004,Long-term drug misuser +228372006,Poly-drug misuser +228373001,Drug addict +228374007,Notified addict +228375008,Misuses drugs orally +228376009,Inhales drugs +228377000,Smokes drugs +228378005,Smokes drugs in cigarette form +228379002,Smokes drugs through a pipe +228381000,Sniffs drugs +228382007,Misuses drugs vaginally +228383002,Misuses drugs rectally +228384008,Misuses drugs sublingually +228386005,Injects drugs subcutaneously +228387001,Injects drugs intramuscularly +228388006,Intravenous drug user +228389003,Groin injector +228390007,Frequency of drug misuse +228391006,Drug injection behavior +228392004,Does not inject drugs +228393009,Has never injected drugs +228394003,Drug injecting equipment hygiene +228395002,Shares drug injecting equipment +228397005,Shares drug equipment +228398000,Frontloading +228399008,Shares syringes +228400001,Shares needles +228401002,Cleaning of drug injection equipment +228402009,Cleans drug injection equipment +228405006,Obtains clean needles +228406007,Uses needle exchange scheme +228407003,Obtains clean syringes +228410005,Uses needle and syringe exchange scheme +228411009,Time since stopped drug misuse +228412002,Total time drugs misused +228413007,Age at starting drug misuse +228415000,Priority of drug-related activities +228417008,Undue priority given to drug-related activities +228418003,Drug habit takes priority over social obligations +228419006,Drug habit takes priority over family obligations +228420000,Drug habit takes priority over financial obligations +228421001,Time devoted to drug-related activities +228422008,Time spent obtaining drugs +228423003,Time spent taking drugs +228424009,Time spent recovering from drugs +228425005,Routine of drug-related activities +228427002,Has a routine of drug-related activities +228428007,Follows same drug-related routine every day +228429004,Drug-related rituals +228430009,Follows drug-related rituals +228438002,Craves for drugs +228440007,Drug-related offending behavior +228441006,Dealing with drugs +228443009,Buying drugs +228444003,Possession of drugs +230443000,Narcotic withdrawal epilepsy +231468005,Lysergic acid diethylamide dependence +231469002,Mescaline dependence +231470001,Anxiolytic dependence +231472009,Barbiturate dependence +231473004,Benzodiazepine dependence +231474005,Diazepam dependence +231475006,Librium dependence +231477003,Heroin dependence +231478008,Methadone dependence +231479000,Morphine dependence +231480002,Opium dependence +231481003,Controlled drug dependence +231482005,Active drug dependence +237228001,Pregnancy and drug dependence +2403008,Psychoactive substance dependence +240951000000103,Drug misuse reported by other +240961000000100,Patient admits to drug use +248021000000105,Current non recreational drug user +248601000000106,Neck injector +26714005,Cannabis-induced psychotic disorder with hallucinations +267206008,"Drug dependence during pregnancy, childbirth and the puerperium" +268640002,Hypnotic or anxiolytic dependence +268641003,Cannabis type drug dependence +279461000000104,Using heroin on top of substitution therapy +279491000000105,Not using heroin on top of substitution therapy +27956007,Cocaine intoxication +28368009,Psychoactive substance-induced organic hallucinosis +288461000119105,Psychosis caused by inhalant +288851000119106,Opioid-induced mood disorder due to opioid abuse +288861000119108,Opioid-induced mood disorder due to opioid dependence +29733004,Opioid-induced mood disorder +30491001,Cocaine delusional disorder +307052004,Illicit drug use +310202009,Arylcyclohexylamine-induced organic mental disorder +311173003,Phencyclidine-related disorder +312936002,Anxiolytic-induced organic mental disorder +313915006,Hypnotic-induced organic mental disorder +314539001,Alcohol related optic neuropathy +31956009,Cocaine dependence +32009006,Hallucinogen hallucinosis +32358001,Amphetamine delusional disorder +32552001,Psychoactive substance-induced organic delusional disorder +32875003,Inhalant-induced persisting dementia +33871004,Phencyclidine-induced psychotic disorder with hallucinations +361049005,Habitual drug user +361055000,Misuses drugs +363908000,Details of drug misuse behavior +37331004,Psychoactive substance-induced organic mood disorder +373613000,Cleans own needles +38247002,Hallucinogen dependence +383871000000108,Health problem secondary to drug misuse +383901000000108,Uses drug paraphernalia +39003006,Psychoactive substance-induced organic delirium +39807006,Cannabis intoxication delirium +39951001,Cannabis-induced anxiety disorder +405069002,Effect of substance addiction +40571009,Hallucinogen intoxication delirium +413096007,Never injecting drug user +413295004,Concerned about own drug use +413329000,Treated for drug use in last 12 months +416262000,Continuous use of drugs +416437003,Preoccupied with substance misuse +416479009,Previously injecting drug user +416751004,Reduced drugs misuse +417252002,Episodic use of drugs +417284009,Current drug user +417298001,Abnormal craving for drugs +417360004,Duplicative flashbacks +417531009,Excessive craving for drugs +417697003,Irresistible craving for drugs +424461008,Behavior change due to substance use +424626006,Misuse of over-the-counter medications +424848002,Recreational drug user +425841004,Phencyclidine dependence in remission +426001001,Fentanyl dependence +426873000,Methamphetamine dependence +427327003,Sedative dependence +428406005,Benzodiazepine misuse +428493006,Crack cocaine misuse +428495004,Solvent misuse +428623008,Barbiturate misuse +428659002,Amphetamine misuse +428819003,Opiate misuse +428823006,Cannabis misuse +429179002,Antidepressant misuse +429299000,"Combined drug dependence, continuous" +429512006,Methadone misuse +429782000,Cocaine misuse +43497001,Amphetamine-induced mood disorder +439374006,Drug abuse cessation behavior +440664005,Details of drug use behavior during pregnancy +441668002,Drug seeking behavior +441681009,Dependence on unknown drug +442229000,Amount of money spent per day on drug habit +442406005,Stimulant dependence +44870007,Misused drugs in past +46721000,Psychoactive substance-induced organic personality disorder +46975003,Cocaine-induced organic mental disorder +4863002,Phencyclidine mood disorder +5002000,Inhalant dependence +50026000,Psychoactive substance-induced organic anxiety disorder +50320000,Hallucinogen intoxication +50722006,Phencyclidine delusional disorder +50933003,Hallucinogen delusional disorder +51339003,Polysubstance dependence +51443000,Amphetamine-induced psychotic disorder with hallucinations +51493001,Cocaine-induced anxiety disorder +52866005,Opioid intoxication delirium +53050002,Hallucinogen-induced organic mental disorder +55967005,Phencyclidine-induced anxiety disorder +58727001,Phencyclidine dependence +61104008,Inhalant-induced organic mental disorder +6348008,Cocaine-induced psychotic disorder with hallucinations +63649001,Cannabis delusional disorder +63983005,Inhalant-induced psychotic disorder with hallucinations +70328006,Cocaine delirium +703845008,Buprenorphine dependence +703885002,Misuse of analgesic +70545002,Narcotic drug user +707848009,Patient denies drug use +70932007,Amphetamine-induced sexual dysfunction +712542001,Abstinent from drug misuse +712543006,Abstinent from drug misuse in normal environment +712544000,Abstinent from drug misuse in protected environment +712545004,Abstinent from drug misuse on maintenance replacement +712546003,Abstinent from drug misuse when receiving blocking therapy +71328000,Opioid-induced sexual dysfunction +715818002,Cleans drug injection needle with bleach +718617006,Clinical Institute Withdrawal Assessment for Benzodiazepines scale score +723933008,Cannabis dependence with current use +723936000,Psychotic disorder caused by cannabis +723937009,Sleep disorder caused by cannabis +724653003,Opioid dependence with current use +724656006,Hypnotic dependence +724657002,Sedative dependence with current use +724658007,Hypnotic dependence with current use +724659004,Anxiolytic dependence with current use +724688003,Cocaine dependence with current use +724689006,Psychotic disorder caused by cocaine +724690002,Mood disorder with depressive symptoms caused by cocaine +724691003,Mood disorder with manic symptoms caused by cocaine +724692005,Mood disorder with mixed depressive and manic symptoms caused by cocaine +724693000,Obsessive compulsive disorder caused by cocaine +724695007,Hallucinogen dependence with current use +724696008,Psychotic disorder caused by hallucinogen +724700000,Volatile inhalant dependence with current use +724702008,Psychotic disorder caused by volatile inhalant +724704009,Methylenedioxymethamphetamine dependence with current use +724706006,Psychotic disorder caused by methylenedioxymethamphetamine +724707002,Mood disorder caused by methylenedioxymethamphetamine +724708007,Anxiety disorder caused by methylenedioxymethamphetamine +724714000,Dependence caused by dissociative substance +724715004,Dependence caused by ketamine +724718002,Psychotic disorder caused by dissociative drug +724719005,Psychotic disorder caused by ketamine +724720004,Mood disorder caused by dissociative drug +724721000,Mood disorder caused by ketamine +724722007,Anxiety disorder caused by dissociative drug +724723002,Anxiety disorder caused by ketamine +724724008,Psychoactive substance dependence with current use +724725009,Psychoactive substance withdrawal without complication +724726005,Perceptual disturbances co-occurrent and due to psychoactive substance withdrawal +724727001,Seizure co-occurrent and due to psychoactive substance withdrawal +724728006,Perceptual disturbances and seizures co-occurrent and due to psychoactive substance withdrawal +735750005,Psychotic disorder with schizophreniform symptoms caused by cocaine +737226008,Disorder caused by cannabis +737334000,Disorder caused by synthetic cannabinoid use +737335004,Synthetic cannabinoid intoxication +737336003,Synthetic cannabinoid abuse +737337007,Synthetic cannabinoid dependence +737338002,Synthetic cannabinoid withdrawal +737339005,Delirium caused by synthetic cannabinoid +737341006,Anxiety disorder caused by synthetic cannabinoid +737342004,Sleep disorder caused by synthetic cannabinoid +741063003,Illicit drug injection in last 12 months +74934004,Psychoactive substance-induced withdrawal syndrome +75122001,Inhalant-induced psychotic disorder with delusions +75544000,Opioid dependence +762320004,Mood disorder with manic symptoms caused by opioid +762321000,Mood disorder with depressive symptoms caused by opioid +762322007,Mood disorder with mixed depressive and manic symptoms caused by opioid +762324008,Delirium caused by stimulant +762325009,Psychotic disorder caused by stimulant +762326005,Psychotic disorder with hallucinations caused by stimulant +762327001,Psychotic disorder with delusions caused by stimulant +762328006,Mood disorder caused by stimulant +762329003,Mood disorder with depressive symptoms caused by stimulant +762330008,Mood disorder with mixed depressive and manic symptoms caused by stimulant +762331007,Anxiety disorder caused by stimulant +762335003,Mood disorder with manic symptoms caused by hallucinogen +762336002,Mood disorder with depressive symptoms caused by hallucinogen +762337006,Mood disorder with mixed depressive and manic symptoms caused by hallucinogen +762338001,Mood disorder with manic symptoms caused by volatile inhalant +762339009,Mood disorder with depressive symptoms caused by volatile inhalant +762340006,Mood disorder with mixed depressive and manic symptoms caused by volatile inhalant +762341005,Mood disorder with manic symptoms caused by ecstasy type drug +762342003,Mood disorder with depressive symptoms caused by ecstasy type drug +762343008,Mood disorder with mixed depressive and manic symptoms caused by ecstasy type drug +762344002,Mood disorder with manic symptoms caused by dissociative drug +762345001,Mood disorder with depressive symptoms caused by dissociative drug +762346000,Mood disorder with mixed depressive and manic symptoms caused by dissociative drug +762505006,Synthetic cathinone dependence +762506007,Delirium caused by synthetic cathinone +762507003,Psychotic disorder caused by synthetic cathinone +762508008,Psychotic disorder with hallucinations caused by synthetic cathinone +762509000,Psychotic disorder with delusions caused by synthetic cathinone +762510005,Psychotic disorder with schizophreniform symptoms caused by synthetic cathinone +762511009,Mood disorder caused by synthetic cathinone +762512002,Mood disorder with depressive symptoms caused by synthetic cathinone +762513007,Mood disorder with manic symptoms caused by synthetic cathinone +762514001,Mood disorder with mixed depressive and manic symptoms caused by synthetic cathinone +762515000,Anxiety disorder caused by synthetic cathinone +762516004,Obsessive compulsive disorder caused by synthetic cathinone +763699005,Clinical Opiate Withdrawal Scale score +770101000000107,Treatment outcomes profile score +77355000,Cannabis-induced organic mental disorder +78358001,Amphetamine withdrawal +788165003,Misuse of medication +788955005,Impulse control disorder caused by cocaine +788983007,Mood disorder caused by cannabis +789119007,Mood disorder caused by synthetic cannabinoid +80868005,Cocaine withdrawal +817962007,Chlordiazepoxide dependence +82339009,Amphetamine-induced anxiety disorder +824001000000103,Misuses anabolic steroids +83168008,Psychoactive substance-induced organic amnestic disorder +83367009,Amphetamine-induced organic mental disorder +836439001,Nicotine dependence in remission +838527002,Amfetamine and amfetamine derivative drug dependence +838528007,Mood disorder with manic symptoms caused by amfetamine and amfetamine derivative +838529004,Mood disorder with mixed depressive and manic symptoms caused by amfetamine and amfetamine derivative +838530009,Mood disorder with depressive symptoms caused by amfetamine and amfetamine derivative +85005007,Cannabis dependence +860699005,Deep vein thrombosis of lower extremity due to intravenous drug use +86391000119101,"Inhalant dependence, continuous" +86401000119104,"Inhalant dependence, episodic" +870621003,Tobacco dependence with current use +87132004,Opioid withdrawal +8837000,Amphetamine delirium +89451009,Inhalant-induced mood disorder +943121000000104,Psychoactive substance-induced psychosis +943151000000109,Volatile inhalant-induced psychosis diff --git a/codelists/nhsd-primary-care-domain-refsets-illsubassdec_cod.csv b/codelists/nhsd-primary-care-domain-refsets-illsubassdec_cod.csv new file mode 100644 index 0000000..95f92e1 --- /dev/null +++ b/codelists/nhsd-primary-care-domain-refsets-illsubassdec_cod.csv @@ -0,0 +1,4 @@ +code,term +362451000000107,Drug misuse assessment declined +777101000000108,Substance misuse assessment declined +783241000000102,Declined to give substance misuse history diff --git a/codelists/nhsd-primary-care-domain-refsets-illsubint_cod.csv b/codelists/nhsd-primary-care-domain-refsets-illsubint_cod.csv new file mode 100644 index 0000000..4b6f5b0 --- /dev/null +++ b/codelists/nhsd-primary-care-domain-refsets-illsubint_cod.csv @@ -0,0 +1,40 @@ +code,term +1048091000000104,Referral for brief intervention for substance misuse +1048221000000107,Referral for specialist substance misuse intervention +1091431000000107,Referral to substance misuse service declined +1111241000000109,Provision of information about cannabis use +1111251000000107,Provision of information about stimulant use +1111261000000105,Provision of information about tranquilliser use +1111271000000103,Provision of information about opioid use +1111281000000101,Provision of information about psychoactive substance use +112891000000107,Referral to community drug dependency team +135828009,Under care of community drug team +176831000000102,Drug misuse enhanced service completed +200771000000103,Referred by drug statutory service +201091000000109,Substance misuse treatment withdrawn +201101000000101,Substance misuse treatment programme completed +201521000000104,Referral to substance misuse service +299881000000104,Substance misuse treatment declined +299911000000104,Substance misuse treatment not available +299941000000103,Substance misuse structured counselling +304301000000105,Self referral to substance misuse service +313071005,Counseling for substance abuse +372511000000103,Shared care drug misuse treatment +372541000000102,Drug misuse treatment in primary care +386450006,Substance use treatment: drug withdrawal +386451005,Substance use treatment: overdose +396150002,Referral for substance abuse +401266006,Referral to drug abuse counselor +417096006,Referral to community drug and alcohol team +417699000,Referral to drug treatment center +424589009,Substance use treatment: cessation +4266003,Referral to drug addiction rehabilitation service +507041000000101,Name of pharmacy attended due to drug misuse +719757009,Referral for brief intervention for substance abuse +744857009,Under care of drug misuse service +790211000000109,Referral to drug therapist +790231000000101,Referral to drug worker +810891000000103,Referral to counselling assessment referral advice and throughcare drug service +866391000000106,Seen by community drug team +894311000000107,In-house substance misuse treatment +895641000000103,Substance misuse treatment programme delivered by other healthcare provider diff --git a/codelists/nhsd-primary-care-domain-refsets-mi_cod.csv b/codelists/nhsd-primary-care-domain-refsets-mi_cod.csv new file mode 100644 index 0000000..78126e3 --- /dev/null +++ b/codelists/nhsd-primary-care-domain-refsets-mi_cod.csv @@ -0,0 +1,123 @@ +code,term +10273003,Acute infarction of papillary muscle +1077002,Septal infarction by electrocardiogram +1089431000000107,Postoperative nontransmural myocardial infarction +1089441000000103,Postoperative transmural myocardial infarction +1089451000000100,Acute nontransmural myocardial infarction +1089471000000109,Acute transmural myocardial infarction +12238111000119106,Acute ST segment elevation myocardial infarction of inferolateral wall +12238151000119107,Acute ST segment elevation myocardial infarction of inferoposterior wall +129574000,Postoperative myocardial infarction +15712841000119100,Acute ST segment elevation myocardial infarction of posterolateral wall +15712881000119105,Acute ST segment elevation myocardial infarction of anterolateral wall +15712921000119103,Acute ST segment elevation myocardial infarction of lateral wall +15712961000119108,Acute ST segment elevation myocardial infarction of anteroseptal wall +15713041000119103,Acute ST segment elevation myocardial infarction of posterior wall +15713081000119108,Acute ST segment elevation myocardial infarction due to left coronary artery occlusion +15713121000119105,Acute ST segment elevation myocardial infarction due to right coronary artery occlusion +15713161000119100,Acute ST segment elevation myocardial infarction of septum +15713201000119105,Acute ST segment elevation myocardial infarction of posterobasal wall +15960981000119105,Mural thrombus of left ventricle following acute myocardial infarction +15990001,Acute myocardial infarction of posterolateral wall +16837681000119104,Myocardial infarction due to demand ischemia +17531000119105,Acute myocardial infarction due to left coronary artery occlusion +194802003,True posterior myocardial infarction +194809007,Acute atrial infarction +194856005,Subsequent myocardial infarction +194857001,Subsequent myocardial infarction of anterior wall +194858006,Subsequent myocardial infarction of inferior wall +194862000,Hemopericardium due to and following acute myocardial infarction +194863005,Atrial septal defect due to and following acute myocardial infarction +194865003,Rupture of cardiac wall without hemopericardium as current complication following acute myocardial infarction +194866002,Rupture of chordae tendinae due to and following acute myocardial infarction +194867006,Rupture of papillary muscle as current complication following acute myocardial infarction +194868001,"Thrombosis of atrium, auricular appendage, and ventricle due to and following acute myocardial infarction" +22298006,Myocardial infarction +23311000119105,Acute myocardial infarction due to right coronary artery occlusion +233825009,Acute Q wave infarction - anteroseptal +233826005,Acute non-Q wave infarction - anteroseptal +233827001,Acute Q wave infarction - anterolateral +233828006,Acute non-Q wave infarction - anterolateral +233829003,Acute Q wave infarction - inferior +233830008,Acute non-Q wave infarction - inferior +233831007,Acute Q wave infarction - inferolateral +233832000,Acute non-Q wave infarction - inferolateral +233833005,Acute Q wave infarction - lateral +233834004,Acute non-Q wave infarction - lateral +233835003,Acute widespread myocardial infarction +233836002,Acute Q wave infarction - widespread +233837006,Acute non-Q wave infarction - widespread +233838001,Acute posterior myocardial infarction +233843008,Silent myocardial infarction +233846000,Post-infarction ventricular septal defect +233847009,Cardiac rupture due to and following acute myocardial infarction +282006,Acute myocardial infarction of basal-lateral wall +285981000119103,Acute ST segment elevation myocardial infarction involving left anterior descending coronary artery +285991000119100,Acute ST segment elevation myocardial infarction involving left main coronary artery +30277009,Rupture of ventricle due to acute myocardial infarction +304914007,Acute Q wave myocardial infarction +307140009,Acute non-Q wave infarction +311792005,Postoperative transmural myocardial infarction of anterior wall +311793000,Postoperative transmural myocardial infarction of inferior wall +311796008,Postoperative subendocardial myocardial infarction +314207007,Non-Q wave myocardial infarction +315287002,Diabetes mellitus insulin-glucose infusion in acute myocardial infarction +371068009,Myocardial infarction with complication +394659003,Acute coronary syndrome +394710008,First myocardial infarction +401303003,Acute ST segment elevation myocardial infarction +401314000,Acute non-ST segment elevation myocardial infarction +413444003,Acute myocardial ischemia +41466009,"Myocardial imaging for infarct with ejection fraction, first pass technique" +418044006,Myocardial infarction in recovery phase +42531007,Microinfarct of heart +428196007,Mixed myocardial ischemia and infarction +429391004,New myocardial infarction compared to prior study +52035003,Acute anteroapical myocardial infarction +54329005,Acute myocardial infarction of anterior wall +57054005,Acute myocardial infarction +58612006,Acute myocardial infarction of lateral wall +59063002,Acute myocardial infarction of apical-lateral wall +62695002,Acute anteroseptal myocardial infarction +63670007,"Myocardial imaging for infarct, planar technique" +64627002,Acute myocardial infarction of high lateral wall +65547006,Acute myocardial infarction of inferolateral wall +66189004,Postmyocardial infarction syndrome +70211005,Acute myocardial infarction of anterolateral wall +703164000,Acute ST segment elevation myocardial infarction of anterior wall +703165004,Acute ST segment elevation myocardial infarction of anterior wall involving right ventricle +703209002,Subsequent ST segment elevation myocardial infarction of inferior wall +703210007,Subsequent ST segment elevation myocardial infarction of anterior wall +703211006,Subsequent ST segment elevation myocardial infarction +703212004,Acute myocardial infarction during procedure +703213009,Acute ST segment elevation myocardial infarction of inferior wall +703251009,Acute myocardial infarction of inferior wall involving right ventricle +703252002,Acute myocardial infarction of anterior wall involving right ventricle +703253007,Acute ST segment elevation myocardial infarction of inferior wall involving right ventricle +703326006,Mitral valve regurgitation due to and following acute myocardial infarction +703328007,Mitral valve regurgitation due to acute myocardial infarction without papillary muscle and chordal rupture +703330009,Mitral valve regurgitation due to acute myocardial infarction with papillary muscle and chordal rupture +703360004,Subsequent non-ST segment elevation myocardial infarction +70422006,Acute subendocardial infarction +70998009,Acute myocardial infarction of basal inferior segment of left ventricle +71023004,Pericarditis due to acute myocardial infarction +736978009,Mural thrombus of right ventricle following acute myocardial infarction +73795002,Acute myocardial infarction of inferior wall +76593002,Acute myocardial infarction of inferoposterior wall +79009004,Acute myocardial infarction of septum +836293000,Acute myocardial infarction of right ventricle +836294006,Acute myocardial infarction of apex of heart +836295007,Acute myocardial infarction of inferolateral wall with posterior extension +840309000,Acute ST segment elevation myocardial infarction due to occlusion of proximal portion of anterior descending branch of left coronary artery +840312002,Acute ST segment elevation myocardial infarction due to occlusion of mid portion of anterior descending branch of left coronary artery +840316004,Acute ST segment elevation myocardial infarction due to occlusion of distal portion of anterior descending branch of left coronary artery +840609007,Acute ST segment elevation myocardial infarction due to occlusion of anterior descending branch of left coronary artery +840680009,Acute ST segment elevation myocardial infarction due to occlusion of septal branch of anterior descending branch of left coronary artery +846668006,Acute ST segment elevation myocardial infarction due to occlusion of diagonal branch of anterior descending branch of left coronary artery +846683001,Acute ST segment elevation myocardial infarction due to occlusion of intermediate artery +868214006,Acute ST segment elevation myocardial infarction due to occlusion of proximal portion of right coronary artery +868217004,Acute ST segment elevation myocardial infarction due to occlusion of distal portion of right coronary artery +868220007,Acute ST segment elevation myocardial infarction due to occlusion of mid portion of right coronary artery +868224003,Acute ST segment elevation myocardial infarction due to occlusion of marginal branch of right coronary artery +868225002,Acute ST segment elevation myocardial infarction due to occlusion of posterior descending branch of right coronary artery +868226001,Acute ST segment elevation myocardial infarction due to occlusion of posterior lateral branch of right coronary artery diff --git a/codelists/nhsd-primary-care-domain-refsets-pulmohyp_cod.csv b/codelists/nhsd-primary-care-domain-refsets-pulmohyp_cod.csv new file mode 100644 index 0000000..6fa356f --- /dev/null +++ b/codelists/nhsd-primary-care-domain-refsets-pulmohyp_cod.csv @@ -0,0 +1,68 @@ +code,term +10964002,Progressive pulmonary hypertension +11399002,Pulmonary hypertensive arterial disease +233815004,Persistent pulmonary hypertension of the newborn +233941006,Solitary pulmonary hypertension +233942004,Small vessel pulmonary hypertension +233943009,Sporadic primary pulmonary hypertension +233944003,Familial primary pulmonary hypertension +233945002,Pulmonary hypertension caused by drug +233946001,Large vessel pulmonary hypertension +233947005,Thromboembolic pulmonary hypertension +233948000,Post-arteritic pulmonary hypertension +233950008,Pulmonary hypertension associated with chronic underventilation +233954004,High altitude pulmonary hypertension +276792008,Pulmonary hypertension with extreme obesity +276793003,Pulmonary hypertension with occult mitral stenosis +276794009,Facultative pulmonary hypertension with shunt at atrial level +360573001,Post-capillary pulmonary hypertension +360578005,Pulmonary hypertension secondary to raised pulmonary vascular resistance +426012001,Right heart failure due to pulmonary hypertension +445237003,Portopulmonary hypertension +472757001,Pulmonary venous hypertension as complication of procedure +472758006,Pulmonary venous hypertension due to compression of pulmonary great vein +472759003,Pulmonary venous hypertension due to compression of pulmonary great vein by sclerosing mediastinitis +472760008,Pulmonary venous hypertension due to compression of pulmonary great vein by lymphadenopathy +472761007,Pulmonary venous hypertension due to compression of pulmonary great vein by neoplasm +472790001,Pulmonary venous hypertension due to disorder of left heart +5499009,Pulmonary hypertensive venous disease +697896007,Precapillary pulmonary hypertension +697897003,Heritable pulmonary arterial hypertension +697898008,Idiopathic pulmonary arterial hypertension +697899000,Heritable pulmonary arterial hypertension due to bone morphogenetic protein receptor type II mutation +697900005,Heritable pulmonary arterial hypertension due to activin A receptor type II-like kinase 1 or endoglin mutation +697901009,Pulmonary arterial hypertension caused by toxin +697902002,Associated pulmonary arterial hypertension +697903007,Pulmonary arterial hypertension associated with connective tissue disease +697904001,Pulmonary arterial hypertension associated with human immunodeficiency virus infection +697905000,Pulmonary arterial hypertension associated with congenital heart disease +697906004,Pulmonary arterial hypertension associated with congenital systemic-to-pulmonary shunt +697907008,Pulmonary arterial hypertension associated with schistosomiasis +697908003,Pulmonary arterial hypertension associated with chronic hemolytic anemia +697910001,Pulmonary hypertension due to lung disease and/or hypoxia +697911002,Pulmonary hypertension due to chronic obstructive pulmonary disease +697912009,Pulmonary hypertension due to interstitial lung disease +697913004,Pulmonary hypertension due to pulmonary disease with mixed restrictive and obstructive pattern +697914005,Pulmonary hypertension due to sleep-disordered breathing +697915006,Pulmonary hypertension due to alveolar hypoventilation disorder +697916007,Pulmonary hypertension due to developmental abnormality of the lung +697917003,Pulmonary hypertension due to hematological disorder +697918008,Pulmonary hypertension due to myeloproliferative disorder +697919000,Pulmonary hypertension due to post-splenectomy hematological disorder +697920006,Pulmonary hypertension in systemic disorder +697921005,Pulmonary hypertension in sarcoidosis +697922003,Pulmonary hypertension in Langerhans cell histiocytosis +697923008,Pulmonary hypertension in lymphangioleiomyomatosis +697924002,Pulmonary hypertension in neurofibromatosis +697925001,Pulmonary hypertension due to systolic systemic ventricular dysfunction +697926000,Pulmonary hypertension due to diastolic systemic ventricular dysfunction +697927009,Pulmonary hypertension due to left-sided valvular heart disease +697928004,Pulmonary venous hypertension due to congenital stenosis of pulmonary vein +703355003,Pulmonary hypertension due to vasculitis +70995007,Pulmonary hypertension +720575002,Braddock syndrome +840306007,Mild pulmonary hypertension +840307003,Moderate pulmonary hypertension +840308008,Severe pulmonary hypertension +87394009,Episodic pulmonary hypertension +88223008,Secondary pulmonary hypertension diff --git a/codelists/nhsd-primary-care-domain-refsets-tempcarhome_cod.csv b/codelists/nhsd-primary-care-domain-refsets-tempcarhome_cod.csv new file mode 100644 index 0000000..ecd378d --- /dev/null +++ b/codelists/nhsd-primary-care-domain-refsets-tempcarhome_cod.csv @@ -0,0 +1,2 @@ +code,term +1240291000000104,Living temporarily in care home diff --git a/codelists/opensafely-asthma-inhaler-steroid-medication.csv b/codelists/opensafely-asthma-inhaler-steroid-medication.csv new file mode 100644 index 0000000..923a74c --- /dev/null +++ b/codelists/opensafely-asthma-inhaler-steroid-medication.csv @@ -0,0 +1,272 @@ +code,term,id,type,bnf_code +34681611000001100,Trimbow 87micrograms/dose / 5micrograms/dose / 9micrograms/dose inhaler (Chiesi Ltd),34681611000001100,amp,0301011ABBBAAA0 +3175711000001102,Beclometasone 50micrograms/dose inhaler (A A H Pharmaceuticals Ltd),3175711000001102,amp,0302000C0AAAAAA +3175911000001100,Beclometasone 50micrograms/dose inhaler (Mylan),3175911000001100,amp,0302000C0AAAAAA +3176711000001105,Beclometasone 50micrograms/dose inhaler (Kent Pharmaceuticals Ltd),3176711000001105,amp,0302000C0AAAAAA +3177111000001107,Beclometasone 50micrograms/dose inhaler (Alliance Healthcare (Distribution) Ltd),3177111000001107,amp,0302000C0AAAAAA +4773611000001100,Beclometasone 50micrograms/dose inhaler (Teva UK Ltd),4773611000001100,amp,0302000C0AAAAAA +11400011000001108,Beclometasone 50micrograms/dose inhaler (Almus Pharmaceuticals Ltd),11400011000001108,amp,0302000C0AAAAAA +17793411000001101,Beclometasone 50micrograms/dose inhaler (Phoenix Healthcare Distribution Ltd),17793411000001101,amp,0302000C0AAAAAA +3178211000001102,Beclometasone 100micrograms/dose inhaler (A A H Pharmaceuticals Ltd),3178211000001102,amp,0302000C0AAABAB +3178411000001103,Beclometasone 100micrograms/dose inhaler (Mylan),3178411000001103,amp,0302000C0AAABAB +3179011000001102,Beclometasone 100micrograms/dose inhaler (Alliance Healthcare (Distribution) Ltd),3179011000001102,amp,0302000C0AAABAB +4773811000001101,Beclometasone 100micrograms/dose inhaler (Teva UK Ltd),4773811000001101,amp,0302000C0AAABAB +7379111000001102,Beclometasone 100micrograms/dose inhaler (Kent Pharmaceuticals Ltd),7379111000001102,amp,0302000C0AAABAB +11400511000001100,Beclometasone 100micrograms/dose inhaler (Almus Pharmaceuticals Ltd),11400511000001100,amp,0302000C0AAABAB +17794111000001108,Beclometasone 100micrograms/dose inhaler (Phoenix Healthcare Distribution Ltd),17794111000001108,amp,0302000C0AAABAB +3179811000001108,Beclometasone 250micrograms/dose inhaler (A A H Pharmaceuticals Ltd),3179811000001108,amp,0302000C0AAACAC +3180011000001102,Beclometasone 250micrograms/dose inhaler (Mylan),3180011000001102,amp,0302000C0AAACAC +3180911000001103,Beclometasone 250micrograms/dose inhaler (Alliance Healthcare (Distribution) Ltd),3180911000001103,amp,0302000C0AAACAC +4774011000001109,Beclometasone 250micrograms/dose inhaler (Teva UK Ltd),4774011000001109,amp,0302000C0AAACAC +7379311000001100,Beclometasone 250micrograms/dose inhaler (Kent Pharmaceuticals Ltd),7379311000001100,amp,0302000C0AAACAC +11400811000001102,Beclometasone 250micrograms/dose inhaler (Almus Pharmaceuticals Ltd),11400811000001102,amp,0302000C0AAACAC +17833911000001100,Beclometasone 250micrograms/dose inhaler (Phoenix Healthcare Distribution Ltd),17833911000001100,amp,0302000C0AAACAC +4332611000001107,Beclometasone 200micrograms/dose inhaler (A A H Pharmaceuticals Ltd),4332611000001107,amp,0302000C0AAARAR +15052211000001104,Beclometasone 200micrograms/dose inhaler (Sigma Pharmaceuticals Plc),15052211000001104,amp,0302000C0AAARAR +3180211000001107,Becloforte 250micrograms/dose inhaler (GlaxoSmithKline UK Ltd),3180211000001107,amp,0302000C0BBAAAC +3190311000001103,Becotide 100microgram Rotacaps (GlaxoSmithKline UK Ltd),3190311000001103,amp,0302000C0BCACAE +3192111000001101,Becotide 200microgram Rotacaps (GlaxoSmithKline UK Ltd),3192111000001101,amp,0302000C0BCADAF +3194011000001108,Becotide 400microgram Rotacaps (GlaxoSmithKline UK Ltd),3194011000001108,amp,0302000C0BCAGAI +3178611000001100,Becotide 100 inhaler (GlaxoSmithKline UK Ltd),3178611000001100,amp,0302000C0BCAHAB +3176211000001103,Becotide 50 inhaler (GlaxoSmithKline UK Ltd),3176211000001103,amp,0302000C0BCAIAA +3179311000001104,Becotide 200 inhaler (GlaxoSmithKline UK Ltd),3179311000001104,amp,0302000C0BCAQAR +3292811000001106,Ventide inhaler (GlaxoSmithKline UK Ltd),3292811000001106,amp,0302000C0BDAAAN +3182411000001107,AeroBec Forte 250 Autohaler (Meda Pharmaceuticals Ltd),3182411000001107,amp,0302000C0BEABAU +3181411000001102,AeroBec 100 Autohaler (Meda Pharmaceuticals Ltd),3181411000001102,amp,0302000C0BEACAT +3176411000001104,Beclazone 50 inhaler (Teva UK Ltd),3176411000001104,amp,0302000C0BFAAAA +3178811000001101,Beclazone 100 inhaler (Teva UK Ltd),3178811000001101,amp,0302000C0BFABAB +3180611000001109,Beclazone 250 inhaler (Teva UK Ltd),3180611000001109,amp,0302000C0BFACAC +3604611000001104,Beclazone 50 Easi-Breathe inhaler (Teva UK Ltd),3604611000001104,amp,0302000C0BFADAS +3181711000001108,Beclazone 100 Easi-Breathe inhaler (Teva UK Ltd),3181711000001108,amp,0302000C0BFAEAT +3182611000001105,Beclazone 250 Easi-Breathe inhaler (Teva UK Ltd),3182611000001105,amp,0302000C0BFAFAU +3179511000001105,Beclazone 200 inhaler (Teva UK Ltd),3179511000001105,amp,0302000C0BFAGAR +3175211000001109,Filair 50 inhaler (Meda Pharmaceuticals Ltd),3175211000001109,amp,0302000C0BGAAAA +3177911000001105,Filair 100 inhaler (Meda Pharmaceuticals Ltd),3177911000001105,amp,0302000C0BGABAB +3088611000001100,Becodisks 100microgram with Diskhaler (GlaxoSmithKline UK Ltd),3088611000001100,amp,0302000C0BHAAAG +3086011000001108,Becodisks 100microgram (GlaxoSmithKline UK Ltd),3086011000001108,amp,0302000C0BHABAL +3096011000001109,Becodisks 200microgram with Diskhaler (GlaxoSmithKline UK Ltd),3096011000001109,amp,0302000C0BHACAH +3099811000001109,Becodisks 200microgram (GlaxoSmithKline UK Ltd),3099811000001109,amp,0302000C0BHADAK +3102211000001109,Becodisks 400microgram with Diskhaler (GlaxoSmithKline UK Ltd),3102211000001109,amp,0302000C0BHAEAJ +3104911000001109,Becodisks 400microgram (GlaxoSmithKline UK Ltd),3104911000001109,amp,0302000C0BHAFAQ +3111911000001108,Asmabec 50 Clickhaler (Focus Pharmaceuticals Ltd),3111911000001108,amp,0302000C0BIADBI +3112511000001109,Asmabec 100 Clickhaler (Focus Pharmaceuticals Ltd),3112511000001109,amp,0302000C0BIAEBJ +3174111000001102,Asmabec 250 Clickhaler (Focus Pharmaceuticals Ltd),3174111000001102,amp,0302000C0BIAFBK +3176811000001102,Qvar 50 inhaler (Teva UK Ltd),3176811000001102,amp,0302000C0BJAABE +3175611000001106,Qvar 100 inhaler (Teva UK Ltd),3175611000001106,amp,0302000C0BJABBF +3177411000001102,Qvar 50 Autohaler (Teva UK Ltd),3177411000001102,amp,0302000C0BJACBG +3177711000001108,Qvar 100 Autohaler (Teva UK Ltd),3177711000001108,amp,0302000C0BJADBH +8159511000001107,Qvar 50micrograms/dose Easi-Breathe inhaler (Teva UK Ltd),8159511000001107,amp,0302000C0BJAEBG +8159711000001102,Qvar 100micrograms/dose Easi-Breathe inhaler (Teva UK Ltd),8159711000001102,amp,0302000C0BJAFBH +9525111000001105,Easyhaler Beclometasone 200micrograms/dose dry powder inhaler (Orion Pharma (UK) Ltd),9525111000001105,amp,0302000C0BNAABU +10617711000001103,Clenil Modulite 50micrograms/dose inhaler (Chiesi Ltd),10617711000001103,amp,0302000C0BPAABE +10618211000001109,Clenil Modulite 100micrograms/dose inhaler (Chiesi Ltd),10618211000001109,amp,0302000C0BPABBF +10619311000001107,Clenil Modulite 200micrograms/dose inhaler (Chiesi Ltd),10619311000001107,amp,0302000C0BPACBV +10619611000001102,Clenil Modulite 250micrograms/dose inhaler (Chiesi Ltd),10619611000001102,amp,0302000C0BPADBW +12906411000001100,Fostair 100micrograms/dose / 6micrograms/dose inhaler (Chiesi Ltd),12906411000001100,amp,0302000C0BQAABX +31063411000001101,Fostair 200micrograms/dose / 6micrograms/dose inhaler (Chiesi Ltd),31063411000001101,amp,0302000C0BQABBZ +26112111000001106,Fostair NEXThaler 100micrograms/dose / 6micrograms/dose dry powder inhaler (Chiesi Ltd),26112111000001106,amp,0302000C0BRAABY +31063111000001106,Fostair NEXThaler 200micrograms/dose / 6micrograms/dose dry powder inhaler (Chiesi Ltd),31063111000001106,amp,0302000C0BRABCA +35430111000001100,Kelhale 50micrograms/dose inhaler (Cipla EU Ltd),35430111000001100,amp,0302000C0BSAABE +35430311000001103,Kelhale 100micrograms/dose inhaler (Cipla EU Ltd),35430311000001103,amp,0302000C0BSABBF +36603211000001106,Soprobec 50micrograms/dose inhaler (Glenmark Pharmaceuticals Europe Ltd),36603211000001106,amp,0302000C0BTAABE +36603411000001105,Soprobec 200micrograms/dose inhaler (Glenmark Pharmaceuticals Europe Ltd),36603411000001105,amp,0302000C0BTABBV +36603611000001108,Soprobec 100micrograms/dose inhaler (Glenmark Pharmaceuticals Europe Ltd),36603611000001108,amp,0302000C0BTACBF +36603811000001107,Soprobec 250micrograms/dose inhaler (Glenmark Pharmaceuticals Europe Ltd),36603811000001107,amp,0302000C0BTADBW +2924111000001109,Pulmicort 200micrograms/dose inhaler (AstraZeneca UK Ltd),2924111000001109,amp,0302000K0BBADAD +3240911000001108,Pulmicort LS 50micrograms/dose inhaler (AstraZeneca UK Ltd),3240911000001108,amp,0302000K0BBAEAA +3112411000001105,Pulmicort 200 Turbohaler (AstraZeneca UK Ltd),3112411000001105,amp,0302000K0BBAHAG +3228711000001106,Pulmicort 400 Turbohaler (AstraZeneca UK Ltd),3228711000001106,amp,0302000K0BBAIAH +3113111000001106,Pulmicort 100 Turbohaler (AstraZeneca UK Ltd),3113111000001106,amp,0302000K0BBAKAK +14951111000001102,Pulmicort 100micrograms/dose inhaler CFC free (AstraZeneca UK Ltd),14951111000001102,amp,0302000K0BBAMAZ +15358411000001102,Pulmicort 200micrograms/dose inhaler CFC free (AstraZeneca UK Ltd),15358411000001102,amp,0302000K0BBANBA +3294211000001101,Symbicort 100/6 Turbohaler (AstraZeneca UK Ltd),3294211000001101,amp,0302000K0BDAAAL +3294611000001104,Symbicort 200/6 Turbohaler (AstraZeneca UK Ltd),3294611000001104,amp,0302000K0BDABAM +4373811000001100,Symbicort 400/12 Turbohaler (AstraZeneca UK Ltd),4373811000001100,amp,0302000K0BDACAU +32926011000001100,Symbicort 200micrograms/dose / 6micrograms/dose pressurised inhaler (AstraZeneca UK Ltd),32926011000001100,amp,0302000K0BDADBB +8031811000001102,Budelin Novolizer 200micrograms/dose inhalation powder (Mylan),8031811000001102,amp,0302000K0BFAAAV +9111811000001100,Budelin Novolizer 200micrograms/dose inhalation powder refill (Mylan),9111811000001100,amp,0302000K0BFABAW +10073911000001106,Easyhaler Budesonide 100micrograms/dose dry powder inhaler (Orion Pharma (UK) Ltd),10073911000001106,amp,0302000K0BGAAAK +10074611000001102,Easyhaler Budesonide 200micrograms/dose dry powder inhaler (Orion Pharma (UK) Ltd),10074611000001102,amp,0302000K0BGABAG +10074411000001100,Easyhaler Budesonide 400micrograms/dose dry powder inhaler (Orion Pharma (UK) Ltd),10074411000001100,amp,0302000K0BGACAH +25254111000001105,DuoResp Spiromax 160micrograms/dose / 4.5micrograms/dose dry powder inhaler (Teva UK Ltd),25254111000001105,amp,0302000K0BHAAAM +25254711000001106,DuoResp Spiromax 320micrograms/dose / 9micrograms/dose dry powder inhaler (Teva UK Ltd),25254711000001106,amp,0302000K0BHABAU +34812111000001106,Fobumix Easyhaler 320micrograms/dose / 9micrograms/dose dry powder inhaler (Orion Pharma (UK) Ltd),34812111000001106,amp,0302000K0BIAAAU +34950311000001108,Fobumix Easyhaler 160micrograms/dose / 4.5micrograms/dose dry powder inhaler (Orion Pharma (UK) Ltd),34950311000001108,amp,0302000K0BIABAM +34950611000001103,Fobumix Easyhaler 80micrograms/dose / 4.5micrograms/dose dry powder inhaler (Orion Pharma (UK) Ltd),34950611000001103,amp,0302000K0BIADAL +31064811000001101,Fluticasone propionate 500micrograms/dose / Salmeterol 50micrograms/dose dry powder inhaler (A A H Pharmaceuticals Ltd),31064811000001101,amp,0302000N0AAAZAZ +3097711000001109,Flixotide 50microgram disks with Diskhaler (GlaxoSmithKline UK Ltd),3097711000001109,amp,0302000N0BBAAAA +3098611000001101,Flixotide 100microgram disks with Diskhaler (GlaxoSmithKline UK Ltd),3098611000001101,amp,0302000N0BBACAC +3099611000001105,Flixotide 100microgram disks (GlaxoSmithKline UK Ltd),3099611000001105,amp,0302000N0BBADAD +3106311000001102,Flixotide 250microgram disks with Diskhaler (GlaxoSmithKline UK Ltd),3106311000001102,amp,0302000N0BBAEAE +3103511000001100,Flixotide 250microgram disks (GlaxoSmithKline UK Ltd),3103511000001100,amp,0302000N0BBAFAF +3183811000001101,Flixotide 50micrograms/dose Accuhaler (GlaxoSmithKline UK Ltd),3183811000001101,amp,0302000N0BBARAR +3184311000001107,Flixotide 100micrograms/dose Accuhaler (GlaxoSmithKline UK Ltd),3184311000001107,amp,0302000N0BBASAS +3184911000001108,Flixotide 250micrograms/dose Accuhaler (GlaxoSmithKline UK Ltd),3184911000001108,amp,0302000N0BBATAT +3185211000001103,Flixotide 500micrograms/dose Accuhaler (GlaxoSmithKline UK Ltd),3185211000001103,amp,0302000N0BBAUAU +398511000001105,Flixotide 125micrograms/dose Evohaler (GlaxoSmithKline UK Ltd),398511000001105,amp,0302000N0BBAYBA +2831211000001109,Flixotide 250micrograms/dose Evohaler (GlaxoSmithKline UK Ltd),2831211000001109,amp,0302000N0BBBABC +726611000001102,Flixotide 50micrograms/dose Evohaler (GlaxoSmithKline UK Ltd),726611000001102,amp,0302000N0BBBBBH +3186911000001100,Seretide 100 Accuhaler (GlaxoSmithKline UK Ltd),3186911000001100,amp,0302000N0BCAAAX +3187211000001106,Seretide 250 Accuhaler (GlaxoSmithKline UK Ltd),3187211000001106,amp,0302000N0BCABAY +3188311000001102,Seretide 500 Accuhaler (GlaxoSmithKline UK Ltd),3188311000001102,amp,0302000N0BCACAZ +453611000001102,Seretide 50 Evohaler (GlaxoSmithKline UK Ltd),453611000001102,amp,0302000N0BCADBE +810211000001105,Seretide 125 Evohaler (GlaxoSmithKline UK Ltd),810211000001105,amp,0302000N0BCAEBF +539811000001106,Seretide 250 Evohaler (GlaxoSmithKline UK Ltd),539811000001106,amp,0302000N0BCAFBG +21019411000001101,Flutiform 125micrograms/dose / 5micrograms/dose inhaler (Napp Pharmaceuticals Ltd),21019411000001101,amp,0302000N0BDAABJ +21019711000001107,Flutiform 250micrograms/dose / 10micrograms/dose inhaler (Napp Pharmaceuticals Ltd),21019711000001107,amp,0302000N0BDABBK +21020611000001104,Flutiform 50micrograms/dose / 5micrograms/dose inhaler (Napp Pharmaceuticals Ltd),21020611000001104,amp,0302000N0BDACBL +35647311000001101,Flutiform K-haler 125micrograms/dose / 5micrograms/dose breath actuated inhaler (Napp Pharmaceuticals Ltd),35647311000001101,amp,0302000N0BDADBP +35650811000001109,Flutiform K-haler 50micrograms/dose / 5micrograms/dose breath actuated inhaler (Napp Pharmaceuticals Ltd),35650811000001109,amp,0302000N0BDAEBQ +29782111000001107,Sirdupla 25micrograms/dose / 125micrograms/dose inhaler (Mylan),29782111000001107,amp,0302000N0BFAABF +29782511000001103,Sirdupla 25micrograms/dose / 250micrograms/dose inhaler (Mylan),29782511000001103,amp,0302000N0BFABBG +30950311000001106,AirFluSal Forspiro 50micrograms/dose / 500micrograms/dose dry powder inhaler (Sandoz Ltd),30950311000001106,amp,0302000N0BGAAAZ +34215311000001107,AirFluSal 25micrograms/dose / 125micrograms/dose inhaler (Sandoz Ltd),34215311000001107,amp,0302000N0BGABBF +34215511000001101,AirFluSal 25micrograms/dose / 250micrograms/dose inhaler (Sandoz Ltd),34215511000001101,amp,0302000N0BGACBG +33679711000001103,Aerivio Spiromax 50micrograms/dose / 500micrograms/dose dry powder inhaler (Teva UK Ltd),33679711000001103,amp,0302000N0BHAAAZ +34023611000001101,Sereflo 25micrograms/dose / 125micrograms/dose inhaler (Cipla EU Ltd),34023611000001101,amp,0302000N0BIAABF +34023811000001102,Sereflo 25micrograms/dose / 250micrograms/dose inhaler (Cipla EU Ltd),34023811000001102,amp,0302000N0BIABBG +34677011000001107,Aloflute 25micrograms/dose / 125micrograms/dose inhaler (Mylan),34677011000001107,amp,0302000N0BJAABF +34675711000001103,Aloflute 25micrograms/dose / 250micrograms/dose inhaler (Mylan),34675711000001103,amp,0302000N0BJABBG +35515511000001100,Fusacomb Easyhaler 50micrograms/dose / 250micrograms/dose dry powder inhaler (Orion Pharma (UK) Ltd),35515511000001100,amp,0302000N0BKAAAY +35515311000001106,Fusacomb Easyhaler 50micrograms/dose / 500micrograms/dose dry powder inhaler (Orion Pharma (UK) Ltd),35515311000001106,amp,0302000N0BKABAZ +35594011000001105,Combisal 25micrograms/dose / 50micrograms/dose inhaler (Aspire Pharma Ltd),35594011000001105,amp,0302000N0BLAABE +35594211000001100,Combisal 25micrograms/dose / 125micrograms/dose inhaler (Aspire Pharma Ltd),35594211000001100,amp,0302000N0BLABBF +35594411000001101,Combisal 25micrograms/dose / 250micrograms/dose inhaler (Aspire Pharma Ltd),35594411000001101,amp,0302000N0BLACBG +36604711000001102,Stalpex 50micrograms/dose / 500micrograms/dose dry powder inhaler (Glenmark Pharmaceuticals Europe Ltd),36604711000001102,amp,0302000N0BMAAAZ +4045711000001107,Asmanex 200micrograms/dose Twisthaler (Merck Sharp & Dohme Ltd),4045711000001107,amp,0302000R0BBAAAA +4043811000001103,Asmanex 400micrograms/dose Twisthaler (Merck Sharp & Dohme Ltd),4043811000001103,amp,0302000R0BBACAC +9003911000001102,Alvesco 80 inhaler (AstraZeneca UK Ltd),9003911000001102,amp,0302000U0BBAAAA +9004211000001109,Alvesco 160 inhaler (AstraZeneca UK Ltd),9004211000001109,amp,0302000U0BBABAB +23621711000001102,Relvar Ellipta 184micrograms/dose / 22micrograms/dose dry powder inhaler (GlaxoSmithKline UK Ltd),23621711000001102,amp,0302000V0BBAAAA +23622011000001107,Relvar Ellipta 92micrograms/dose / 22micrograms/dose dry powder inhaler (GlaxoSmithKline UK Ltd),23622011000001107,amp,0302000V0BBABAB +34952211000001104,Trelegy Ellipta 92micrograms/dose / 55micrograms/dose / 22micrograms/dose dry powder inhaler (GlaxoSmithKline UK Ltd),34952211000001104,amp,0302000V0BCAAA0 +34683311000001106,Generic Trimbow 87micrograms/dose / 5micrograms/dose / 9micrograms/dose inhaler,34683311000001106,vmp,0301011ABBBAAA0 +35909511000001107,Beclometasone 50micrograms/dose inhaler,35909511000001107,vmp,0302000C0AAAAAA +320537007,Beclometasone 100micrograms/dose inhaler,320537007,vmp,0302000C0AAABAB +35908811000001103,Beclometasone 250micrograms/dose inhaler,35908811000001103,vmp,0302000C0AAACAC +320535004,Beclometasone 200microgram inhalation powder capsules,320535004,vmp,0302000C0AAAFAF +35907711000001105,Beclometasone 100microgram inhalation powder blisters with device,35907711000001105,vmp,0302000C0AAAGAG +35908311000001107,Beclometasone 200microgram inhalation powder blisters with device,35908311000001107,vmp,0302000C0AAAHAH +320520000,Beclometasone 400microgram inhalation powder capsules,320520000,vmp,0302000C0AAAIAI +35909011000001104,Beclometasone 400microgram inhalation powder blisters with device,35909011000001104,vmp,0302000C0AAAJAJ +35908211000001104,Beclometasone 200microgram inhalation powder blisters,35908211000001104,vmp,0302000C0AAAKAK +35907611000001101,Beclometasone 100microgram inhalation powder blisters,35907611000001101,vmp,0302000C0AAALAL +35908911000001108,Beclometasone 400microgram inhalation powder blisters,35908911000001108,vmp,0302000C0AAAQAQ +35908511000001101,Beclometasone 200micrograms/dose inhaler,35908511000001101,vmp,0302000C0AAARAR +35909211000001109,Beclometasone 50micrograms/dose breath actuated inhaler,35909211000001109,vmp,0302000C0AAASAS +35907811000001102,Beclometasone 100micrograms/dose breath actuated inhaler,35907811000001102,vmp,0302000C0AAATAT +35908611000001102,Beclometasone 250micrograms/dose breath actuated inhaler,35908611000001102,vmp,0302000C0AAAUAU +35909611000001106,Beclometasone 50micrograms/dose inhaler CFC free,35909611000001106,vmp,0302000C0AABEBE +35908111000001105,Beclometasone 100micrograms/dose inhaler CFC free,35908111000001105,vmp,0302000C0AABFBF +35909311000001101,Beclometasone 50micrograms/dose breath actuated inhaler CFC free,35909311000001101,vmp,0302000C0AABGBG +35907911000001107,Beclometasone 100micrograms/dose breath actuated inhaler CFC free,35907911000001107,vmp,0302000C0AABHBH +35909411000001108,Beclometasone 50micrograms/dose dry powder inhaler,35909411000001108,vmp,0302000C0AABIBI +35908011000001109,Beclometasone 100micrograms/dose dry powder inhaler,35908011000001109,vmp,0302000C0AABJBJ +35908711000001106,Beclometasone 250micrograms/dose dry powder inhaler,35908711000001106,vmp,0302000C0AABKBK +35909111000001103,Beclometasone 400micrograms/dose dry powder inhaler,35909111000001103,vmp,0302000C0AABSBS +35908411000001100,Beclometasone 200micrograms/dose dry powder inhaler,35908411000001100,vmp,0302000C0AABUBU +10621011000001101,Beclometasone 200micrograms/dose inhaler CFC free,10621011000001101,vmp,0302000C0AABVBV +10621111000001100,Beclometasone 250micrograms/dose inhaler CFC free,10621111000001100,vmp,0302000C0AABWBW +12911011000001100,Beclometasone 100micrograms/dose / Formoterol 6micrograms/dose inhaler CFC free,12911011000001100,vmp,0302000C0AABXBX +26148711000001101,Beclometasone 100micrograms/dose / Formoterol 6micrograms/dose dry powder inhaler,26148711000001101,vmp,0302000C0AABYBY +31087411000001106,Beclometasone 200micrograms/dose / Formoterol 6micrograms/dose inhaler CFC free,31087411000001106,vmp,0302000C0AABZBZ +31087511000001105,Beclometasone 200micrograms/dose / Formoterol 6micrograms/dose dry powder inhaler,31087511000001105,vmp,0302000C0AACACA +35912811000001103,Budesonide 50micrograms/dose inhaler,35912811000001103,vmp,0302000K0AAAAAA +35912511000001101,Budesonide 200micrograms/dose inhaler,35912511000001101,vmp,0302000K0AAADAD +35912411000001100,Budesonide 200micrograms/dose dry powder inhaler,35912411000001100,vmp,0302000K0AAAGAG +35912711000001106,Budesonide 400micrograms/dose dry powder inhaler,35912711000001106,vmp,0302000K0AAAHAH +35912111000001105,Budesonide 100micrograms/dose dry powder inhaler,35912111000001105,vmp,0302000K0AAAKAK +35912011000001109,Budesonide 100micrograms/dose / Formoterol 6micrograms/dose dry powder inhaler,35912011000001109,vmp,0302000K0AAALAL +134498003,Budesonide 200micrograms/dose / Formoterol 6micrograms/dose dry powder inhaler,134498003,vmp,0302000K0AAAMAM +4378111000001103,Budesonide 400micrograms/dose / Formoterol 12micrograms/dose dry powder inhaler,4378111000001103,vmp,0302000K0AAAUAU +8024611000001102,Budesonide 200micrograms/dose dry powder inhalation cartridge with device,8024611000001102,vmp,0302000K0AAAVAV +9117811000001107,Budesonide 200micrograms/dose dry powder inhalation cartridge,9117811000001107,vmp,0302000K0AAAWAW +14959511000001107,Budesonide 100micrograms/dose inhaler CFC free,14959511000001107,vmp,0302000K0AAAZAZ +15374611000001106,Budesonide 200micrograms/dose inhaler CFC free,15374611000001106,vmp,0302000K0AABABA +32960711000001105,Budesonide 200micrograms/dose / Formoterol 6micrograms/dose inhaler CFC free,32960711000001105,vmp,0302000K0AABBBB +36059911000001104,Fluticasone propionate 50microgram inhalation powder blisters with device,36059911000001104,vmp,0302000N0AAAAAA +36059311000001100,Fluticasone propionate 100microgram inhalation powder blisters with device,36059311000001100,vmp,0302000N0AAACAC +36059211000001108,Fluticasone propionate 100microgram inhalation powder blisters,36059211000001108,vmp,0302000N0AAADAD +36059411000001107,Fluticasone propionate 250microgram inhalation powder blisters with device,36059411000001107,vmp,0302000N0AAAEAE +36059511000001106,Fluticasone propionate 250microgram inhalation powder blisters,36059511000001106,vmp,0302000N0AAAFAF +36059711000001101,Fluticasone propionate 500microgram inhalation powder blisters with device,36059711000001101,vmp,0302000N0AAAPAP +320602002,Fluticasone propionate 50micrograms/dose dry powder inhaler,320602002,vmp,0302000N0AAARAR +320603007,Fluticasone propionate 100micrograms/dose dry powder inhaler,320603007,vmp,0302000N0AAASAS +36565411000001101,Fluticasone propionate 250micrograms/dose dry powder inhaler,36565411000001101,vmp,0302000N0AAATAT +320605000,Fluticasone propionate 500micrograms/dose dry powder inhaler,320605000,vmp,0302000N0AAAUAU +320277000,Fluticasone propionate 100micrograms/dose / Salmeterol 50micrograms/dose dry powder inhaler,320277000,vmp,0302000N0AAAXAX +320279002,Fluticasone propionate 250micrograms/dose / Salmeterol 50micrograms/dose dry powder inhaler,320279002,vmp,0302000N0AAAYAY +320280004,Fluticasone propionate 500micrograms/dose / Salmeterol 50micrograms/dose dry powder inhaler,320280004,vmp,0302000N0AAAZAZ +320614005,Fluticasone 125micrograms/dose inhaler CFC free,320614005,vmp,0302000N0AABABA +320615006,Fluticasone 250micrograms/dose inhaler CFC free,320615006,vmp,0302000N0AABCBC +320274007,Fluticasone 50micrograms/dose / Salmeterol 25micrograms/dose inhaler CFC free,320274007,vmp,0302000N0AABEBE +320275008,Fluticasone 125micrograms/dose / Salmeterol 25micrograms/dose inhaler CFC free,320275008,vmp,0302000N0AABFBF +320276009,Fluticasone 250micrograms/dose / Salmeterol 25micrograms/dose inhaler CFC free,320276009,vmp,0302000N0AABGBG +320618008,Fluticasone 50micrograms/dose inhaler CFC free,320618008,vmp,0302000N0AABHBH +21113711000001102,Fluticasone 125micrograms/dose / Formoterol 5micrograms/dose inhaler CFC free,21113711000001102,vmp,0302000N0AABJBJ +21113811000001105,Fluticasone 250micrograms/dose / Formoterol 10micrograms/dose inhaler CFC free,21113811000001105,vmp,0302000N0AABKBK +21113911000001100,Fluticasone 50micrograms/dose / Formoterol 5micrograms/dose inhaler CFC free,21113911000001100,vmp,0302000N0AABLBL +35647511000001107,Fluticasone 125micrograms/dose / Formoterol 5micrograms/dose breath actuated inhaler CFC free,35647511000001107,vmp,0302000N0AABPBP +35647611000001106,Fluticasone 50micrograms/dose / Formoterol 5micrograms/dose breath actuated inhaler CFC free,35647611000001106,vmp,0302000N0AABQBQ +408026006,Mometasone 200micrograms/dose dry powder inhaler,408026006,vmp,0302000R0AAAAAA +408013007,Mometasone 400micrograms/dose dry powder inhaler,408013007,vmp,0302000R0AAACAC +9004511000001107,Ciclesonide 80micrograms/dose inhaler CFC free,9004511000001107,vmp,0302000U0AAAAAA +9004411000001108,Ciclesonide 160micrograms/dose inhaler CFC free,9004411000001108,vmp,0302000U0AAABAB +23661311000001105,Fluticasone furoate 184micrograms/dose / Vilanterol 22micrograms/dose dry powder inhaler,23661311000001105,vmp,0302000V0AAAAAA +23661411000001103,Fluticasone furoate 92micrograms/dose / Vilanterol 22micrograms/dose dry powder inhaler,23661411000001103,vmp,0302000V0AAABAB +34955111000001103,Generic Trelegy Ellipta 92micrograms/dose / 55micrograms/dose / 22micrograms/dose dry powder inhaler,34955111000001103,vmp,0302000V0BCAAA0 +134499006,VMP previous to 35912011000001109,134499006,vmp,0302000K0AAALAL +320487003,VMP previous to 35909011000001104,320487003,vmp,0302000C0AAAJAJ +320488008,VMP previous to 35908911000001108,320488008,vmp,0302000C0AAAQAQ +320490009,VMP previous to 35909211000001109,320490009,vmp,0302000C0AAASAS +320491008,VMP previous to 35908611000001102,320491008,vmp,0302000C0AAAUAU +320492001,VMP previous to 35907811000001102,320492001,vmp,0302000C0AAATAT +320527002,VMP previous to 35907711000001105,320527002,vmp,0302000C0AAAGAG +320528007,VMP previous to 35908311000001107,320528007,vmp,0302000C0AAAHAH +320529004,VMP previous to 35907611000001101,320529004,vmp,0302000C0AAALAL +320530009,VMP previous to 35908211000001104,320530009,vmp,0302000C0AAAKAK +320531008,VMP previous to 35908811000001103,320531008,vmp,0302000C0AAACAC +320532001,VMP previous to 35908511000001101,320532001,vmp,0302000C0AAARAR +320533006,VMP previous to 35909511000001107,320533006,vmp,0302000C0AAAAAA +320565009,VMP previous to 35912111000001105,320565009,vmp,0302000K0AAAKAK +320567001,VMP previous to 35912411000001100,320567001,vmp,0302000K0AAAGAG +320568006,VMP previous to 35912711000001106,320568006,vmp,0302000K0AAAHAH +320571003,VMP previous to 35912511000001101,320571003,vmp,0302000K0AAADAD +320574006,VMP previous to 35912811000001103,320574006,vmp,0302000K0AAAAAA +320580003,VMP previous to 36059911000001104,320580003,vmp,0302000N0AAAAAA +320581004,VMP previous to 36059311000001100,320581004,vmp,0302000N0AAACAC +320582006,VMP previous to 36059411000001107,320582006,vmp,0302000N0AAAEAE +320587000,VMP previous to 36059211000001108,320587000,vmp,0302000N0AAADAD +320588005,VMP previous to 36059511000001106,320588005,vmp,0302000N0AAAFAF +320599007,VMP previous to 36059711000001101,320599007,vmp,0302000N0AAAPAP +320604001,VMP previous to 36565411000001101,320604001,vmp,0302000N0AAATAT +320630002,VMP previous to 35909411000001108,320630002,vmp,0302000C0AABIBI +320631003,VMP previous to 35908011000001109,320631003,vmp,0302000C0AABJBJ +320632005,VMP previous to 35908711000001106,320632005,vmp,0302000C0AABKBK +35912311000001107,VMP previous to 134498003,35912311000001107,vmp,0302000K0AAAMAM +4053811000001101,VMP previous to 408026006,4053811000001101,vmp,0302000R0AAAAAA +4053911000001106,VMP previous to 408013007,4053911000001106,vmp,0302000R0AAACAC +407769008,VMP previous to 35909111000001103,407769008,vmp,0302000C0AABSBS +407770009,VMP previous to 35908411000001100,407770009,vmp,0302000C0AABUBU +408061000,VMP previous to 35909611000001106,408061000,vmp,0302000C0AABEBE +408062007,VMP previous to 35909311000001101,408062007,vmp,0302000C0AABGBG +408063002,VMP previous to 35908111000001105,408063002,vmp,0302000C0AABFBF +408064008,VMP previous to 35907911000001107,408064008,vmp,0302000C0AABHBH +38895411000001109,VMP subsequent to 408026006,38895411000001109,vmp,0302000R0AAAAAA +38895611000001107,VMP subsequent to 408013007,38895611000001107,vmp,0302000R0AAACAC +38896811000001103,VMP subsequent to 134498003,38896811000001103,vmp,0302000K0AAAMAM +38897411000001103,VMP subsequent to 320280004,38897411000001103,vmp,0302000N0AAAZAZ +38897511000001104,VMP subsequent to 320279002,38897511000001104,vmp,0302000N0AAAYAY +38897611000001100,VMP subsequent to 320277000,38897611000001100,vmp,0302000N0AAAXAX +38897711000001109,VMP subsequent to 320605000,38897711000001109,vmp,0302000N0AAAUAU +38897811000001101,VMP subsequent to 320603007,38897811000001101,vmp,0302000N0AAASAS +38897911000001106,VMP subsequent to 320602002,38897911000001106,vmp,0302000N0AAARAR +39110911000001100,VMP subsequent to 320618008,39110911000001100,vmp,0302000N0AABHBH +39111011000001108,VMP subsequent to 320274007,39111011000001108,vmp,0302000N0AABEBE +39111111000001109,VMP subsequent to 320275008,39111111000001109,vmp,0302000N0AABFBF +39111211000001103,VMP subsequent to 320614005,39111211000001103,vmp,0302000N0AABABA +39111311000001106,VMP subsequent to 320276009,39111311000001106,vmp,0302000N0AABGBG +39111411000001104,VMP subsequent to 320615006,39111411000001104,vmp,0302000N0AABCBC +39695611000001100,VMP subsequent to 320535004,39695611000001100,vmp,0302000C0AAAFAF +39695711000001109,VMP subsequent to 320520000,39695711000001109,vmp,0302000C0AAAIAI +42292311000001106,VMP subsequent to 320537007,42292311000001106,vmp,0302000C0AAABAB diff --git a/codelists/opensafely-chronic-cardiac-disease.csv b/codelists/opensafely-chronic-cardiac-disease.csv new file mode 100644 index 0000000..21828c8 --- /dev/null +++ b/codelists/opensafely-chronic-cardiac-disease.csv @@ -0,0 +1,1349 @@ +CTV3ID,CTV3PreferredTermDesc,CTV3Source +14A3.,H/O: myocardial infarct at less than 60,CTV3Map_Code_And_Term +14A4.,H/O: myocardial infarct at greater than 60,CTV3Map_Code_And_Term +14A5.,H/O: angina pectoris,CTV3Map_Code_And_Term +14A6.,H/O: heart failure,CTV3Map_Code_And_Term +14S3.,H/O: heart recipient,CTV3Map_Code_And_Term +323..,ECG: myocardial infarction,CTV3Map_Code_And_Term +3232.,ECG: old myocardial infarction,CTV3Map_Code_And_Term +3233.,ECG: anteroseptal infarction,CTV3Map_Code_And_Term +3234.,ECG:posterior/inferior infarct,CTV3Map_Code_And_Term +3235.,ECG: subendocardial infarct,CTV3Map_Code_And_Term +3236.,ECG: lateral infarction,CTV3Map_Code_And_Term +323Z.,ECG: myocardial infarct NOS,CTV3Map_Code_And_Term +662K.,Angina control,CTV3Map_Code_And_Term +662K0,Angina control - good,CTV3Map_Code_And_Term +662K1,Angina control - poor,CTV3Map_Code_And_Term +662K2,Angina control - improving,CTV3Map_Code_And_Term +662K3,Angina control - worsening,CTV3Map_Code_And_Term +662Kz,Angina control NOS,CTV3Map_Code_And_Term +7900.,Heart and lung transplant,CTV3Map_Code_And_Term +79000,Allotransplant of heart and lung,CTV3Map_Code_And_Term +79001,Revision of transplantation of heart and lung,CTV3_Children +7900y,Other specified transplantation of heart and lung,CTV3_Children +7900z,Transplantation of heart and lung NOS,CTV3Map_Code_And_Term +7901.,Other transplantation of heart,CTV3Map_Code_And_Term +79010,Allotransplantation of heart NEC,CTV3Map_Code_And_Term +79011,Xenotransplant of heart,CTV3Map_Code_And_Term +79012,Implantation of prosthetic heart,CTV3Map_Code_And_Term +79013,Heterotopic allotransplant of heart,CTV3Map_Code_And_Term +79014,Revision of implantation of prosthetic heart,CTV3Map_Code_And_Term +79015,Revision of transplantation of heart NEC,CTV3Map_Code_And_Term +7901y,Other specified other transplantation of heart,CTV3Map_Code_And_Term +7901z,Other transplantation of heart NOS,CTV3Map_Code_And_Term +7902.,Repair of tetralogy of Fallot,CTV3Map_Code_And_Term +7902.,Repair of tetralogy of Fallot,CTV3Map_Code_Only +79020,Correct Fallot tetralogy valved right ventr outflow conduit,CTV3Map_Code_And_Term +79020,Correct Fallot tetralogy valved right ventr outflow conduit,CTV3Map_Code_Only +79021,Correct Fallot tetralogy- right ventric outflow conduit NEC,CTV3Map_Code_And_Term +79021,Correct Fallot tetralogy- right ventric outflow conduit NEC,CTV3Map_Code_Only +79022,Correct Fallot tetralogy- right ventricular outflow patch,CTV3Map_Code_And_Term +79023,Revision of correction of tetralogy of Fallot,CTV3Map_Code_And_Term +79023,Revision of correction of tetralogy of Fallot,CTV3Map_Code_Only +7902y,Other specified correction of tetralogy of Fallot,CTV3Map_Code_And_Term +7902y,Other specified correction of tetralogy of Fallot,CTV3Map_Code_Only +7902z,Correction of tetralogy of Fallot NOS,CTV3Map_Code_And_Term +7902z,Correction of tetralogy of Fallot NOS,CTV3Map_Code_Only +79030,Atrial inversion operation with patch,CTV3Map_Code_And_Term +79030,Atrial inversion operation with patch,CTV3Map_Code_Only +79031,Atrial inversion operation using atrial wall,CTV3Map_Code_And_Term +79031,Atrial inversion operation using atrial wall,CTV3Map_Code_Only +7903y,Atrial inversion op for transposition of great vessels OS,CTV3Map_Code_And_Term +7903y,Atrial inversion op for transposition of great vessels OS,CTV3Map_Code_Only +7903z,Atrial inversion op for transposition of great vessels NOS,CTV3Map_Code_And_Term +7903z,Atrial inversion op for transposition of great vessels NOS,CTV3Map_Code_Only +7904.,Other correction of transposition of great vessels,CTV3Map_Code_And_Term +79040,Arterial switch operation,CTV3Map_Code_And_Term +7904y,Other correction of transposition of great vessels OS,CTV3Map_Code_And_Term +7904z,Other correction of transposition of great vessels NOS,CTV3Map_Code_And_Term +7905.,Repair of total anomalous pulmonary venous connection,CTV3Map_Code_And_Term +79050,Correct total anomal pulm venous connect to supracard vessel,CTV3Map_Code_And_Term +79051,Correct total anomal pulm venous connect to coronary sinus,CTV3Map_Code_And_Term +79052,Correct total anomal pulm venous connect to infradiaph vess,CTV3_Children +7905y,Correction of total anomalous pulmonary venous connection OS,CTV3Map_Code_And_Term +7905z,Correction total anomalous pulmonary venous connection NOS,CTV3Map_Code_And_Term +790H3,Revascularisation of wall of heart,High_Level_SNOMED +792..,Coronary artery operations (& bypass),CTV3_Children +7920.,Saphenous vein graft bypass of coronary artery,CTV3Map_Code_And_Term +7920.,Saphenous vein graft bypass of coronary artery,CTV3Map_Code_Only +79200,Saphenous vein graft replacement of one coronary artery,CTV3Map_Code_And_Term +79201,Saphenous vein graft replacement of two coronary arteries,CTV3Map_Code_And_Term +79202,Saphenous vein graft replacement of three coronary arteries,CTV3Map_Code_And_Term +79203,Saphenous vein graft replacement of four+ coronary arteries,CTV3Map_Code_And_Term +7920y,Saphenous vein graft replacement of coronary artery OS,CTV3Map_Code_And_Term +7920z,Saphenous vein graft replacement coronary artery NOS,CTV3Map_Code_And_Term +7921.,Other autograft replacement of coronary artery,CTV3Map_Code_And_Term +7921.,Other autograft replacement of coronary artery,CTV3Map_Code_Only +79210,Autograft replacement of one coronary artery NEC,CTV3Map_Code_And_Term +79211,Autograft replacement of two coronary arteries NEC,CTV3Map_Code_And_Term +79212,Autograft replacement of three coronary arteries NEC,CTV3Map_Code_And_Term +79213,Autograft replacement of four of more coronary arteries NEC,CTV3Map_Code_And_Term +7921y,Other autograft replacement of coronary artery OS,CTV3Map_Code_And_Term +7921z,Other autograft replacement of coronary artery NOS,CTV3Map_Code_And_Term +7922.,Allograft bypass of coronary artery,CTV3Map_Code_And_Term +7922.,Allograft bypass of coronary artery,CTV3Map_Code_Only +79220,Allograft replacement of one coronary artery,CTV3Map_Code_And_Term +79221,Allograft replacement of two coronary arteries,CTV3Map_Code_And_Term +79222,Allograft replacement of three coronary arteries,CTV3Map_Code_And_Term +79223,Allograft replacement of four or more coronary arteries,CTV3Map_Code_And_Term +7922y,Other specified allograft replacement of coronary artery,CTV3Map_Code_And_Term +7922z,Allograft replacement of coronary artery NOS,CTV3Map_Code_And_Term +7923.,Prosthetic bypass of coronary artery,CTV3Map_Code_And_Term +7923.,Prosthetic bypass of coronary artery,CTV3Map_Code_Only +79230,Prosthetic replacement of one coronary artery,CTV3Map_Code_And_Term +79231,Prosthetic replacement of two coronary arteries,CTV3Map_Code_And_Term +79232,Prosthetic replacement of three coronary arteries,CTV3Map_Code_And_Term +79233,Prosthetic replacement of four or more coronary arteries,CTV3Map_Code_And_Term +7923y,Other specified prosthetic replacement of coronary artery,CTV3_Children +7923z,Prosthetic replacement of coronary artery NOS,CTV3Map_Code_And_Term +7924.,Revision of bypass for coronary artery,CTV3Map_Code_And_Term +79240,Revision of bypass for one coronary artery,CTV3Map_Code_And_Term +79241,Revision of bypass for two coronary arteries,CTV3Map_Code_And_Term +79242,Revision of bypass for three coronary arteries,CTV3Map_Code_And_Term +79243,Revision of bypass for four or more coronary arteries,CTV3Map_Code_And_Term +79244,Revision of connection of thoracic artery to coronary artery,CTV3_Children +79245,Revision of implantation of thoracic artery into heart,CTV3_Children +7924y,Other specified revision of bypass for coronary artery,CTV3Map_Code_And_Term +7924z,Revision of bypass for coronary artery NOS,CTV3Map_Code_And_Term +7925.,Connection of mammary artery to coronary artery,CTV3Map_Code_And_Term +7925.,Connection of mammary artery to coronary artery,CTV3Map_Code_Only +79250,Mamm to coron art anast: [double] or [LIMA seq]/[RIMA seq],CTV3_Children +79251,Double implant of mammary arteries into coronary arteries,CTV3Map_Code_And_Term +79252,Single anast mammary art to left ant descend coronary art,CTV3_Children +79253,Single mammary-coronary art anast: [NEC] or [LIMA] or [RIMA],CTV3_Children +79254,Single implantation of mammary artery into coronary artery,CTV3Map_Code_And_Term +7925y,Connection of mammary artery to coronary artery OS,CTV3Map_Code_And_Term +7925z,Connection of mammary artery to coronary artery NOS,CTV3Map_Code_And_Term +7926.,Connection of other thoracic artery to coronary artery,CTV3Map_Code_And_Term +79260,Double anastom thoracic arteries to coronary arteries NEC,CTV3Map_Code_And_Term +79261,Double implant thoracic arteries into coronary arteries NEC,CTV3_Children +79262,Single anastomosis of thoracic artery to coronary artery NEC,CTV3Map_Code_And_Term +79263,Single implantation thoracic artery into coronary artery NEC,CTV3Map_Code_And_Term +7926y,Connection of other thoracic artery to coronary artery OS,CTV3_Children +7926z,Connection of other thoracic artery to coronary artery NOS,CTV3Map_Code_And_Term +7927.,Other open operations on coronary artery,CTV3_Children +79270,Repair of arteriovenous fistula of coronary artery,CTV3_Children +79271,Repair of coronary artery aneurysm,CTV3_Children +79272,Transection of coronary artery muscle bridge,CTV3_Children +79273,Transposition of coronary artery NEC,CTV3_Children +79275,Open angioplasty of coronary artery,CTV3Map_Code_And_Term +7927y,Other specified other open operation on coronary artery,CTV3_Children +7927z,Other open operation on coronary artery NOS,CTV3_Children +7928.,Percutaneous balloon angioplasty of coronary artery,CTV3_Children +79280,Percut transluminal balloon angioplasty one coronary artery,CTV3_Children +79281,Percut translum balloon angioplasty mult coronary arteries,CTV3_Children +79282,Percut translum balloon angioplasty bypass graft coronary a,CTV3_Children +7928y,Transluminal balloon angioplasty of coronary artery OS,CTV3_Children +7928z,Transluminal balloon angioplasty of coronary artery NOS,CTV3_Children +7929.,Other therapeutic transluminal operations on coronary artery,CTV3_Children +79290,Percutaneous transluminal laser coronary angioplasty,CTV3_Children +79291,Percut transluminal coronary thrombolysis with streptokinase,CTV3Map_Code_And_Term +79291,Percut transluminal coronary thrombolysis with streptokinase,CTV3Map_Code_Only +79292,Percut translum inject therap subst to coronary artery NEC,CTV3_Children +79293,Percutaneous rotational coronary endarterectomy,CTV3_Children +7929y,Other therapeutic transluminal op on coronary artery OS,CTV3_Children +7929z,Other therapeutic transluminal op on coronary artery NOS,CTV3_Children +792A.,Diagnostic transluminal operations on coronary artery,CTV3_Children +792A0,Percutaneous transluminal angioscopy,CTV3_Children +792Ay,Diagnostic transluminal operation on coronary artery OS,CTV3_Children +792Az,Diagnostic transluminal operation on coronary artery NOS,CTV3_Children +792B.,Repair of coronary artery NEC,CTV3_Children +792B0,Endarterectomy of coronary artery NEC,CTV3_Children +792By,Other specified repair of coronary artery,CTV3_Children +792Bz,Repair of coronary artery NOS,CTV3_Children +792C.,Other replacement of coronary artery,CTV3Map_Code_And_Term +792C0,Replacement of coronary arteries using multiple methods,CTV3Map_Code_And_Term +792Cy,Other specified replacement of coronary artery,CTV3Map_Code_And_Term +792Cz,Replacement of coronary artery NOS,CTV3Map_Code_And_Term +792D.,Other bypass of coronary artery,CTV3Map_Code_And_Term +792Dy,Other specified other bypass of coronary artery,CTV3Map_Code_And_Term +792Dz,Other bypass of coronary artery NOS,CTV3Map_Code_And_Term +792y.,Other specified operations on coronary artery,CTV3_Children +792z.,Coronary artery operations NOS,CTV3_Children +79332,Transluminal maintenance of heart assist system,CTV3Map_Code_And_Term +C3733,Familial amyloid cardiomyopathy,High_Level_SNOMED +D4102,Polycythaemia due to cyanotic heart disease,CTV3Map_Code_And_Term +G1...,Chronic rheumatic heart disease,CTV3Map_Code_And_Term +G10..,Chronic rheumatic pericarditis,CTV3_Children +G100.,Adherent rheumatic pericardium,CTV3_Children +G101.,Chronic rheumatic mediastinopericarditis,CTV3_Children +G102.,Chronic rheumatic myopericarditis,CTV3_Children +G10z.,Chronic rheumatic pericarditis NOS,CTV3_Children +G14..,Other chronic rheumatic endocardial disease,CTV3_Children +G1y..,Other specified chronic rheumatic heart disease,CTV3_Children +G1yz.,Other and unspecified rheumatic heart disease,CTV3_Children +G1yz0,Rheumatic heart disease unspecified,CTV3_Children +G1yz1,Rheumatic left ventricular failure,CTV3Map_Code_And_Term +G1yzz,Other rheumatic heart disease NOS,CTV3_Children +G1z..,Chronic rheumatic heart disease NOS,CTV3_Children +G21..,Hypertensive heart disease,QOF +G210.,Malignant hypertensive heart disease,QOF +G2100,Malignant hypertensive heart disease without CCF,QOF +G2101,Malignant hypertensive heart disease with CCF,CTV3Map_Code_And_Term +G210z,Malignant hypertensive heart disease NOS,QOF +G211.,Benign hypertensive heart disease,QOF +G2110,Benign hypertensive heart disease without CCF,QOF +G2111,Benign hypertensive heart disease with CCF,CTV3Map_Code_And_Term +G211z,Benign hypertensive heart disease NOS,QOF +G21z.,Hypertensive heart disease NOS,QOF +G21z0,"Hypertensiv:[cardiomeg][heart dis NOS, no congest card fail]",QOF +G21z1,Hypertensive heart disease NOS with CCF,CTV3Map_Code_And_Term +G23..,Hypertensive heart and renal disease,QOF +G230.,Malignant hypertensive heart and renal disease,QOF +G231.,Benign hypertensive heart and renal disease,QOF +G232.,Hypertensive heart&renal dis wth (congestive) heart failure,CTV3Map_Code_And_Term +G233.,Hypertensive heart and renal disease with renal failure,CTV3Map_Code_And_Term +G234.,Hyperten heart&renal dis+both(congestv)heart and renal fail,CTV3Map_Code_And_Term +G23z.,Hypertensive heart and renal disease NOS,QOF +G3...,Ischaemic heart disease (& [arteriosclerotic]),CTV3_Children +G30..,(Myocard inf (& [ac][silent][card rupt])) or (coron thromb),CTV3_Children +G300.,Acute anterolateral myocardial infarction,CTV3Map_Code_And_Term +G301.,Other specified anterior myocardial infarction,CTV3Map_Code_And_Term +G3010,Acute anteroapical infarction,CTV3Map_Code_And_Term +G3011,Acute anteroseptal myocardial infarction,CTV3Map_Code_And_Term +G301z,Anterior myocardial infarction NOS,CTV3Map_Code_And_Term +G302.,Acute inferolateral myocardial infarction,CTV3Map_Code_And_Term +G303.,Acute inferoposterior infarction,CTV3Map_Code_And_Term +G304.,Posterior myocardial infarction NOS,CTV3Map_Code_And_Term +G305.,Lateral myocardial infarction NOS,CTV3Map_Code_And_Term +G306.,True posterior myocardial infarction,CTV3Map_Code_And_Term +G307.,Acute subendocardial infarction,CTV3Map_Code_And_Term +G308.,Inferior myocardial infarction NOS,CTV3Map_Code_And_Term +G30y.,Other acute myocardial infarction,CTV3Map_Code_And_Term +G30y0,Acute atrial infarction,CTV3Map_Code_And_Term +G30y1,Acute papillary muscle infarction,CTV3Map_Code_And_Term +G30y2,Acute septal infarction,CTV3Map_Code_And_Term +G30yz,Other acute myocardial infarction NOS,CTV3Map_Code_And_Term +G30z.,Acute myocardial infarction NOS,CTV3Map_Code_And_Term +G31..,Other acute and subacute ischaemic heart disease,CTV3Map_Code_And_Term +G310.,Post-myocardial infarction syndrome,CTV3Map_Code_And_Term +G310.,Post-myocardial infarction syndrome,CTV3Map_Code_Only +G311.,(Angina:[cresc][unstabl][at rest])(preinfar syn)(imp infarc),CTV3_Children +G3110,Aborted myocardial infarction,CTV3Map_Code_And_Term +G3110,Aborted myocardial infarction,CTV3Map_Code_Only +G311z,Preinfarction syndrome NOS,CTV3Map_Code_And_Term +G312.,Coronary thrombosis not resulting in myocardial infarction,CTV3Map_Code_And_Term +G31y0,Acute coronary insufficiency,CTV3Map_Code_And_Term +G31y1,Microinfarction of heart,CTV3Map_Code_And_Term +G31y2,Subendocardial ischaemia,CTV3Map_Code_And_Term +G31yz,Other acute and subacute ischaemic heart disease NOS,CTV3Map_Code_And_Term +G32..,Myocard infarct: [old] or [healed] or [personal history of],QOF +G33..,Angina,CTV3Map_Code_And_Term +G330.,Angina decubitus,CTV3Map_Code_And_Term +G3300,Nocturnal angina,CTV3Map_Code_And_Term +G330z,Angina decubitus NOS,CTV3Map_Code_And_Term +G331.,Prinzmetal's angina,CTV3Map_Code_And_Term +G331.,Prinzmetal's angina,CTV3Map_Code_Only +G33z.,Angina pectoris NOS,CTV3Map_Code_And_Term +G33z0,Status anginosus,CTV3Map_Code_And_Term +G33z1,Stenocardia,CTV3Map_Code_And_Term +G33z2,Syncope anginosa,CTV3Map_Code_And_Term +G33z3,Exercise-induced angina,CTV3_Children +G33zz,Angina pectoris NOS,CTV3_Children +G34..,Other chronic ischaemic heart disease,CTV3Map_Code_And_Term +G340.,Coronary (atheroscl or artery dis) or triple vess dis heart,CTV3_Children +G3400,Single coronary vessel disease,CTV3Map_Code_And_Term +G3401,Double coronary vessel disease,CTV3Map_Code_And_Term +G341.,Aneurysm of heart,CTV3_Children +G3410,Ventricular cardiac aneurysm,CTV3_Children +G3411,Mural cardiac aneurysm (& [other]),CTV3_Children +G3412,Coronary artery aneurysm,High_Level_SNOMED +G3413,Acquired atrioventricular fistula of heart,CTV3_Children +G341z,Aneurysm of heart NOS,CTV3_Children +G343.,Generalised ischaemic myocardial dysfunction,CTV3Map_Code_And_Term +G34y.,Other specified chronic ischaemic heart disease,CTV3Map_Code_And_Term +G34y0,Chronic myocardial ischaemia,CTV3_Children +G34y1,Chronic myocardial ischaemia,CTV3Map_Code_And_Term +G34yz,Other specified chronic ischaemic heart disease NOS,CTV3Map_Code_And_Term +G34z.,Other chronic ischaemic heart disease NOS,CTV3Map_Code_And_Term +G35..,Subsequent myocardial infarction,CTV3Map_Code_And_Term +G350.,Subsequent myocardial infarction of anterior wall,CTV3Map_Code_And_Term +G351.,Subsequent myocardial infarction of inferior wall,CTV3Map_Code_And_Term +G353.,Subsequent myocardial infarction of other sites,CTV3Map_Code_And_Term +G36..,Certain current complication follow acute myocardial infarct,CTV3Map_Code_And_Term +G360.,Haemopericardium/current comp folow acut myocard infarct,CTV3Map_Code_And_Term +G361.,Atrial septal defect/curr comp folow acut myocardal infarct,CTV3Map_Code_And_Term +G363.,Ruptur cardiac wall w'out haemopericard/cur comp fol ac MI,CTV3Map_Code_And_Term +G364.,Ruptur chordae tendinae/curr comp fol acute myocard infarct,CTV3Map_Code_And_Term +G365.,Rupture papillary muscle/curr comp fol acute myocard infarct,CTV3Map_Code_And_Term +G366.,"Thrombosis atrium,auric append&vent/curr comp foll acute MI",CTV3Map_Code_And_Term +G3y..,Other specified ischaemic heart disease,CTV3Map_Code_And_Term +G3z..,Ischaemic heart disease NOS,CTV3Map_Code_And_Term +G400.,Acute cor pulmonale,High_Level_SNOMED +G41..,Chronic pulmonary heart disease,CTV3Map_Code_And_Term +G41y.,Other chronic pulmonary heart disease,CTV3Map_Code_And_Term +G41yz,Other chronic pulmonary heart disease NOS,CTV3_Children +G41z.,Chronic cor pulmonale (& [NOS]),CTV3_Children +G5102,Chronic bacterial endocarditis,QOF +G54z2,Chronic cardiac valvulitis NOS,QOF +G55..,Cardiomyopathy,High_Level_SNOMED +G550.,Restrictive cardiomyopathy with endomyocardial fibrosis,High_Level_SNOMED +G551.,Hypertrophic obstructive cardiomyopathy,High_Level_SNOMED +G552.,(Becker's disease) or (obscure African cardiomyopathy),High_Level_SNOMED +G554.,Other primary cardiomyopathies,High_Level_SNOMED +G5540,(Congestive obstructive) or (congestive cardiomyopathy),High_Level_SNOMED +G5541,Restrictive cardiomyopathy,High_Level_SNOMED +G5542,Familial cardiomyopathy,High_Level_SNOMED +G5543,Hypertrophic cardiomyopathy without obstruction,High_Level_SNOMED +G5544,Primary dilated cardiomyopathy,CTV3Map_Code_And_Term +G554z,Other primary cardiomyopathy NOS,High_Level_SNOMED +G555.,Alcohol-induced heart muscle disease,High_Level_SNOMED +G557.,Nutritional and metabolic cardiomyopathies,High_Level_SNOMED +G5572,Cardiac glycogenosis,High_Level_SNOMED +G5574,Mucopolysaccharidosis cardiomyopathy,High_Level_SNOMED +G557z,(Heart:[fat infil][fat degen]) or (nutr/met cardmyopath NOS),High_Level_SNOMED +G558.,Cardiomyopathy in disease EC,High_Level_SNOMED +G5580,Cardiomyopathy in Friedreich's ataxia,High_Level_SNOMED +G5581,Cardiomyopathy in myotonic dystrophy,High_Level_SNOMED +G5582,Dystrophic cardiomyopathy,High_Level_SNOMED +G558z,"Cardiomyopathy in diseases EC, NOS",High_Level_SNOMED +G55y.,Secondary cardiomyopathy: [dilated] or [NOS],High_Level_SNOMED +G55y0,Cardiomyopathy due to drugs and other external agents,QOF +G55z.,Cardiomyopathy NOS,High_Level_SNOMED +G58..,Heart failure,CTV3Map_Code_And_Term +G58..,Heart failure,CTV3Map_Code_Only +G580.,Heart failure: [right] or [congestive],CTV3_Children +G5800,Acute congestive heart failure,CTV3Map_Code_And_Term +G5801,Chronic congestive heart failure,CTV3Map_Code_And_Term +G5802,Decompensated cardiac failure,CTV3Map_Code_And_Term +G5803,Compensated cardiac failure,CTV3Map_Code_And_Term +G581.,(L ventric:[fail][imp func]) or (card asth) or (ac pulm oed),High_Level_SNOMED +G5810,Acute left ventricular failure,CTV3_Children +G582.,Acute heart failure,CTV3_Children +G58z.,Heart: [weak] or [failure NOS],QOF +G5y1.,Myocardial degeneration,High_Level_SNOMED +G5y2.,Cardiovascular arteriosclerosis unspecified,CTV3_Children +G5y4.,Post cardiac operation functional disturbance,CTV3_Children +G5y40,Postcardiotomy syndrome,CTV3_Children +G5y4z,Post cardiac operation heart failure NOS,CTV3Map_Code_And_Term +G5yy6,Atrial thrombosis,CTV3_Children +G700.,(Aortic atherosclerosis) or (aorto-iliac disease),CTV3_Children +Gyu14,[X]Other specified rheumatic heart diseases,CTV3_Children +Gyu30,[X]Other forms of angina pectoris,CTV3Map_Code_And_Term +Gyu31,[X]Other current complicatns following acute myocard infarct,CTV3_Children +Gyu32,[X]Other forms of acute ischaemic heart disease,CTV3Map_Code_And_Term +Gyu33,[X]Other forms of chronic ischaemic heart disease,CTV3Map_Code_And_Term +Gyu34,[X]Acute transmural myocardial infarction of unspecif site,CTV3Map_Code_And_Term +Gyu35,[X]Subsequent myocardial infarction of other sites,CTV3Map_Code_And_Term +Gyu36,[X]Subsequent myocardial infarction of unspecified site,CTV3Map_Code_And_Term +Gyu5M,[X]Other hypertrophic cardiomyopathy,High_Level_SNOMED +Gyu5N,[X]Other restrictive cardiomyopathy,High_Level_SNOMED +Gyu5P,[X]Other cardiomyopathies,High_Level_SNOMED +Gyu5Q,[X]Cardiomyopathy in infectious+parasitic diseases CE,High_Level_SNOMED +Gyu5R,[X]Cardiomyopathy in metabolic diseases classified elsewhere,High_Level_SNOMED +Gyu5S,[X]Cardiomyopathy in nutritional diseases CE,High_Level_SNOMED +Gyu5T,[X]Cardiomyopathy in other diseases classified elsewhere,High_Level_SNOMED +H541z,Pulmonary oedema NOS,CTV3Map_Code_And_Term +H584.,Acute pulmonary oedema unspecified,CTV3_Children +H584z,Acute pulmonary oedema NOS,CTV3_Children +L09y1,Cardiac arrest following abortive pregnancy,CTV3Map_Code_And_Term +L09y2,Cardiac failure following abortive pregnancy,High_Level_SNOMED +L1280,Pre-exist hyperten heart dis compl preg childbth+puerperium,QOF +L1281,Pre-exist hyperten heart renal dis comp preg chldbirth/puerp,QOF +P50..,Aortopulmonary septal anomaly (& [common trunk] or [defect]),CTV3_Children +P50z.,Common aortopulmonary trunk NOS,CTV3_Children +P51..,Discordant ventriculoarterial connection,CTV3Map_Code_And_Term +P510.,Total great vessel transposition,CTV3Map_Code_And_Term +P511.,Double outlet right ventricle,CTV3Map_Code_And_Term +P5110,"Double outlet right ventricle, unspecified",CTV3_Children +P5111,Dextratransposition of aorta,CTV3Map_Code_And_Term +P5112,Incomplete great vessel transposition,CTV3Map_Code_And_Term +P5113,Double outlet rt ventricle + subpulm ventriculr septl defect,CTV3Map_Code_And_Term +P511z,Double outlet right ventricle NOS,CTV3Map_Code_And_Term +P512.,Congenitally corrected transposition of great arteries,CTV3Map_Code_And_Term +P51y.,(Oth spec transposit great vessels) or (transposit of aorta),CTV3_Children +P51z.,(Great vessel transpos NOS) or (transpos arterial trunk NEC),CTV3_Children +P52..,Tetralogy of Fallot,CTV3Map_Code_And_Term +P520.,Tetralog Fallot: [unsp][ventric sept def][dextraposit aorta],CTV3_Children +P521.,Pentalogy of Fallot,CTV3Map_Code_And_Term +P52z.,Tetralogy of Fallot NOS,CTV3Map_Code_And_Term +P53..,[Common] and [ventricle],QOF +P54..,Ventricular septal defect,QOF +P540.,"Ventricular septal defect, unspecified",QOF +P541.,Interventricular septal defect,QOF +P542.,Right sided atrium connecting to left ventricle,CTV3Map_Code_And_Term +P543.,Eisenmenger's complex,CTV3Map_Code_And_Term +P544.,Vent septal defect between left ventricle and right atrium,CTV3Map_Code_And_Term +P545.,Small ventricular septal defect,CTV3Map_Code_And_Term +P54y.,Other specified ventricular septal defect,QOF +P54z.,Ventricular septal defect NOS,QOF +P550.,Septal def: [interaur][atrial NOS][auric NOS][interatr NEC],QOF +P553.,Lutembacher's syndrome,QOF +P56..,Endocardial cushion defects,QOF +P560.,"Endocardial cushion defects, unspecified",QOF +P56y.,Other specified endocardial cushion defects,QOF +P56z.,Endocardial cushion defects NOS,QOF +P56z2,Common atrioventricular-type ventricular septal defect,CTV3_Children +P57..,Cor biloculare,QOF +P5y..,Other heart bulb and septal closure defect,CTV3_Children +P5z..,Heart bulb or septal closure defects NOS,CTV3_Children +P6...,Other congenital heart anomalies,QOF +P60..,Congenital pulmonary valve abnormality,QOF +P600.,"Pulmonary valve anomaly, unspecified",QOF +P601.,Congenital atresia of the pulmonary valve,QOF +P6010,Hypoplasia of pulmonary valve,QOF +P601z,Congenital atresia of pulmonary valve NOS,QOF +P602.,Congenital pulmonary valve stenosis,QOF +P6020,Congenital fusion of pulmonic cusps,QOF +P6021,Congenital fusion of pulmonary valve segment,QOF +P602z,Congenital pulmonary stenosis NOS,QOF +P603.,(Right hypoplastic heart synd) or (pseudotruncus arteriosus),QOF +P60z.,Other pulmonary valve anomalies,QOF +P60z0,Congenital insufficiency of the pulmonary valve,QOF +P60z1,Fallot's trilogy,CTV3Map_Code_And_Term +P60z2,Supernumerary pulmonary valve cusps,QOF +P60zz,Other pulmonary valve anomaly NOS,QOF +P61..,Congenital tricuspid atresia and stenosis,QOF +P610.,Tricuspid atresia,QOF +P611.,Congenital tricuspid stenosis,QOF +P61z.,Congenital tricuspid atresia or stenosis NOS,QOF +P62..,Ebstein's anomaly of tricuspid valve,QOF +P63..,Congenital aortic valve stenosis,QOF +P64..,Congenital aortic valve insufficiency,QOF +P640.,"Congenital aortic valve insufficiency, unspecified",QOF +P641.,Bicuspid aortic valve,QOF +P64z.,Congenital aortic valve insufficiency NOS,QOF +P65..,Congenital mitral stenosis,QOF +P650.,"Congenital mitral stenosis, unspecified",QOF +P651.,Fused commissure of the mitral valve,QOF +P652.,Parachute malformation of mitral valve,QOF +P653.,Supernumerary cusps of the mitral valve,QOF +P65z.,Congenital mitral stenosis NOS,QOF +P66..,Congenital mitral regurgitation,QOF +P67..,Hypoplastic left heart syndrome,CTV3Map_Code_And_Term +P6y..,Other specified heart anomalies,CTV3Map_Code_Only +P6y0.,Subaortic stenosis,QOF +P6y1.,Cor triatriatum,QOF +P6y2.,Pulmonary infundibular stenosis,QOF +P6y3.,Obstructive heart anomaly NEC,CTV3Map_Code_And_Term +P6y30,Paper thin right ventricle,CTV3Map_Code_And_Term +P6y3z,Obstructive heart anomaly NEC NOS,CTV3Map_Code_And_Term +P6y4.,Coronary artery abnormality,QOF +P6y40,Congenital absence of coronary artery,QOF +P6y41,Single coronary artery,QOF +P6y42,Coronary artery from aorta,QOF +P6y43,Anomalous origin of coronary artery from pulmonary trunk,QOF +P6y44,Anomalous congen coronary communication (& arteriovenous),High_Level_SNOMED +P6y45,Congenital coronary aneurysm,QOF +P6y46,Congenital stricture of coronary artery,QOF +P6y4z,Coronary artery anomaly NOS,QOF +P6y60,Heart predominantly in right hemithorax,QOF +P6y62,Mesocardia,QOF +P6y63,Extrathoracic heart,CTV3Map_Code_And_Term +P6y64,Abdominal heart,CTV3Map_Code_And_Term +P6y6z,Heart or cardiac apex malposition NOS,QOF +P6yy.,(Specif heart anom ([vars]) or (hypoplast aort orif/valve),QOF +P6yy0,Atresia of cardiac vein,CTV3_Children +P6yy1,Hypoplasia of cardiac vein,CTV3_Children +P6yy2,Congenital cardiomegaly,CTV3_Children +P6yy3,Congenital left ventricular diverticulum,QOF +P6yy5,Congenital anomaly of myocardium,CTV3_Children +P6yy6,Congenital aneurysm of heart,CTV3_Children +P6yy7,Atresia of heart valve NEC,CTV3_Children +P6yy8,Cor triloculare,CTV3_Children +P6yy9,Congenital epicardial cyst,CTV3_Children +P6yyA,Hemicardia,CTV3Map_Code_And_Term +P6yyB,Supernumerary heart valve cusps NEC,CTV3_Children +P6yyD,Fusion of heart valve cusps NEC (& [tricuspid]),QOF +P6yyz,Other specified heart anomalies NOS,CTV3_Children +P6z..,(Congenital heart anomaly NOS) or (Chiari's malformation),QOF +P6z0.,Unspecified anomaly of heart valve,CTV3_Children +P6z2.,Acyanotic congenital heart disease NOS,CTV3_Children +P6zz.,Congenital heart anomaly NOS,QOF +P71..,Aortic coarctation,QOF +P710.,"Hypoplasia of aortic arch, unspecified",QOF +P713.,Interrupted aortic arch,QOF +P71z.,Coarctation of aorta NOS,QOF +P72..,(Other anomalies aorta) or (anomalies aorta excl coarction),QOF +P720.,"Anomaly of aorta, unspecified",QOF +P7210,Anomalous origin of the aortic arch,QOF +P7211,Aorta [dextraposition] or [overriding],QOF +P7212,(Double aortic arch) or (vascular ring),QOF +P7214,Persistent aortic arch convolutions,QOF +P7215,Persistent right aortic arch,QOF +P7216,"Vascular ring, aorta",QOF +P7217,Overriding aorta,CTV3Map_Code_And_Term +P7217,Overriding aorta,CTV3Map_Code_Only +P721z,Aortic arch anomalies NOS,QOF +P722.,Atresia and stenosis of aorta,QOF +P7220,Congenital absence of aorta,QOF +P7221,Aplasia of aorta,QOF +P7224,Aortic stenosis: [supra-valvula] or [congenital ascending],QOF +P7225,Atresia of aorta,QOF +P722z,Atresia or stenosis of aorta NOS,QOF +P72z.,Other anomalies of aorta NOS,QOF +P72z0,Sinus of Valsalva aneurysm,QOF +P73..,Pulmonary artery abnormality,QOF +P730.,"Pulmonary artery anomaly, unspecified",QOF +P731.,Pulmonary artery absent,CTV3Map_Code_And_Term +P731.,Pulmonary artery absent,CTV3Map_Code_Only +P732.,Pulmonary artery atresia,CTV3Map_Code_And_Term +P733.,Coarctation of the pulmonary artery,CTV3Map_Code_And_Term +P734.,Pulmonary artery hypoplasia,CTV3Map_Code_And_Term +P735.,Pulmonary artery: [stenosis] or [congenital stricture],CTV3_Children +P738.,Atresia of pulmonary artery with septal defect,CTV3Map_Code_And_Term +P73y.,Other specified anomaly of pulmonary artery,QOF +P73z.,Pulmonary artery anomaly NOS,QOF +P74..,Anomalies of great veins,QOF +P740.,"Anomaly of great veins, unspecified",QOF +P7400,"Anomaly of the pulmonary veins, unspecified",QOF +P7401,"Anomaly of the vena cava, unspecified",QOF +P740z,"Unspecified anomaly of the great veins, NOS",QOF +P741.,Total anomalous pulmonary venous connection,CTV3Map_Code_And_Term +P7410,Subdiaphragmatic total anomalous pulmonary venous return,CTV3Map_Code_And_Term +P7411,Supradiaphragmatic total anomalous pulmonary venous return,CTV3Map_Code_And_Term +P741z,Total anomalous pulmonary venous return NOS,CTV3Map_Code_And_Term +P74z0,Absence of inferior vena cava,QOF +P74z1,Absence of superior vena cava,QOF +P74z2,Congenital inferior vena cava stenosis,QOF +P74z3,Congenital superior vena cava stenosis,QOF +P74z4,Persistent left posterior cardinal vein,QOF +P74z5,Persistent left superior vena cava,QOF +P74z6,Scimitar syndrome,CTV3Map_Code_And_Term +P74z7,Transposition of pulmonary veins,QOF +P74z8,Pulmonary vein atresia,CTV3Map_Code_And_Term +P74zz,Other great vein anomaly NOS,QOF +PK34.,Situs inversus with levocardia,QOF +PK35.,Kartageners syndrome,QOF +PKy71,Holt-Oram syndrome,QOF +PKyz1,Acardia,CTV3_Children +Pyu20,[X]Other cong malformatn of cardiac chambers & connections,QOF +Pyu21,[X]Other congenital malformations of cardiac septa,QOF +Pyu22,[X]Other congenital malformations of pulmonary valve,QOF +Pyu23,[X]Other congenital malformations of tricuspid valve,QOF +Pyu24,[X]Other congenital malformations of aortic & mitral valves,QOF +Pyu25,[X]Other specified congenital malformations of the heart,QOF +Pyu26,[X]Other congenital malformations of aorta,QOF +Pyu27,[X]Other congenital malformations of pulmonary artery,QOF +Pyu28,[X]Other congenital malformations of great arteries,QOF +Pyu29,[X]Other congenital malformations of great veins,QOF +Pyu2G,"[X]Congenital malformation of tricuspid valve, unspecified",QOF +Pyu2H,[X]Congenital malformation of aortic and mitral valves unsp,QOF +Pyu2J,"[X]Congenital malformation of great arteries, unspecified",QOF +Q48y1,Congenital cardiac failure,CTV3Map_Code_And_Term +R2y10,[D]Cardiorespiratory failure,High_Level_SNOMED +SP003,Mechanical complication of coronary bypass,CTV3Map_Code_And_Term +SP084,Heart transplant failure and rejection,CTV3Map_Code_And_Term +SP085,Heart-lung transplant failure and rejection,CTV3Map_Code_And_Term +SP111,[Cardiac insuffic] or [heart fail] as a complication of care,High_Level_SNOMED +SP2y1,Postcardiotomy syndrome,CTV3_Children +TB000,"Heart transplant with complication, without blame",CTV3Map_Code_And_Term +Ua1eH,Ischaemic chest pain,CTV3Map_Code_And_Term +X00tE,Coronary artery bypass grafting,CTV3Map_Code_And_Term +X00tE,Coronary artery bypass grafting,CTV3Map_Code_Only +X00tG,Coronary artery bypass graft x 1,CTV3_Children +X00tH,Coronary artery bypass grafts x 2,CTV3_Children +X00tI,Coronary artery bypass grafts x 3,CTV3_Children +X00tJ,Coronary artery bypass grafts x 4,CTV3_Children +X00tK,Coronary artery bypass grafts x 5,CTV3_Children +X00tL,Coronary artery bypass grafts greater than 5,CTV3_Children +X00tM,Endarterectomy of coronary artery,CTV3_Children +X00tN,Open coronary artery endarterectomy,CTV3_Children +X00tO,Percutaneous endarterectomy of coronary artery,CTV3_Children +X00tP,Percutaneous directional coronary atherectomy,CTV3_Children +X00tQ,Percutaneous low speed rotational coronary atherectomy,CTV3_Children +X00tR,Percutaneous high speed rotational coronary atherectomy,CTV3_Children +X00tS,Angioplasty of coronary artery,CTV3_Children +X00tT,Percutaneous thrombolysis of coronary artery,CTV3_Children +X00tU,Insertion of coronary artery stent,CTV3_Children +X00tX,Angioscopy of coronary artery,CTV3_Children +X00tY,Patch repair of coronary artery,CTV3_Children +X00tZ,Operation for coronary artery fistula,CTV3_Children +X00ta,Open operation for coronary artery fistula,CTV3_Children +X00tb,Embolisation of coronary artery fistula,CTV3_Children +X00tc,Ligation of coronary artery,CTV3_Children +X00td,Reimplantation of coronary artery,CTV3_Children +X00te,Removal of foreign body from coronary artery,CTV3_Children +X010U,Repair of Fallot-type double outlet right ventricle,CTV3Map_Code_And_Term +X010l,Repair of double outlet right ventricle,CTV3Map_Code_And_Term +X010m,Rastelli operation,CTV3_Children +X010n,Rev operation,CTV3_Children +X0111,Take down of total cavopulmonary connection,CTV3Map_Code_And_Term +X102X,Acute pulmonary oedema,CTV3Map_Code_Only +X102Y,Acute cardiac pulmonary oedema,CTV3Map_Code_And_Term +X102Y,Acute cardiac pulmonary oedema,CTV3Map_Code_Only +X2006,Triple vessel disease of the heart,CTV3Map_Code_And_Term +X2006,Triple vessel disease of the heart,CTV3Map_Code_Only +X2007,Angina at rest,CTV3Map_Code_And_Term +X2007,Angina at rest,CTV3Map_Code_Only +X2008,Stable angina,CTV3Map_Code_And_Term +X2009,Unstable angina,CTV3Map_Code_And_Term +X2009,Unstable angina,CTV3Map_Code_Only +X200A,New onset angina,CTV3Map_Code_And_Term +X200B,Coronary spasm,CTV3Map_Code_And_Term +X200C,Myocardial ischaemia,CTV3_Children +X200D,Silent myocardial ischaemia,CTV3Map_Code_And_Term +X200E,Myocardial infarction,CTV3Map_Code_And_Term +X200E,Myocardial infarction,CTV3Map_Code_Only +X200G,Acute Q wave infarction - anteroseptal,CTV3_Children +X200H,Acute non-Q wave infarction - anteroseptal,CTV3_Children +X200I,Acute Q wave infarction - anterolateral,CTV3_Children +X200J,Acute non-Q wave infarction - anterolateral,CTV3_Children +X200K,Acute inferior myocardial infarction,CTV3_Children +X200L,Acute Q wave infarction - inferior,CTV3_Children +X200M,Acute non-Q wave infarction - inferior,CTV3_Children +X200N,Acute Q wave infarction - inferolateral,CTV3_Children +X200O,Acute non-Q wave infarction - inferolateral,CTV3_Children +X200P,Acute lateral myocardial infarction,CTV3_Children +X200Q,Acute Q wave infarction - lateral,CTV3_Children +X200R,Acute non-Q wave infarction - lateral,CTV3_Children +X200S,Acute widespread myocardial infarction,CTV3_Children +X200T,Acute Q wave infarction - widespread,CTV3_Children +X200U,Acute non-Q wave infarction - widespread,CTV3_Children +X200V,Acute posterior myocardial infarction,CTV3_Children +X200W,Old anterior myocardial infarction,CTV3_Children +X200X,Old inferior myocardial infarction,CTV3_Children +X200Y,Old lateral myocardial infarction,CTV3_Children +X200Z,Old posterior myocardial infarction,CTV3_Children +X200a,Silent myocardial infarction,CTV3Map_Code_And_Term +X200a,Silent myocardial infarction,CTV3Map_Code_Only +X200b,Accelerated coronary artery disease in transplanted heart,QOF +X200c,Cardiac syndrome X,CTV3_Children +X200d,Post-infarction ventricular septal defect,CTV3Map_Code_And_Term +X200e,Cardiac rupture after acute myocardial infarction,CTV3Map_Code_And_Term +X200e,Cardiac rupture after acute myocardial infarction,CTV3Map_Code_Only +X200v,Familial mitral valve prolapse,QOF +X2010,Congenital mitral valve abnormality,QOF +X2018,Congenital aortic regurgitation,QOF +X201B,Congenital aortic valve abnormality,QOF +X201F,Congenital tricuspid regurgitation,QOF +X201H,Congenital tricuspid valve abnormality,QOF +X201M,Congenital pulmonary regurgitation,QOF +X201W,Congestive obstructive cardiomyopathy,CTV3Map_Code_And_Term +X201X,Fatty degeneration heart,High_Level_SNOMED +X201Y,Hypertrophic cardiomyopathy,High_Level_SNOMED +X201Z,Secondary dilated cardiomyopathy,CTV3Map_Code_And_Term +X201a,Post-myocarditic cardiomyopathy,CTV3_Children +X201b,Cardiomyopathy in the puerperium,CTV3_Children +X201c,Familial dilated cardiomyopathy,CTV3_Children +X201d,Restrictive cardiomyopathy without endomyocardial fibrosis,High_Level_SNOMED +X201e,Familial restrictive cardiomyopathy,High_Level_SNOMED +X201f,Specific heart muscle disorder,High_Level_SNOMED +X201g,Chronic myocardial disorder due to chemical/external agent,QOF +X201h,Drug-induced specific heart muscle disorder,High_Level_SNOMED +X202k,Heart failure as a complication of care,CTV3Map_Code_And_Term +X202k,Heart failure as a complication of care,CTV3Map_Code_Only +X202l,Right ventricular failure,CTV3Map_Code_And_Term +X202l,Right ventricular failure,CTV3Map_Code_Only +X202q,Mural thrombus,CTV3Map_Code_And_Term +X202r,Post-infarction mural thrombus,CTV3_Children +X202s,Intracardiac thrombosis in low output state,CTV3_Children +X203E,Chronic cor pulmonale,CTV3Map_Code_And_Term +X203E,Chronic cor pulmonale,CTV3Map_Code_Only +X203H,Eisenmenger's syndrome,QOF +X203e,Coronary artery stenosis,QOF +X203k,Coronary embolus,QOF +X203v,Coronary artery thrombosis,CTV3Map_Code_And_Term +X203v,Coronary artery thrombosis,CTV3Map_Code_Only +X204f,Coronary artery dissection,High_Level_SNOMED +X204q,Coronary artery rupture,High_Level_SNOMED +X204x,Coronary artery perforation,High_Level_SNOMED +X205P,Coronary steal syndrome,High_Level_SNOMED +X207c,Congenital abnormality of great veins and coronary sinus,QOF +X40AV,Congenital heart disease in pregnancy,QOF +X708p,Severe scapuloperoneal muscular dystrophy wth cardiomyopathy,High_Level_SNOMED +X70MZ,Syphilitic coronary artery disease,High_Level_SNOMED +X776w,Right ventricular fibromuscular infundibular stenosis,QOF +X776x,Right ventricular muscular infundibular stenosis,QOF +X777h,Bicuspid doming of aortic cusp,QOF +X778Q,Coronary artery occluded,QOF +X778W,Coronary graft stenosis,QOF +X778X,Coronary graft occluded,QOF +X778j,Aortic root congenital abnormality,QOF +X77tW,Congenital heart disease,QOF +X77tX,Fusion of tricuspid valve cusps NEC,CTV3_Children +X77tY,Congenital insufficiency of heart valve NEC,CTV3Map_Code_Only +X77tZ,Hypoplasia of heart NOS,CTV3Map_Code_And_Term +X77ta,"Congenital heart disease, septal and bulbar anomalies",CTV3_Children +X77td,Congenital cardiac rotation,QOF +X77th,Congenital abnormality of relationship of cardiac component,QOF +X77ti,Abnormal relationship of right ventricle to left ventricle,QOF +X77tj,Criss-cross heart,QOF +X77tk,Abnormal relationship of aortic orifice to pulmonary orifice,QOF +X77tl,Mirror-imaged heart,QOF +X77tm,Congenital abnormality of cardiac connection,QOF +X77to,Abnormal atrioventricular connection,QOF +X77tp,Abnormal atrioventricular connection - biventricular,QOF +X77tq,Cor triloculare biventriculare,CTV3Map_Code_And_Term +X77tr,Discordant atrioventricular connection,QOF +X77tt,Ambiguous atrioventricular connection,QOF +X77tu,Absent atrioventricular connection with straddling valve,QOF +X77tv,Abnormal atrioventricular connection - univentricular,QOF +X77tw,Double inlet ventricle,QOF +X77tx,Double inlet right ventricle,QOF +X77ty,Double inlet left ventricle,QOF +X77tz,Double inlet to ventricle of indeterminate morphology,QOF +X77u0,Absent right sided atrioventricular connection,QOF +X77u1,Left sided atrium connecting to left ventricle,QOF +X77u2,Left sided atrium connecting to right ventricle,QOF +X77u3,Left sided atrium connecting to both ventricles,QOF +X77u4,Lt side atrium connecting ventricle indeterminate morphology,QOF +X77u5,Absent left sided atrioventricular connection,QOF +X77u6,Right sided atrium connecting to right ventricle,QOF +X77u7,Right sided atrium connecting to both ventricles,QOF +X77u8,Rt sided atrium connectng ventricle indeterminate morphology,QOF +X77u9,Abnormal ventriculoarterial connection,QOF +X77uB,Transposition of aorta,CTV3Map_Code_And_Term +X77uB,Transposition of aorta,CTV3Map_Code_Only +X77uC,Discordt ventric/arterial connct + concordt atriovent connct,CTV3_Children +X77uE,Double outlet rt ventricle + subaort ventriculr septl defect,CTV3_Children +X77uF,Double outlet rt vent + noncommitted ventriculr septl defect,CTV3_Children +X77uG,Double outlet rt vent + doubly commit ventric septal defect,CTV3_Children +X77uH,Double outlet left ventricle,QOF +X77uI,Double outlet from ventricle of indeterminate morphology,QOF +X77uJ,Single outlet ventriculoarterial connection,QOF +X77uL,Solitary aortic trunk with pulmonary atresia,QOF +X77uM,Solitary pulmonary trunk with aortic atresia,QOF +X77uN,Solitary arterial trunk,QOF +X77uV,Anomalous insertion right superior vena cava to left atrium,QOF +X77uX,Laevoatrial cardinal vein,QOF +X77uY,Absent bridging vein,QOF +X77uf,Inferior vena cava connecting to morphological left atrium,QOF +X77ug,Inferior vena cava connecting to coronary sinus,QOF +X77uj,Pulmonary vein abnormality,QOF +X77uk,Anomalous termination of right pulmonary vein,QOF +X77ul,Anomalous pulmonary venous connection,QOF +X77um,Obstructed pulmonary venous connection,QOF +X77un,Congenital pulmonary vein stenosis,QOF +X77uo,Coronary sinus abnormality,QOF +X77up,Coronary sinus defect in left atrium,QOF +X77uq,Absent coronary sinus,QOF +X77ur,Coronary sinus orifice atresia,QOF +X77us,Congenital coronary sinus stenosis,QOF +X77ut,Coronary sinus to left ventricle fistula,QOF +X77uu,Congenital aneurysm of coronary sinus,QOF +X77uv,Ductus venosus abnormality,QOF +X77uw,Patent ductus venosus,QOF +X77uy,Abnormal connection of hepatic vein to atrium,QOF +X77uz,Congenital abnormality of atria and atrial septum,QOF +X77v0,Isomerism of atrial appendages,QOF +X77v1,Isomerism of right appendage,QOF +X77v2,Isomerism of left appendage,QOF +X77v3,Mirror imaged atria,QOF +X77v6,Obstructive Eustachian valve,QOF +X77v7,Prolapse of Eustachian valve,QOF +X77v8,Anomalous valve of coronary sinus,QOF +X77v9,Filigreed network of venous valves,QOF +X77vB,Right atrial appendage absent,QOF +X77vC,Right atrial appendage - left - juxtaposition,QOF +X77vE,Right atrial endocardial fibroelastosis,QOF +X77vF,Right atrial hypoplasia,QOF +X77vK,Divided left atrium,QOF +X77vL,Supramitral left atrial ring,QOF +X77vN,Left atrial appendage absent,QOF +X77vO,Left atrial appendage - right - juxtaposition,QOF +X77vQ,Left atrial endocardial fibroelastosis,QOF +X77vR,Left atrial hypoplasia,QOF +X77vW,Premature closure of foramen ovale,QOF +X77vX,Foramen ovale valvar aneurysm,QOF +X77va,Interauricular septal defect,QOF +X77vc,Auricular septal defect NOS,QOF +X77vd,Sinus venosus defect,QOF +X77ve,Sinus venosus defect with overriding superior vena cava,QOF +X77vf,Sinus venosus defect with overriding inferior vena cava,QOF +X77vi,Atrioventricular septal defect - isolated atrial component,QOF +X77vj,Cong abnorm atrioventricular valves & av septal defect,QOF +X77vn,Tricuspid leaflet dysplasia,QOF +X77vo,Tricuspid annulus hypoplasia,QOF +X77vp,Dilatation of tricuspid annulus,QOF +X77vr,Overriding tricuspid valve,QOF +X77vs,Straddling tricuspid valve,QOF +X77vu,Absent tricuspid leaflet,QOF +X77vv,Double orifice of tricuspid valve,QOF +X77vx,True cleft of tricuspid leaflet,QOF +X77vz,Accessory tissue on tricuspid leaflet,QOF +X77w1,Arcade abnormality of tricuspid chordae tendinae,QOF +X77w2,Tricuspid chordae tendinae too short,QOF +X77w3,Tricuspid chordae tendinae too long,QOF +X77w4,Tricuspid chordae tendinae to outlet septum,QOF +X77w6,Parachute malformation of tricuspid valve,QOF +X77w7,Absent tricuspid papillary muscle,QOF +X77w8,Fused tricuspid papillary muscle,QOF +X77w9,Hypoplastic tricuspid papillary muscle,QOF +X77wB,Mitral atresia,QOF +X77wD,Mitral valve dysplasia,QOF +X77wE,Mitral leaflet dysplasia,QOF +X77wF,Mitral valve hypoplasia,QOF +X77wH,Overriding mitral valve,QOF +X77wJ,Straddling mitral valve,QOF +X77wM,Absent mitral leaflets,QOF +X77wN,Double orifice of mitral valve,QOF +X77wO,Ebstein-like downward displacement of mitral valve,QOF +X77wQ,True cleft of mitral leaflet,QOF +X77wS,Anterior leaflet of mitral valve attached to septum,QOF +X77wT,Accessory tissue on mitral leaflet,QOF +X77wV,Arcade abnormality of mitral chordae tendinae,QOF +X77wZ,Absent mitral papillary muscle,QOF +X77wa,Fused mitral papillary muscles,QOF +X77wb,Hypoplastic mitral papillary muscle,QOF +X77wc,Atrioventricular septal defect & common atriovent junction,QOF +X77we,Atrioventricular septal defect: isol ventricular component,QOF +X77wf,Atrioventriculr sept defect: atrial & ventricular components,QOF +X77wg,Atrioventricular septal defect - ventricular component,QOF +X77wh,Atriovent sept def - vent comp under sup bridging leaflet,QOF +X77wi,Atrioventricular septal defect - Rastelli A,QOF +X77wj,Atrioventricular septal defect - Rastelli B,QOF +X77wk,Atrioventricular septal defect - Rastelli C,QOF +X77wl,Atriovent sept def - vent comp under inf bridging leaflet,QOF +X77wm,Malaligned atrial septum,QOF +X77wn,Double outlet right atrium,QOF +X77wo,Double outlet left atrium,QOF +X77wr,Atresia of common atrioventricular valve,QOF +X77ws,Imperforate common atrioventricular valve,QOF +X77wt,Hypoplasia of common atrioventricular valve,QOF +X77wu,Dysplasia of common atrioventricular valve,QOF +X77ww,Common atrioventricular valve limited to one ventricle,QOF +X77wx,Dilatation of common atrioventricular valve annulus,QOF +X77wy,Common atrioventricular valve stenosis,QOF +X77wz,Common atrioventricular valve leaflet abnormality,QOF +X77x0,Common atrioventricular valve prolapse,QOF +X77x1,True cleft of common atrioventricular valve leaflet,QOF +X77x2,Accessory tissue on common atrioventricular valve leaflet,QOF +X77x3,Double orifice of common atrioventricular valve,QOF +X77x4,Triple orifice lt vent component com av valve,QOF +X77x5,Ebstein's anomaly of common atrioventricular valve,QOF +X77x7,Common atrioventricular valve chordae too short,QOF +X77x8,Common atrioventricular valve chordae too long,QOF +X77x9,Common atrioventricular valve chordae to outlet septum,QOF +X77xA,Arcade abnormality of common atrioventricular valve chordae,QOF +X77xC,Parachute malformation of common atrioventricular valve,QOF +X77xD,Absent common atrioventricular valve papillary muscle,QOF +X77xE,Fused common atrioventricular valve papillary muscle,QOF +X77xF,Hypoplastic common atrioventricular valve papillary muscle,QOF +X77xH,Right atrioventricular valve atresia,QOF +X77xI,Imperforate right atrioventricular valve,QOF +X77xJ,Right atrioventricular valve dysplasia,QOF +X77xK,Right atrioventricular valve hypoplasia,QOF +X77xM,Overriding right atrioventricular valve,QOF +X77xP,Straddling right atrioventricular valve,QOF +X77xR,Absent right atrioventricular valve leaflets,QOF +X77xS,Double orifice of right atrioventricular valve,QOF +X77xT,Ebstein's anomaly of right atrioventricular valve,QOF +X77xV,True cleft of right atrioventricular valve leaflet,QOF +X77xW,Accessory tissue on right atrioventricular valve leaflet,QOF +X77xX,Right atrioventricular valve leaflet dysplasia,QOF +X77xb,Right atrioventricular valve chordae to outlet septum,QOF +X77xc,Arcade abnormality of right atrioventricular valve chordae,QOF +X77xe,Parachute malformation of right atrioventricular valve,QOF +X77xf,Absent right atrioventricular valve papillary muscle,QOF +X77xg,Fused right atrioventricular valve papillary muscles,QOF +X77xh,Hypoplastic right atrioventricular valve papillary muscle,QOF +X77xj,Left atrioventricular valve atresia,QOF +X77xk,Imperforate left atrioventricular valve,QOF +X77xl,Left atrioventricular valve dysplasia,QOF +X77xm,Left atrioventricular valve hypoplasia,QOF +X77xo,Overriding left atrioventricular valve,QOF +X77xr,Straddling left atrioventricular valve,QOF +X77xt,Absent left atrioventricular valve leaflets,QOF +X77xu,Double orifice of left atrioventricular valve,QOF +X77xv,Ebstein's anomaly of left atrioventricular valve,QOF +X77xx,True cleft of left atrioventricular valve leaflet,QOF +X77xy,Accessory tissue on left atrioventricular valve leaflet,QOF +X77xz,Left atrioventricular valve leaflet dysplasia,QOF +X77y3,Left atrioventricular valve chordae to outlet septum,QOF +X77y4,Arcade abnormality of left atrioventricular valve chordae,QOF +X77y6,Parachute malformation of left atrioventricular valve,QOF +X77y7,Absent left atrioventricular valve papillary muscle,QOF +X77y8,Fused left atrioventricular valve papillary muscles,QOF +X77y9,Hypoplastic left atrioventricular valve papillary muscle,QOF +X77yA,Congenital abnormality of ventricles and ventricular septum,QOF +X77yB,Tetralogy of Fallot with pulmonary stenosis,CTV3_Children +X77yC,Tetralogy of Fallot with pulmonary atresia,CTV3_Children +X77yD,Dextraposition of aorta in Fallot's tetralogy,CTV3Map_Code_And_Term +X77yD,Dextraposition of aorta in Fallot's tetralogy,CTV3Map_Code_Only +X77yE,Ventricular septal defect in Fallot's tetralogy,CTV3Map_Code_And_Term +X77yE,Ventricular septal defect in Fallot's tetralogy,CTV3Map_Code_Only +X77yG,Right ventricular hypoplasia,QOF +X77yH,Diffuse hypoplasia of right ventricle,QOF +X77yI,Hyoplasia of right ventricular inflow tract,QOF +X77yJ,Hypoplasia of right ventricular outflow tract,QOF +X77yK,Hypoplasia rt vent outflow tract and trabecular area,QOF +X77yN,Primary right ventricular endocardial fibroelastosis,QOF +X77yO,Two chambered right ventricle,QOF +X77yP,Congenital right ventricular diverticulum,QOF +X77yQ,Congenital right ventricular aneurysm,QOF +X77yR,Arrythmogenic right ventricular dysplasia,QOF +X77yS,Right ventricular outflow tract abnormality,QOF +X77yT,Right ventricular outflow tract obstruction,CTV3Map_Code_And_Term +X77yU,Right ventricular outflow obstruction - localised,CTV3_Children +X77yV,Right ventricular outflow obstruction - tubular,CTV3_Children +X77yW,Right ventricular outflow tract atresia,QOF +X77yX,Right ventricular outflow tract absent,QOF +X77yZ,Left ventricular hypoplasia,QOF +X77ya,Diffuse hypoplasia of left ventricle,QOF +X77yb,Hyoplasia of left ventricular inflow tract,QOF +X77yc,Hypoplasia of left ventricular outflow tract,QOF +X77yd,Hypoplasia lt ventricular outflow tract and trabecular area,QOF +X77yg,Abnormal left ventricular muscle band,QOF +X77yh,Primary left ventricular endocardial fibroelastosis,QOF +X77yi,Congenital left ventricular aneurysm,QOF +X77yj,Left ventricular outflow tract abnormality,QOF +X77yk,Left ventricular outflow tract obstruction,QOF +X77yl,Left ventricular outflow tract atresia,QOF +X77ym,Indeterminate ventricular outflow tract obstruction,QOF +X77yo,Multiple ventricular septal defects,QOF +X77yp,Restrictive ventricular septal defect,QOF +X77yq,Perimembranous ventricular septal defect,QOF +X77yr,Perimembr vent sept def extension to rt ventricular inlet,QOF +X77ys,Perimemb vent sep def - extens rt vent trabecular component,QOF +X77yt,Perimembr vent sept def - extension rt ventricular outlet,QOF +X77yu,Perimembr vent sept def - extens to all rt vent components,QOF +X77yv,Vent septal defect with malaligned outlet septum to right,QOF +X77yw,Vent sept def malalign outlet septum to rt overrid aort valv,QOF +X77yx,Vsd with malalign outlt septm to rt overrid pulmonary valve,QOF +X77yy,Ventr septal defect with malaligned outlet septum to left,QOF +X77yz,Vent sept def malalign outlt septm lt overrid aortic valve,QOF +X77z0,Vent sep def with malalign outlt septm lt overrid pulm valve,QOF +X77z1,Vent sept def malalign outlt septm & overrid truncal valve,QOF +X77z2,Muscular ventricular septal defect,QOF +X77z3,Muscular ventricular septal defect in inlet septum,QOF +X77z4,Muscular ventriculr septal defect central trabecular septum,QOF +X77z5,Musculr ventriculr septal defect in apical trabecular septum,QOF +X77z6,Muscular ventricular septal defect in marginal septum,QOF +X77z7,Muscular ventricular septal defect in outlet septum,QOF +X77z8,Multiple trabecular ventricular septal defect,QOF +X77z9,Doubly committed subarterial ventricular septal defect,QOF +X77zA,Doubl commit subart vent sept def - membranous septum exten,QOF +X77zB,Doubl commit subartl vent sept deft with musc post inf rim,QOF +X77zC,Giant ventricular septal defect,QOF +X77zD,Abnormal infundibular morphology,QOF +X77zE,Subpulmonary infundibulum,QOF +X77zF,Subaortic infundibulum,QOF +X77zG,Bilateral muscular infundibula,QOF +X77zH,Bilateral deficient infundibula,QOF +X77zK,Congenital abnormality of arterial valves,QOF +X77zL,Truncal valve abnormality,QOF +X77zM,Truncal valve dysplasia,QOF +X77zN,Truncal valve stenosis,QOF +X77zO,Truncal valve regurgitation,QOF +X77zP,Truncal valve prolapse,QOF +X77zQ,Accessory tissue on truncal valve cusp,QOF +X77zR,Pulmonary valve cusp hypoplasia,QOF +X77zS,Pulmonary valve ring hypoplasia,QOF +X77zT,Commissural fusion of pulmonary valve,QOF +X77zU,Pulmonary valve dysplasia,QOF +X77zV,Pulmonary valve atresia,QOF +X77zX,Pulmonary atresia with intact ventricular septum,QOF +X77zY,Pulmonary atresia with ventricular septal defect,QOF +X77zZ,Pulmonary valve atresia without ventricular outflow tract,QOF +X77za,Imperforate pulmonary valve,QOF +X77zc,Muscular pulmonary atresia,QOF +X77zf,Absent pulmonary valve,QOF +X77zg,Absent pulmonary valve syndrome,QOF +X77zh,Accessory tissue on pulmonary valve cusp,QOF +X77zi,Unicuspid pulmonary valve,QOF +X77zj,Bicuspid pulmonary valve,QOF +X77zk,Quadricuspid pulmonary valve,QOF +X77zm,Aortic valve ring hypoplasia,CTV3Map_Code_Only +X77zn,Commissural fusion of aortic valve,QOF +X77zo,Eccentric opening of aortic valve,QOF +X77zr,Aortic valve atresia,QOF +X77zs,Imperforate aortic valve,QOF +X77zu,Aortic valve absent,QOF +X77zw,Hypoplasia of aortic valve cusp,QOF +X77zx,Accessory tissue on aortic valve cusp,QOF +X77zy,Abnormal number of aortic valve cusps,QOF +X77zz,Unicuspid aortic valve,QOF +X7800,Quadricuspid aortic valve,QOF +X7802,Congenital dilatation of aorta,QOF +X7803,Tubular hypoplasia of aorta,QOF +X7804,Anomalies of the aorta excluding coarction,QOF +X7807,Type I common arterial trunk,CTV3_Children +X7808,Type II common arterial trunk,CTV3_Children +X7809,Type III common arterial trunk,CTV3_Children +X780A,Aortopulmonary window,CTV3_Children +X780C,Pulmonary trunk stenosis,QOF +X780D,Pulmonary trunk hypoplasia,QOF +X780E,Pulmonary trunk atresia,QOF +X780F,Pulmonary atresia with confluent pulmonary arteries,QOF +X780G,Pulmonary atresia with absent pulmonary artery,QOF +X780H,Pulmonary trunk absent,QOF +X780I,Pulmonary trunk absent with confluent pulmonary arteries,QOF +X780J,Pulmonary trunk absent with non-confluent pulmonary arteries,QOF +X780K,Pulmonary trunk absent with absent pulmonary artery,QOF +X780N,Peripheral pulmonary artery stenosis,CTV3_Children +X780O,Pulmonary artery dilatation,QOF +X780P,Abnormal origin of pulmonary artery,QOF +X780Q,Abnormal origin of right pulmonary artery,QOF +X780R,Origin of right pulmonary artery from ductus arteriosus,QOF +X780S,Origin of right pulmonary artery from ascending aorta,QOF +X780T,Abnormal origin of left pulmonary artery,QOF +X780U,Origin of left pulmonary artery from ductus arteriosus,QOF +X780V,Origin of left pulmonary artery from ascending aorta,QOF +X780W,Origin of left pulmonary artery from right pulmonary artery,QOF +X780a,Diffuse supravalvar aortic stenosis,QOF +X780b,Ascending aortic hypoplasia,QOF +X780c,Ascending aortic atresia,QOF +X780d,Ascending aorta absent,QOF +X780f,Congenital aneurysm of ascending aorta,QOF +X780i,Aortic tunnel,QOF +X780j,Aorta to left ventricle tunnel,QOF +X780k,Aorta to right ventricle tunnel,QOF +X780m,Right descending aorta,QOF +X780n,Left aortic arch and right descending aorta,QOF +X780o,Right aortic arch and right descending aorta,QOF +X780q,Right aortic arch and left descending aorta,QOF +X780r,Aortic arch centrally descending,QOF +X780s,Cervical aortic arch,QOF +X780t,Persisting fifth aortic arch,QOF +X780u,Vascular ring - disorder,QOF +X780v,Double aortic arch with both patent,QOF +X780w,Double aortic arch with unilateral hypoplasia,QOF +X780x,Double aortic arch with unilateral atresia,QOF +X780y,Vascular ring with left aortic arch,QOF +X780z,Vascular ring with right aortic arch,QOF +X7810,Vascular ring components,QOF +X7812,Aberrant subclavian artery,QOF +X7813,Aberrant retro-oesophageal subclavian artery,QOF +X7814,Isolation of subclavian artery,QOF +X7817,Retro-oesophageal right descending aorta,QOF +X781C,Preductal aortic stenosis,QOF +X781D,Preductal interruption of aorta,QOF +X781E,Preductal hypoplasia of aorta,QOF +X781F,Juxtaductal aortic coarctation,QOF +X781G,Postductal aortic stenosis,QOF +X781H,Postductal interruption of aorta,QOF +X781I,Thoracic aortic coarctation,QOF +X781K,Kinking of descending aorta,QOF +X781L,Tubular aortic arch hypoplasia,QOF +X781M,Postductal hypoplasia of aorta,QOF +X781N,Aortic arch atresia,QOF +X781O,Interrupted aortic arch distal to left subclavian artery,QOF +X781P,Interrup aort arch betw lt subclavian & lt comm carotid art,QOF +X781Q,Interr aort arch betw lt com carotid & brachiocephal artery,QOF +X781b,Collaterals to pulmonary arteries,QOF +X781c,Major aortopulmonary collateral artery,QOF +X781d,Systemic to pulmonary collateral artery,QOF +X781e,Stenosis of systemic to pulmonary artery collateral artery,QOF +X781o,Anomalous coronary artery origin,QOF +X781p,Variant coronary origin from aortic sinus,QOF +X781q,Variant coronary origin from left sinus,QOF +X781r,Variant coronary origin from right sinus,QOF +X781s,Coronary artery origin from non-facing sinus,QOF +X781t,Anom origin lt ant descending from right coronary artery,QOF +X781u,Anomalous origin coronary art from pulmonary arterial tree,QOF +X781v,Anomal origin coron artery from right pulmonary artery,QOF +X781w,Anomal origin coronary artery from left pulmonary artery,QOF +X781x,Abnormal coronary orifice,High_Level_SNOMED +X781y,Coronary orifice abnormally high,QOF +X781z,Coronary orifice asymmetrical,QOF +X7820,Dual coronary orifice,QOF +X7821,Coronary orifice stenosis,QOF +X7822,Coronary orifice atresia,QOF +X7823,Abnormal coronary artery course,QOF +X7824,Intramural coronary artery course,QOF +X7825,Lt ant descending runs across rt ventricular outflow tract,QOF +X7826,Coronary artery runs between aorta and pulmonary trunk,QOF +X7827,Circumflex runs posterior to pulmonary trunk,QOF +X7828,Circumflex runs posterior to aorta,QOF +X7829,Coronary artery fistula,High_Level_SNOMED +X782A,Congenital coronary arteriovenous fistula,QOF +X782B,Single coronary artery fistula,High_Level_SNOMED +X782C,Multiple coronary artery fistulae,High_Level_SNOMED +X782D,Coronary fistulae from right ventricle,QOF +X782E,Coronary fistulae from left ventricle,QOF +X782F,Congenital coronary artery calcification,QOF +X782M,Totally absent pericardium,QOF +X79u6,Directional atherectomy,High_Level_SNOMED +X90Qa,Open intracoronary repair of coronary artery fistula,CTV3_Children +X90WS,Coronary inclusion technique,CTV3_Children +X90WT,Coronary interposition technique,CTV3_Children +XA0Ae,Transection of coronary artery,High_Level_SNOMED +XC0I6,Malaligned outlet septum,QOF +XC0MC,Common ventricle,CTV3Map_Code_And_Term +XC0bX,Aneurysm of membranous septum,CTV3_Children +XE0Em,Coronary artery operation,CTV3Map_Code_And_Term +XE0Em,Coronary artery operation,CTV3Map_Code_Only +XE0En,Double anastomosis of mammary arteries to coronary arteries,CTV3Map_Code_And_Term +XE0Ue,Hypertensive heart disease NOS without CCF,QOF +XE0Uh,Acute myocardial infarction,CTV3Map_Code_And_Term +XE0Uh,Acute myocardial infarction,CTV3Map_Code_Only +XE0Ui,Worsening angina,CTV3Map_Code_And_Term +XE0Ui,Worsening angina,CTV3Map_Code_Only +XE0Uk,Other cardiac wall aneurysm,CTV3_Children +XE0Un,Chronic pulmonary heart disease NOS,CTV3Map_Code_And_Term +XE0Un,Chronic pulmonary heart disease NOS,CTV3Map_Code_Only +XE0Uy,Obscure African cardiomyopathy,High_Level_SNOMED +XE0Uz,Congestive cardiomyopathy,CTV3Map_Code_Only +XE0V0,Nutritional and metabolic cardiomyopathy NOS,High_Level_SNOMED +XE0V1,Secondary cardiomyopathy NOS,CTV3Map_Code_Only +XE0V8,Biventricular failure,CTV3Map_Code_And_Term +XE0V8,Biventricular failure,CTV3Map_Code_Only +XE0V9,Heart failure NOS,CTV3Map_Code_And_Term +XE0V9,Heart failure NOS,CTV3Map_Code_Only +XE0Vo,Rheumatic heart disease: [chronic] or [valvular],QOF +XE0Vq,Rheumatic mitral valve disease (& [chronic]),QOF +XE0Vu,Rheumatic aortic valve disease (& [chronic]),QOF +XE0Vw,Other chronic rheumatic heart,CTV3_Children +XE0WA,Myocardial infarction (& [acute]) or coronary thrombosis,CTV3_Children +XE0WC,Acute/subacute ischaemic heart disease NOS,CTV3_Children +XE0WE,Heart disease: [arteriosclerotic] or [chronic ischaemic NOS],CTV3_Children +XE0WG,Chronic ischaemic heart disease NOS,CTV3_Children +XE0WM,(Chronic cor pulmonale) or (pulmonary heart disease NOS),High_Level_SNOMED +XE0Wa,Cardmyopath (& [conges obst][hyper obst]) or endmyocard fibr,High_Level_SNOMED +XE0Wo,(Conges card fail)(dropsy)(card insuf)(R hrt fail)(LV fail),CTV3_Children +XE1KA,Bulbus cordis and cardiac septal closure anomalies,CTV3_Children +XE1KB,Other specified transposition of great vessels,CTV3Map_Code_And_Term +XE1KB,Other specified transposition of great vessels,CTV3Map_Code_Only +XE1KC,Great vessel transposition NOS,CTV3Map_Code_And_Term +XE1KC,Great vessel transposition NOS,CTV3Map_Code_Only +XE1KD,"Tetralogy of Fallot, unspecified",CTV3Map_Code_And_Term +XE1KD,"Tetralogy of Fallot, unspecified",CTV3Map_Code_Only +XE1KG,Right hypoplastic heart syndrome,CTV3Map_Code_And_Term +XE1KG,Right hypoplastic heart syndrome,CTV3Map_Code_Only +XE1KH,Congenital abnormality of cardiac position,QOF +XE1KJ,Fusion of heart valve cusps NEC,CTV3_Children +XE1KK,Cyanotic congenital heart disease NOS,CTV3Map_Code_And_Term +XE1KK,Cyanotic congenital heart disease NOS,CTV3Map_Code_Only +XE1KL,Other anomalies of aorta,QOF +XE1KM,Double aortic arch,QOF +XE1KN,Hypoplasia of aorta,QOF +XE1KO,Supravalvar aortic stenosis,QOF +XE1KP,Congenital aneurysm of aorta,QOF +XE1KQ,Pulmonary artery stenosis,CTV3Map_Code_And_Term +XE1KQ,Pulmonary artery stenosis,CTV3Map_Code_Only +XE1KS,Partial anomalous pulmonary venous connection,QOF +XE1KT,Other great vein anomalies,QOF +XE1NA,(Congen anom CVS) or (congen heart dis) or (cong def heart),QOF +XE1NE,(Bulbus/septum anom NOS) or (transposition of great vessels),QOF +XE1NG,Congenital heart: [anomaly NOS][valve][valvular heart dis],QOF +XE1p9,Cardiac insufficiency as a complication of care,CTV3Map_Code_And_Term +XE1p9,Cardiac insufficiency as a complication of care,CTV3Map_Code_Only +XE1tl,(Post-operative problem NOS) or (postcardiotomy syndrome),QOF +XE2Px,Single anastomosis of mammary artery to coronary artery NEC,CTV3Map_Code_And_Term +XE2Px,Single anastomosis of mammary artery to coronary artery NEC,CTV3Map_Code_Only +XE2QG,Left ventricular failure,CTV3Map_Code_And_Term +XE2QG,Left ventricular failure,CTV3Map_Code_Only +XE2Qh,Aortopulmonary septal anomaly,CTV3Map_Code_And_Term +XE2Qh,Aortopulmonary septal anomaly,CTV3Map_Code_Only +XE2Qi,Anomalous coronary artery communication,QOF +XE2Rv,(Ventricular septal defect) or (Eisenmenger defect),QOF +XE2aA,Old myocardial infarction,CTV3Map_Code_And_Term +XE2aA,Old myocardial infarction,CTV3Map_Code_Only +XE2r7,Coronary A by-pass anastam NOS,CTV3_Children +XE2uV,Ischaemic heart disease,CTV3Map_Code_And_Term +XE2uV,Ischaemic heart disease,CTV3Map_Code_Only +XE2uq,Aortic septal defect,CTV3Map_Code_Only +XE2ur,Dextraposition of aorta,CTV3Map_Code_And_Term +XE2ur,Dextraposition of aorta,CTV3Map_Code_Only +XE2vv,Preductal aortic coarctation,QOF +XE2vw,Postductal aortic coarctation,QOF +XE2vz,Common atrium,CTV3Map_Code_Only +XM00Q,Cong abnormality of thoracic aorta and pulmonary arteries,QOF +XM0rN,Coronary atherosclerosis,CTV3Map_Code_And_Term +XM0rN,Coronary atherosclerosis,CTV3Map_Code_Only +XM0v4,Congenital heart valve abnormality,QOF +XM1GB,Divided right atrium,QOF +XM1LR,LIMA single anastomosis,CTV3Map_Code_And_Term +XM1LR,LIMA single anastomosis,CTV3Map_Code_Only +XM1LS,RIMA single anastomosis,CTV3Map_Code_And_Term +XM1LS,RIMA single anastomosis,CTV3Map_Code_Only +XM1Le,Myocardial revascularisation,CTV3_Children +XM1M3,LIMA sequential anastomosis,CTV3Map_Code_Only +XM1M4,RIMA sequential anastomosis,CTV3Map_Code_Only +XM1Qk,Mural cardiac aneurysm,CTV3_Children +XM1Qn,Impaired left ventricular function,CTV3Map_Code_And_Term +XM1Qn,Impaired left ventricular function,CTV3Map_Code_Only +XM1Qp,Cardiomegaly - hypertensive,QOF +XM1Qw,Blue baby,CTV3Map_Code_And_Term +XM1Qw,Blue baby,CTV3Map_Code_Only +XSDT6,Coronary artery atheroma,CTV3_Children +Xa07h,Neonatal cardiac failure,High_Level_SNOMED +Xa07j,Myocardial ischaemia of newborn,CTV3_Children +Xa07k,Transient myocardial ischaemia of newborn,CTV3_Children +Xa0Kw,Coronary artery graft placement,CTV3_Children +Xa0RY,Percutaneous embolisation of coronary artery fistula,CTV3_Children +Xa0TT,Sepsis-associated left ventricular failure,High_Level_SNOMED +Xa0TU,Sepsis-associated right ventricular failure,High_Level_SNOMED +Xa0YL,Acute anterior myocardial infarction,CTV3_Children +Xa0aP,Percutaneous removal of foreign body from coronary artery,CTV3_Children +Xa1dP,Ischaemic myocardial dysfunction,QOF +Xa1dQ,Stunned myocardium,QOF +Xa1dR,Hibernating myocardium,QOF +Xa1fq,Arrhythmogenic right ventricular cardiomyopathy,High_Level_SNOMED +Xa3fK,Chronic rheumatic mitral valve,QOF +Xa3fN,Chronic rheumatic aortic valve disease,QOF +Xa3hW,Septal defect NOS,CTV3_Children +Xa3kl,Heart - arterial implant NOS,CTV3_Children +Xa3km,Indirect heart revascularisation,CTV3_Children +Xa3kp,Ligation of coronary arteriovenous fistula,CTV3_Children +Xa3ks,Heart internal mammary artery implant,CTV3_Children +Xa6Yx,Left ventricular aneurysm,CTV3_Children +Xa7lV,Carotid atherosclerosis,CTV3_Children +Xa7nH,Exercise-induced angina,CTV3Map_Code_And_Term +Xa9Bp,Muscular dystrophy - cardiac type,High_Level_SNOMED +Xa9Cm,Abnormal number of pulmonary valve cusps,QOF +Xa9Qh,Jatene procedure,CTV3_Children +XaAC3,Acute Q wave myocardial infarction,CTV3Map_Code_And_Term +XaAzi,Acute non-Q wave infarction,CTV3Map_Code_And_Term +XaBEB,[V]Presence of coronary artery bypass graft,CTV3Map_Code_And_Term +XaBEB,[V]Presence of coronary artery bypass graft,CTV3Map_Code_Only +XaBL1,H/O: Myocardial infarction in last year,CTV3Map_Code_And_Term +XaBL2,H/O: Angina in last year,CTV3Map_Code_And_Term +XaBL4,H/O: Treatment for ischaemic heart disease,CTV3Map_Code_And_Term +XaBLr,Antianginal therapy,CTV3Map_Code_And_Term +XaBLt,Cardiac failure therapy,CTV3Map_Code_And_Term +XaBtO,Right ventricular thrombus,CTV3_Children +XaBtP,Left ventricular thrombus,CTV3_Children +XaBwi,H/O: Heart failure in last year,CTV3Map_Code_And_Term +XaC2P,Persistent truncus arteriosus,CTV3Map_Code_And_Term +XaC2P,Persistent truncus arteriosus,CTV3Map_Code_Only +XaC2Q,Aortocoronary bypass grafting,CTV3_Children +XaCIn,Division of coronary arteriovenous fistula,CTV3_Children +XaD2b,Postoperative myocardial infarction,CTV3Map_Code_And_Term +XaD2d,Postoperative transmural myocardial infarction anterior wall,CTV3Map_Code_And_Term +XaD2e,Postoperative transmural myocardial infarction inferior wall,CTV3Map_Code_And_Term +XaD2f,Postoperative transmural myocardial infarction other sites,CTV3_Children +XaD2g,Postoperative transmural myocardial infarction unspec site,CTV3Map_Code_And_Term +XaD2h,Postoperative subendocardial myocardial infarction,CTV3Map_Code_And_Term +XaD2i,"Postoperative myocardial infarction, unspecified",CTV3Map_Code_And_Term +XaDki,Men ret congen heart dis blepharophim blepharop hypopl teeth,QOF +XaDyY,Congenital anomaly of aorta,QOF +XaEXt,Post infarct angina,CTV3Map_Code_And_Term +XaEgY,Refractory heart failure,CTV3_Children +XaEgZ,Non-Q wave myocardial infarction,CTV3_Children +XaFsG,Refractory angina,CTV3Map_Code_And_Term +XaFsH,Transient myocardial ischaemia,CTV3Map_Code_And_Term +XaFx7,Diab mellit insulin-glucose infus acute myocardial infarct,CTV3Map_Code_And_Term +XaG1Q,Asymptomatic coronary heart disease,CTV3Map_Code_And_Term +XaI9b,Cardiomyopathy in Duchenne muscular dystrophy,CTV3Map_Code_And_Term +XaI9h,Coronary heart disease annual review,CTV3Map_Code_And_Term +XaIIq,Left ventricular systolic dysfunction,CTV3Map_Code_And_Term +XaINF,Acute coronary syndrome,CTV3Map_Code_And_Term +XaIOW,Coronary heart disease review,CTV3Map_Code_And_Term +XaIQM,Heart failure follow-up,CTV3Map_Code_And_Term +XaIQN,Heart failure annual review,CTV3Map_Code_And_Term +XaIf1,First myocardial infarction,CTV3_Children +XaIfL,Coronary heart disease medication review,CTV3Map_Code_And_Term +XaIpn,Heart failure confirmed,CTV3Map_Code_And_Term +XaItG,Left ventricular diastolic dysfunction,CTV3Map_Code_And_Term +XaIvK,Coronary heart disease monitoring 1st letter,QOF +XaIvL,Coronary heart disease monitoring 2nd letter,QOF +XaIvM,Coronary heart disease monitoring 3rd letter,QOF +XaIvN,Coronary heart disease monitoring verbal invitation,QOF +XaIwM,Acute ST segment elevation myocardial infarction,CTV3Map_Code_And_Term +XaIwY,Acute non-ST segment elevation myocardial infarction,CTV3Map_Code_And_Term +XaJ4J,Exception reporting: CHD quality indicators,QOF +XaJ4L,Excepted from CHD quality indicators: Patient unsuitable,QOF +XaJ4M,Excepted from CHD quality indicators: Informed dissent,QOF +XaJ98,Echocardiogram shows left ventricular systolic dysfunction,CTV3Map_Code_And_Term +XaJ99,Echocardiogram shows left ventricular diastolic dysfunction,CTV3Map_Code_And_Term +XaJ9G,New York Heart Association classification - class I,CTV3Map_Code_And_Term +XaJ9H,New York Heart Association classification - class II,CTV3Map_Code_And_Term +XaJ9I,New York Heart Association classification - class III,CTV3Map_Code_And_Term +XaJ9J,New York Heart Association classification - class IV,CTV3Map_Code_And_Term +XaJIU,Coronary artery bypass graft occlusion,CTV3Map_Code_And_Term +XaJJv,Cardiothoracic transplantation,CTV3Map_Code_And_Term +XaJX0,Acute posterolateral myocardial infarction,CTV3Map_Code_And_Term +XaKNW,Admit heart failure emergency,CTV3Map_Code_And_Term +XaKyd,Myocardial bridge of coronary artery,QOF +XaL1C,Transfer of care from paediatric congenital heart service,CTV3Map_Code_And_Term +XaLN7,Heart failure review completed,CTV3Map_Code_And_Term +XaLNA,Heart failure care plan discussed with patient,CTV3Map_Code_And_Term +XaLSD,Insertion of drug-eluting coronary artery stent,CTV3_Children +XaLeo,Left ventricle aorta tunnel right ventricle pul art val con,CTV3Map_Code_And_Term +XaLep,Atrial switch and arterial switch,CTV3Map_Code_And_Term +XaLev,Percutaneous transluminal chemical mediated septal ablation,High_Level_SNOMED +XaLf7,Repair double outlet right ventricle intraventricular tunnel,CTV3_Children +XaLfL,Repair of univentricular heart,CTV3Map_Code_And_Term +XaLfM,Total cavopulmonary con extrac inf cav vein pulmon art con,CTV3Map_Code_And_Term +XaLfN,Total cavopulmonary connection with lateral atrial tunnel,CTV3Map_Code_And_Term +XaLfO,Radical aortopulmonary reconstr systemic-to-pulmon art shunt,CTV3Map_Code_And_Term +XaLfQ,Biventricular repair of hypoplastic left heart syndrome,CTV3Map_Code_And_Term +XaLfS,Conversion atrial pulmonary anastomosis total pulmon connect,CTV3Map_Code_And_Term +XaLfT,Other specified repair of univentricular heart,CTV3Map_Code_And_Term +XaLfU,Repair of univentricular heart NOS,CTV3Map_Code_And_Term +XaLfW,Relief of right ventricular outflow tract obstruction,CTV3Map_Code_And_Term +XaLfX,Repair of double chambered right ventricle,CTV3Map_Code_And_Term +XaLg5,Repair of rupture of coronary artery,CTV3_Children +XaLg6,Repair of arteriovenous malformation of coronary artery,CTV3Map_Code_And_Term +XaLgU,Perc translumin balloon angioplasty stenting coronary artery,CTV3_Children +XaLgV,Perc translum ball angio insert 1-2 drug elut stents cor art,CTV3_Children +XaLgW,Perc tran ball angio ins 3 or more drug elut stents cor art,CTV3_Children +XaLgX,Perc translum balloon angioplasty insert 1-2 stents cor art,CTV3_Children +XaLgY,Percutaneous cor balloon angiop 3 more stents cor art NEC,CTV3_Children +XaLgZ,OS perc translumina balloon angioplast stenting coronary art,CTV3_Children +XaLga,Perc translum balloon angioplasty stenting coronary art NOS,CTV3_Children +XaLon,Heart failure 6 month review,CTV3Map_Code_And_Term +XaLqp,Congenital heart condition monitoring,CTV3Map_Code_And_Term +XaMFr,Heart failure monitoring telephone invite,QOF +XaMGk,Coronary heart disease monitoring telephone invite,QOF +XaMGo,Heart failure monitoring verbal invite,QOF +XaMGs,Heart failure monitoring first letter,QOF +XaMGt,Heart failure monitoring second letter,QOF +XaMGu,Heart failure monitoring third letter,QOF +XaMJ9,Exception reporting: heart failure quality indicators,QOF +XaMJA,Excepted heart failure quality indicators: Patient unsuitabl,QOF +XaMJB,Excepted heart failure quality indicators: Informed dissent,QOF +XaMK5,Repair of tetralogy of Fallot using transannular patch,CTV3Map_Code_And_Term +XaMK6,Repair of tetralogy of Fallot with absent pulmonary valve,CTV3Map_Code_And_Term +XaMK7,Repair Fallot-type pulmonary atresia aortopulmonary collater,CTV3Map_Code_And_Term +XaMKA,Other repair of transposition of great arteries,CTV3Map_Code_And_Term +XaMKB,Repositioning of transposed great arteries,CTV3Map_Code_And_Term +XaMKC,OS other repair of transposition of great arteries,CTV3_Children +XaMKD,Other repair of transposition of great arteries NOS,CTV3Map_Code_And_Term +XaMKE,Percut translum cutting balloon angioplasty coronary artery,CTV3_Children +XaMqN,Atrial inversion operations for transposition of great art,CTV3Map_Code_And_Term +XaMqN,Atrial inversion operations for transposition of great art,CTV3Map_Code_Only +XaMzU,Review of patient at risk from coronary heart disease,CTV3_Children +XaNxN,Admit ischaemic heart disease emergency,CTV3Map_Code_And_Term +XaO5n,Congestive heart failure due to valvular disease,CTV3Map_Code_And_Term +XaOiT,Congenital dextroposition of heart,QOF +XaPiK,High risk of heart failure screening invitation,CTV3Map_Code_And_Term +XaPr5,Aortopulm reconstruct with systemic to pulmon arterial shunt,CTV3Map_Code_And_Term +XaPx1,Excepted CVD quality indicators: informed dissent,QOF +XaQk7,History of myocardial infarction,CTV3Map_Code_And_Term +XaQk7,History of myocardial infarction,CTV3Map_Code_Only +XaR8o,Heart failure resolved,CTV3Map_Code_And_Term +XaRFL,Exception reporting: myocardial infarction quality indicator,CTV3Map_Code_And_Term +XaRFO,Exc myocard infarction quality indicators: informed dissent,CTV3Map_Code_And_Term +XaRFP,Exc myocar infarction quality indicators: patient unsuitable,CTV3Map_Code_And_Term +XaVvs,Coronary artery bypass graft operation planned,CTV3Map_Code_And_Term +XaWye,Takotsubo cardiomyopathy,High_Level_SNOMED +XaWyi,Heart failure with normal ejection fraction,CTV3Map_Code_And_Term +XaWyi,Heart failure with normal ejection fraction,CTV3Map_Code_Only +XaX1p,Coronary angioplasty planned,CTV3Map_Code_And_Term +XaXIR,Referral to heart failure education group declined,CTV3Map_Code_And_Term +XaXLu,Worsening pulmonary oedema,CTV3Map_Code_And_Term +XaXNg,Tachycardia-induced cardiomyopathy,High_Level_SNOMED +XaXew,Angina self management plan commenced,CTV3Map_Code_And_Term +XaXex,Angina self management plan completed,CTV3Map_Code_And_Term +XaXgq,Referral to heart failure exercise programme declined,CTV3Map_Code_And_Term +XaXgs,Referral to heart failure exercise programme not indicated,CTV3Map_Code_And_Term +XaXkR,Has heart failure management plan,CTV3Map_Code_And_Term +XaXnr,Frequency of angina,CTV3Map_Code_And_Term +XaXzw,Preferred place of care for next exacerbation heart failure,CTV3Map_Code_And_Term +XaYYq,Coronary microvascular disease,CTV3Map_Code_And_Term +XaYYr,Right ventricular diastolic dysfunction,CTV3Map_Code_And_Term +XaYYs,Diastolic dysfunction,CTV3Map_Code_And_Term +XaYae,Angina self-management plan review,CTV3Map_Code_And_Term +XaYb7,Angina self-management plan agreed,CTV3Map_Code_And_Term +XaYbC,Heart failure self-management plan agreed,CTV3Map_Code_And_Term +XaYft,Education about deteriorating heart failure,CTV3Map_Code_And_Term +XaZKd,H/O acute coronary syndrome,CTV3Map_Code_And_Term +XaZSy,Percutaneous coronary intervention,CTV3_Children +XaZcx,Amyloid cardiomyopathy,High_Level_SNOMED +XaZih,Heart failure clinical pathway,CTV3Map_Code_And_Term +XaZlp,Referral to Angina Plan self-management programme,CTV3Map_Code_And_Term +XaZlr,Referral to Angina Plan self-management programme declined,CTV3Map_Code_And_Term +XaaH6,Referral to rapid access heart failure clinic,CTV3Map_Code_And_Term +XaaUg,Emergency percutaneous coronary intervention,CTV3_Children +Xaacj,Left ventricular cardiac dysfunction,CTV3Map_Code_And_Term +Xaapw,Right ventricular systolic dysfunction,CTV3Map_Code_And_Term +XabM9,On optimal heart failure therapy,CTV3Map_Code_And_Term +XabvP,Heart failure rehabilitation programme not available,CTV3Map_Code_And_Term +XaeVd,Non-obstructive coronary atherosclerosis,CTV3_Children +XafeB,Heart failure with reduced ejection fraction,CTV3_Children +XagLe,Coronary heart disease monitoring invitation email,QOF +Xagdx,Andersen Tawil syndrome,QOF +Y1781,Patient unsuitable for PTCA,CTV3_Children +Y1eef,Mixed myocardial ischaemia and infarction,CTV3_Children +Y1f1c,Coronary heart disease monitoring invitation,QOF +Y1f20,Heart failure monitoring invitation,QOF +Y1f93,Quality and Outcomes Framework secondary prevention of coronary heart disease quality indicator-related care invitation (procedure),QOF +Y1f9c,Quality and Outcomes Framework heart failure quality indicator-related care invitation (procedure),QOF +Y1f9d,Excepted from heart failure quality indicators - service unavailable (finding),QOF +Y3657,H/O: Ischaemic heart disease,CTV3_Children +Y9998,Common arterial trunk,CTV3_Children +ZV421,[V]Heart transplanted,CTV3Map_Code_And_Term +ZV457,[V]Presence of aortocoronary bypass graft,CTV3Map_Code_And_Term \ No newline at end of file diff --git a/codelists/opensafely-covid-identification-in-primary-care-probable-covid-positive-test.csv b/codelists/opensafely-covid-identification-in-primary-care-probable-covid-positive-test.csv new file mode 100644 index 0000000..b2da9b8 --- /dev/null +++ b/codelists/opensafely-covid-identification-in-primary-care-probable-covid-positive-test.csv @@ -0,0 +1,9 @@ +CTV3ID,CTV3PreferredTermDesc,CTV3Source +XaLTE,Coronavirus nucleic acid detection, +Y20d1,SARS-CoV-2 (severe acute respiratory syndrome coronavirus 2) RNA (ribonucleic acid) detection result positive, +Y213a,Antigen of 2019-nCoV (novel coronavirus), +Y228d,Coronavirus disease 19 caused by severe acute respiratory syndrome coronavirus 2 confirmed by laboratory test (situation), +Y23f7,SARS-CoV-2 (severe acute respiratory syndrome coronavirus 2) detection result positive, +Y240b,SARS-CoV-2 (severe acute respiratory syndrome coronavirus 2) RNA (ribonucleic acid) qualitative existence in specimen, +Y2a3b,SARS-CoV-2 (severe acute respiratory syndrome coronavirus 2) RNA (ribonucleic acid) detection result positive, +Y269d,SARS-CoV-2 (severe acute respiratory syndrome coronavirus 2) antigen detection result positive, diff --git a/codelists/opensafely-covid-identification.csv b/codelists/opensafely-covid-identification.csv new file mode 100644 index 0000000..3ba1c71 --- /dev/null +++ b/codelists/opensafely-covid-identification.csv @@ -0,0 +1,3 @@ +icd10_code,name +U071,covid19 virus identified +U072,covid19 virus not identified \ No newline at end of file diff --git a/codelists/opensafely-documented-influenza-illness.csv b/codelists/opensafely-documented-influenza-illness.csv new file mode 100644 index 0000000..d07150d --- /dev/null +++ b/codelists/opensafely-documented-influenza-illness.csv @@ -0,0 +1,64 @@ +CTV3PreferredTermDesc,CTV3ID,CTV3Source +Acute myocarditis - influenzal,G5203,CTV3Map_Code_And_Term +Avian influenza,XaMih,CTV3Map_Code_And_Term +Avian influenza virus nucleic acid detection,XaLT5,CTV3Map_Code_And_Term +Encephalitis due to influenza-specific virus not identified,XaEGX,CTV3_Children +Encephalitis due to influenza-virus identified,XaC2H,CTV3Map_Code_And_Term +Influenza,H27..,CTV3Map_Code_And_Term +Influenza A nucleic acid detection,XaYKq,CTV3Map_Code_And_Term +Influenza A virus H1N1 subtype detected,XaQVd,CTV3Map_Code_And_Term +"Influenza A virus, other or untyped strain detected",XaPIR,CTV3Map_Code_And_Term +Influenza B nucleic acid detection,XaZMV,CTV3Map_Code_And_Term +Influenza B virus detected,XaPIS,CTV3Map_Code_And_Term +Influenza H1 virus detected,XaPIN,CTV3Map_Code_And_Term +Influenza H2 virus detected,XaPIO,CTV3Map_Code_And_Term +Influenza H3 virus detected,XaPIP,CTV3Map_Code_And_Term +Influenza H5 virus detected,XaPIQ,CTV3Map_Code_And_Term +Influenza NOS,XE0YK,CTV3Map_Code_And_Term +Influenza due to Influenza A virus subtype H1N1,XaQQp,CTV3Map_Code_And_Term +Influenza with bronchopneumonia,H2700,CTV3Map_Code_And_Term +Influenza with encephalopathy,H27y0,CTV3Map_Code_And_Term +Influenza with gastrointestinal tract involvement,H27y1,CTV3Map_Code_And_Term +Influenza with laryngitis,H2710,CTV3Map_Code_And_Term +Influenza with other manifestations,H27y.,CTV3Map_Code_And_Term +Influenza with other manifestations NOS,H27yz,CTV3Map_Code_And_Term +Influenza with other respiratory manifestation,H271.,CTV3Map_Code_And_Term +Influenza with pharyngitis,H2711,CTV3Map_Code_And_Term +Influenza with pneumonia NOS,H270z,CTV3Map_Code_And_Term +"Influenza with pneumonia, influenza virus identified",H2701,CTV3Map_Code_And_Term +Influenza with respiratory manifestations NOS,H271z,CTV3Map_Code_And_Term +Influenza-like symptoms,XaIBK,CTV3Map_Code_And_Term +Other specified pneumonia or influenza,H2y..,CTV3Map_Code_And_Term +Pneumonia and influenza,H2...,CTV3Map_Code_And_Term +Pneumonia or influenza NOS,H2z..,CTV3Map_Code_And_Term +Possible influenza A virus H1N1 subtype,XaQVc,CTV3Map_Code_And_Term +Suspected influenza A virus subtype H1N1 infection,XaQSm,CTV3Map_Code_And_Term +Telephne consultatn suspected influenza A virus subtype H1N1,XaR6o,CTV3Map_Code_Only +"[X]Flu+oth respiratory manifestations,'flu virus identified",Hyu04,CTV3Map_Code_And_Term +"[X]Influenza+oth respiratory manifestatns,virus not identifd",Hyu06,CTV3Map_Code_And_Term +"[X]Influenza+other manifestations,influenza virus identified",Hyu05,CTV3Map_Code_And_Term +(Influenza NOS) or (influenza-like illness),XE0ZJ,High_Level_SNOMED +(Influenza like illness) or (influenza NOS),H27z.,High_Level_SNOMED +Avian influenza virus nucleic acid detection assay,Xab7R,CTV3_Children +Avian influenza virus ribonucleic acid detection assay,Xabob,CTV3_Children +Encephalitis due to influenza,XaC1s,CTV3Map_Code_And_Term +Flu-like illness NOS,XM0s0,CTV3_Children +Influenza A nucleic acid detection assay,Xab85,CTV3_Children +Influenza A virus ribonucleic acid detection assay,XabpY,CTV3_Children +Influenza B nucleic acid detection assay,Xab86,CTV3_Children +Influenza B virus ribonucleic acid detection assay,XabpZ,CTV3_Children +Influenza NOS,XE0YK,CTV3Map_Code_Only +Influenza due to Influenza A virus subtype H1N1,XaQQp,CTV3Map_Code_Only +Influenza due to pandemic influenza virus,XaeVL,CTV3_Children +Influenza due to seasonal influenza virus,XaeVM,CTV3_Children +Influenza due to zoonotic influenza virus,XaeVK,CTV3_Children +Influenza with pneumonia due to seasonal influenza virus,XaeVN,CTV3_Children +Influenza-like illness,XM0rz,CTV3Map_Code_Only +Influenza-like illness,XM0rz,CTV3Map_Code_And_Term +Influenzal pneumonia,H270.,CTV3Map_Code_Only +Influenzal pneumonia,H270.,CTV3Map_Code_And_Term +Pneumonia and influenza &/or pneumonia,XE0ZF,High_Level_SNOMED +Suspected influenza A virus subtype H1N1 infection,XaQSm,CTV3Map_Code_Only +Swine influenza,Y0b97,CTV3_Children +Telephne consultatn suspected influenza A virus subtype H1N1,XaR6o,CTV3Map_Code_And_Term +"[X]Influenza with other manifestations, virus not identified",Hyu07,CTV3Map_Code_And_Term \ No newline at end of file diff --git a/codelists/opensafely-ethnicity-snomed-0removed.csv b/codelists/opensafely-ethnicity-snomed-0removed.csv new file mode 100644 index 0000000..01155b2 --- /dev/null +++ b/codelists/opensafely-ethnicity-snomed-0removed.csv @@ -0,0 +1,600 @@ +snomedcode,Ethnicity,Grouping_16,Grouping_6 +10292001,Guamians,16,5 +108342005,South Asian AND/OR Australian aborigine,16,5 +113170005,Aymara,16,5 +113171009,Coushatta,16,5 +13233008,Flathead,16,5 +154182006,Other ethnic non-mixed (NMO),16,5 +154183001,Brit. ethnic minor. spec.(NMO),16,5 +154184007,Brit. ethnic minor. unsp (NMO),16,5 +154186009,N African Arab &/or Iranian (NMO),16,5 +154195001,Other ethnic NEC (NMO),16,5 +154203007,Vietnamese,16,5 +154209006,Other ethnic group,16,5 +154212009,New Zealand ethnic groups,16,5 +154215006,New Zealand Maori,16,5 +154216007,Samoan,16,5 +154217003,Cook Island Maori,16,5 +154218008,Tongan,16,5 +154219000,Niuean,16,5 +154220006,Tokelauan,16,5 +154221005,Fijian,16,5 +154222003,Other Pacific ethnic group,16,5 +154227009,Other New Zealand ethnic group,16,5 +154229007,New Zealand ethnic group NOS,16,5 +15801006,Kapingas,16,5 +17789004,Papuans,16,5 +18575005,Oceanian,16,5 +186005001,Other ethnic non-mixed (NMO),16,5 +186006000,British ethnic minority specified (NMO),16,5 +186007009,British ethnic minority unspecified (NMO),16,5 +186009007,N African Arab &/or Iranian (NMO),16,5 +186018009,Other ethnic NEC (NMO),16,5 +186026001,Vietnamese,16,5 +186032006,Other ethnic group,16,5 +186035008,New Zealand ethnic groups,16,5 +186037000,Other European in New Zealand,16,5 +186039002,New Zealand Maori,16,5 +186040000,Cook Island Maori,16,5 +186041001,Niuean,16,5 +186042008,Tokelauan,16,5 +186043003,Other Pacific ethnic group,16,5 +186047002,Other New Zealand ethnic group,16,5 +186048007,New Zealand ethnic group NOS,16,5 +18664001,Xavante,16,5 +19085009,Saipanese,16,5 +20140003,Hawaiians,16,5 +20291009,Lacandon,16,5 +21047009,Aleuts,16,5 +22007004,Shoshone,16,5 +23517005,Polynesians,16,5 +23534002,Melanesians,16,5 +25750005,Admiralty Islanders,16,5 +270464009,N African Arab/Iranian (NMO),16,5 +27301002,Paez,16,5 +275594002,North African Arab (NMO),16,5 +275595001,Iranian (NMO),16,5 +27700004,Iraqi,16,5 +28821007,Easter Islanders,16,5 +296841000000102,Yemeni,16,5 +312859007,Vietnamese,16,5 +315282008,Other ethnic group,16,5 +32873005,Bloods,16,5 +33182009,Trukese,16,5 +3353005,Pueblo,16,5 +34334001,New Caledonians,16,5 +35007000,Utes,16,5 +3698008,Micronesians,16,5 +38144004,Athabascans,16,5 +38361009,Koreans,16,5 +38750003,Bororo,16,5 +4073004,Palauans,16,5 +413569000,Arab,16,5 +414661004,Melanesian,16,5 +41798002,Caroline Islanders,16,5 +43056000,Cuna,16,5 +43608005,Australian Aborigines,16,5 +43890005,Dieguenos,16,5 +47327008,Mexican Indians,16,5 +48118002,Yapese,16,5 +48294008,Solomon Islanders,16,5 +48375000,Seminole,16,5 +49202008,Gilbertese,16,5 +50405005,Senoi,16,5 +55990000,Inca,16,5 +57539009,Navaho,16,5 +583481000000105,Other ethnic NEC (NMO),16,5 +592491000000104,Other New Zealand ethnic group,16,5 +592501000000105,New Zealand ethnic group NOS,16,5 +59487007,Syrians,16,5 +59597001,Marshallese,16,5 +60157000,Ellice Islanders,16,5 +62598008,Venezuelan Indians,16,5 +63457007,Maya,16,5 +6373008,Choco,16,5 +63732001,New Hebrideans,16,5 +65776006,Blackfeet,16,5 +661731000000107,Other Pacific ethnic group,16,5 +66406004,Huasteco,16,5 +666871000000107,Other ethnic group,16,5 +66920001,Amerind,16,5 +67931002,Aztec,16,5 +69865008,Fijian,16,5 +69983001,Irani,16,5 +71949006,Chippewa,16,5 +72337002,Brazilian Indians,16,5 +73524008,Caingang,16,5 +73736004,Maori,16,5 +74159009,Melanuans,16,5 +74302004,Apache,16,5 +75301003,Mapuche,16,5 +75326007,Labradors,16,5 +75704009,Toba,16,5 +76460008,Yanomama,16,5 +76883002,Huichol,16,5 +77502007,Atacamenos,16,5 +77686000,Kwakiutl,16,5 +79434006,Quechua,16,5 +81560001,Tongan,16,5 +81653003,Pehuenches,16,5 +85515006,Eskimo,16,5 +86275006,Samoan,16,5 +87323008,Nez Percé,16,5 +89001000000105,Arab - ethnic category 2001 census,16,5 +89011000000107,Iranian - ethnic category 2001 census,16,5 +89021000000101,South and Central American - ethnic category 2001 census,16,5 +89026003,Alacaluf,16,5 +90027003,Arabs,16,5 +91488008,New Britons,16,5 +92521000000101,Other - ethnic category 2001 census,16,5 +94071000000100,"Middle Eastern (excluding Israeli, Iranian and Arab) - ethnic category 2001 census",16,5 +94081000000103,Israeli - ethnic category 2001 census,16,5 +94091000000101,Kurdish - ethnic category 2001 census,16,5 +94101000000109,Moroccan - ethnic category 2001 census,16,5 +94111000000106,Latin American - ethnic category 2001 census,16,5 +94121000000100,Multi-ethnic islands: Mauritian or Seychellois or Maldivian or St Helena - ethnic category 2001 census,16,5 +94151000000105,Any other group - ethnic category 2001 census,16,5 +976951000000102,Other ethnic group: Arab - England and Wales ethnic category 2011 census,16,5 +976961000000104,Other ethnic group: Arab - England and Wales ethnic category 2011 census,16,5 +976971000000106,Other ethnic group: any other ethnic group - England and Wales ethnic category 2011 census,16,5 +976981000000108,Other ethnic group: any other ethnic group - England and Wales ethnic category 2011 census,16,5 +977851000000109,Other ethnic group: Arab - Northern Ireland ethnic category 2011 census,16,5 +977861000000107,Other ethnic group: Arab - Northern Ireland ethnic category 2011 census,16,5 +977871000000100,Other ethnic group: any other ethnic group - Northern Ireland ethnic category 2011 census,16,5 +977881000000103,Other ethnic group: any other ethnic group - Northern Ireland ethnic category 2011 census,16,5 +978381000000105,"Other ethnic group: Arab, Arab Scottish or Arab British - Scotland ethnic category 2011 census",16,5 +978391000000107,"Other ethnic group: Arab, Arab Scottish or Arab British - Scotland ethnic category 2011 census",16,5 +978401000000105,Other ethnic group: any other ethnic group - Scotland ethnic category 2011 census,16,5 +978411000000107,Other ethnic group: any other ethnic group - Scotland ethnic category 2011 census,16,5 +154181004,Chinese,15,5 +154224002,Chinese,15,5 +186004002,Chinese,15,5 +33897005,Chinese,15,5 +92511000000107,Chinese - ethnic category 2001 census,15,5 +976851000000107,Asian or Asian British: Chinese - England and Wales ethnic category 2011 census,15,5 +977751000000101,Asian or Asian British: Chinese - Northern Ireland ethnic category 2011 census,15,5 +978191000000109,Asian or Asian Scottish or Asian British: Chinese - Scotland ethnic category 2011 census,15,5 +976861000000105,Asian or Asian British: Chinese - England and Wales ethnic category 2011 census,15,5 +977761000000103,Asian or Asian British: Chinese - Northern Ireland ethnic category 2011 census,15,5 +978201000000106,Asian or Asian Scottish or Asian British: Chinese - Scotland ethnic category 2011 census,15,5 +110791000000100,Black British - ethnic category 2001 census,14,4 +15086000,African American,14,4 +154166005,"Black, other, non-mixed origin",14,4 +154167001,Black British,14,4 +154169003,Black N African &/or Arab &/or Iranian,14,4 +154171003,Black E Afric Asia &/or Indo-Caribb,14,4 +154172005,Black Indian sub-continent,14,4 +154173000,Black - other Asian,14,4 +154174006,Black Black - other,14,4 +154206004,Other black ethnic group,14,4 +185989004,"Black, other, non-mixed origin",14,4 +185990008,Black British,14,4 +185992000,Black N African &/or Arab &/or Iranian,14,4 +185994004,Black E Afric Asia &/or Indo-Caribb,14,4 +185995003,Black Indian sub-continent,14,4 +185996002,Black - other Asian,14,4 +185997006,Black Black - other,14,4 +186029008,Other black ethnic group,14,4 +270461001,Black N African/Arab/Iranian,14,4 +270462008,Black East African Asian/Indo-Caribbean,14,4 +275587000,Black Arab,14,4 +275588005,Black Iranian,14,4 +275589002,Black East African Asian,14,4 +275590006,Black Indo-Caribbean,14,4 +315240009,Black - ethnic group,14,4 +315279003,Other black ethnic group,14,4 +651601000000100,Black Black - other,14,4 +92501000000105,Other Black background - ethnic category 2001 census,14,4 +92741000000104,Other Black or Black unspecified - ethnic category 2001 census,14,4 +976931000000109,Black or African or Caribbean or Black British: other Black or African or Caribbean background - England and Wales ethnic category 2011 census,14,4 +977831000000102,Black or African or Caribbean or Black British: other Black or African or Caribbean background - Northern Ireland ethnic category 2011 census,14,4 +978271000000103,"Caribbean or Black: Caribbean, Caribbean Scottish or Caribbean British - Scotland ethnic category 2011 census",14,4 +978341000000102,"Caribbean or Black: Black, Black Scottish or Black British - Scotland ethnic category 2011 census",14,4 +978361000000101,Caribbean or Black: any other Black or Caribbean group - Scotland ethnic category 2011 census,14,4 +976941000000100,Black or African or Caribbean or Black British : other black or African or Caribbean background - England and Wales ethnic category 2011 census,14,4 +978371000000108,Caribbean or Black: any other Black or Caribbean group - Scotland ethnic category 2011 census,14,4 +977841000000106,Black or African or Caribbean or Black British: other black or African or Caribbean background - Northern Ireland ethnic category 2011 census,14,4 +978351000000104,Caribbean or Black: Black Black Scottish or Black British - Scotland ethnic category 2011 census,14,4 +521000220104,Black Irish (ethnic group),14,4 +10008004,Ewe,13,4 +11794009,Kenyans,13,4 +13440006,Tanganyikans,13,4 +14470009,Tutsi,13,4 +154165009,Black African,13,4 +154170002,Black - other African country,13,4 +154187000,Other African countries (NMO),13,4 +18167009,Black African,13,4 +185993005,Black - other African country,13,4 +186010002,Other African countries (NMO),13,4 +1919006,Egyptians,13,4 +21868006,Madagascans,13,4 +23922002,Batutsi,13,4 +2720008,Hututu,13,4 +275586009,Black North African,13,4 +37474002,Ghanaians,13,4 +37843006,Fulani,13,4 +3818007,Senegalese,13,4 +39764005,Bantu,13,4 +41076003,Mozambiquans,13,4 +46110004,Somalis,13,4 +51750002,Hottentot,13,4 +52075006,Congolese,13,4 +58047002,Barundi,13,4 +59366001,Ibo,13,4 +67439005,Msutu,13,4 +71176007,Pygmies,13,4 +72201005,Hobe,13,4 +72248007,Kikuyu,13,4 +76253004,Zulu,13,4 +76775001,Ugandans,13,4 +80528001,Xosa,13,4 +8124001,West Africans,13,4 +82174001,Shona,13,4 +83584002,Luo,13,4 +85371009,Bushmen,13,4 +870448005,Khoikhoi,13,4 +88790004,Abyssinians (Amharas),13,4 +88839008,Sudanese,13,4 +88934004,Nigerians,13,4 +90822005,Gambians,13,4 +9158000,Liberians,13,4 +92491000000104,African - ethnic category 2001 census,13,4 +92711000000100,Somali - ethnic category 2001 census,13,4 +92731000000108,Nigerian - ethnic category 2001 census,13,4 +94061000000107,North African - ethnic category 2001 census,13,4 +976891000000104,Black or African or Caribbean or Black British: African - England and Wales ethnic category 2011 census,13,4 +977791000000109,Black or African or Caribbean or Black British: African - Northern Ireland ethnic category 2011 census,13,4 +978231000000100,"African: African, African Scottish or African British - Scotland ethnic category 2011 census",13,4 +978251000000107,African: any other African - Scotland ethnic category 2011 census,13,4 +978241000000109,African: African African Scottish or African British - Scotland ethnic category 2011 census,13,4 +976901000000103,Black or African or Caribbean or Black British: African - England and Wales ethnic category 2011 census,13,4 +977801000000108,Black or African or Caribbean or Black British: African - Northern Ireland ethnic category 2011 census,13,4 +978261000000105,African: any other African - Scotland ethnic category 2011 census,13,4 +107691000000105,Caribbean - ethnic category 2001 census,12,4 +154164008,Black Caribbean,12,4 +154168006,Black Caribbean &/or W.I. &/or Guyana,12,4 +154185008,Caribbean I. &/or W.I. &/or Guyana (NMO),12,4 +160531006,Race: West indian,12,4 +185988007,Black Caribbean,12,4 +185991007,Black Caribbean &/or W.I. &/or Guyana,12,4 +186008004,Caribbean I. &/or W.I. &/or Guyana (NMO),12,4 +270460000,Black Caribbean/West India/Guyana,12,4 +270463003,Caribbean I./W.I./Guyana (NMO),12,4 +275591005,Caribbean Island (NMO),12,4 +275592003,West Indian (NMO),12,4 +275593008,Guyana (NMO),12,4 +309643000,Black West Indian,12,4 +309644006,Black Guyana,12,4 +413465009,Afro-Caribbean,12,4 +976911000000101,Black or African or Caribbean or Black British: Caribbean - England and Wales ethnic category 2011 census,12,4 +977811000000105,Black or African or Caribbean or Black British: Caribbean - Northern Ireland ethnic category 2011 census,12,4 +976921000000107,Black or African or Caribbean or Black British : Caribbean - England and Wales ethnic category 2011 census (finding),12,4 +977821000000104,Black or African or Caribbean or Black British: Caribbean - Northern Ireland ethnic category 2011 census,12,4 +978281000000101,Caribbean or Black: Caribbean Caribbean Scottish or Caribbean British - Scotland ethnic category 2011 census,12,4 +10432001,Onge,11,3 +110781000000102,Sinhalese - ethnic category 2001 census,11,3 +12556008,Tamils,11,3 +1340002,Malays,11,3 +154188005,E Afric Asian &/or Indo-Carib (NMO),11,3 +154190006,Other Asian (NMO),11,3 +154207008,Other Asian ethnic group,11,3 +154223008,South East Asian,11,3 +154226000,Other Asian,11,3 +186011003,E Afric Asian &/or Indo-Carib (NMO),11,3 +186013000,Other Asian (NMO),11,3 +186030003,Other Asian ethnic group,11,3 +186044009,South East Asian,11,3 +186046006,Other Asian,11,3 +20449009,Javanese,11,3 +21993009,Indonesians,11,3 +24812003,Mongol,11,3 +26215007,South Asian Aborigine,11,3 +2688009,Tristan da Cunhans,11,3 +270465005,E Afric Asian/Indo-Carib (NMO),11,3 +275596000,East African Asian (NMO),11,3 +275597009,Indo-Caribbean (NMO),11,3 +27683006,Ainu,11,3 +2852001,Bhutanese,11,3 +28796001,Siamese,11,3 +315280000,Asian - ethnic group,11,3 +315281001,Other Asian ethnic group,11,3 +32513008,Dyaks,11,3 +40165009,Buriats,11,3 +414551003,Japanese,11,3 +414978006,Oriental,11,3 +42632009,Andamanese,11,3 +4299001,Marathas,11,3 +44460002,Turks,11,3 +46723002,Badagas,11,3 +47250000,Bruneians,11,3 +48679001,Bogobos,11,3 +53195006,Kirghiz,11,3 +57405008,Chenchu,11,3 +63736003,Taiwanese,11,3 +661741000000103,Other Asian,11,3 +67165000,Lapps,11,3 +704385002,Punjabi,11,3 +704386001,Orang asli,11,3 +704387005,Kadazan,11,3 +704388000,Melanau,11,3 +704389008,Murut,11,3 +704390004,Bajau,11,3 +704391000,Bidayuh,11,3 +704392007,Iban,11,3 +718131000000106,Nepali,11,3 +76768002,Filipinos,11,3 +81283004,Todas,11,3 +81846005,Naiars,11,3 +83365001,Thais,11,3 +83939006,Irula,11,3 +86461000000107,Sri Lankan - ethnic category 2001 census,11,3 +90348007,Ghashgai,11,3 +91066000,Tatars,11,3 +91191002,Oraons,11,3 +92481000000101,Other Asian background - ethnic category 2001 census,11,3 +92651000000105,Kashmiri - ethnic category 2001 census,11,3 +92661000000108,East African Asian - ethnic category 2001 census,11,3 +92671000000101,Tamil - ethnic category 2001 census,11,3 +92681000000104,British Asian - ethnic category 2001 census,11,3 +92691000000102,Caribbean Asian - ethnic category 2001 census,11,3 +92701000000102,Other Asian or Asian unspecified - ethnic category 2001 census,11,3 +92751000000101,Vietnamese - ethnic category 2001 census,11,3 +92761000000103,Japanese - ethnic category 2001 census,11,3 +92771000000105,Filipino - ethnic category 2001 census,11,3 +92781000000107,Malaysian - ethnic category 2001 census,11,3 +976871000000103,Asian or Asian British: any other Asian background - England and Wales ethnic category 2011 census,11,3 +977771000000105,Asian or Asian British: any other Asian background - Northern Ireland ethnic category 2011 census,11,3 +978211000000108,Asian or Asian Scottish or Asian British: any other Asian group - Scotland ethnic category 2011 census,11,3 +976881000000101,Asian or Asian British: any other Asian background - England and Wales ethnic category 2011 census,11,3 +977781000000107,Asian or Asian British: any other Asian background - Northern Ireland ethnic category 2011 census,11,3 +978221000000102,Asian or Asian Scottish or Asian British: any other Asian group - Scotland ethnic category 2011 census,11,3 +154180003,Bangladeshi,10,3 +186003008,Bangladeshi,10,3 +92471000000103,Bangladeshi or British Bangladeshi - ethnic category 2001 census,10,3 +976831000000100,Asian or Asian British: Bangladeshi - England and Wales ethnic category 2011 census,10,3 +977731000000108,Asian or Asian British: Bangladeshi - Northern Ireland ethnic category 2011 census,10,3 +978171000000105,"Asian or Asian Scottish or Asian British: Bangladeshi, Bangladeshi Scottish or Bangladeshi British - Scotland ethnic category 2011 census",10,3 +976841000000109,Asian or Asian British: Bangladeshi - England and Wales ethnic category 2011 census,10,3 +977741000000104,Asian or Asian British: Bangladeshi - Northern Ireland ethnic category 2011 census,10,3 +978181000000107,Asian or Asian Scottish or Asian British: Bangladeshi Bangladeshi Scottish or Banagaldeshi British - Scotland ethnic category 2011 census,10,3 +154179001,Pakistani,9,3 +186002003,Pakistani,9,3 +81035008,Pakistani (Urduspeakers),9,3 +92461000000105,Pakistani or British Pakistani - ethnic category 2001 census,9,3 +976811000000108,Asian or Asian British: Pakistani - England and Wales ethnic category 2011 census,9,3 +977711000000100,Asian or Asian British: Pakistani - Northern Ireland ethnic category 2011 census,9,3 +978071000000106,"Asian or Asian Scottish or Asian British: Pakistani, Pakistani Scottish or Pakistani British - Scotland ethnic category 2011 census",9,3 +978081000000108,Asian or Asian Scottish or Asian British: Pakistani Pakistani Scottish or Pakistani British - Scotland ethnic category 2011 census,9,3 +976821000000102,Asian or Asian British: Pakistani - England and Wales ethnic category 2011 census,9,3 +977721000000106,Asian or Asian British: Pakistani - Northern Ireland ethnic category 2011 census,9,3 +110751000000108,Indian or British Indian - ethnic category 2001 census,8,3 +154178009,Indian,8,3 +154189002,Indian sub-continent (NMO),8,3 +154225001,Indian,8,3 +186001005,Indian (East Indian),8,3 +186012005,Indian sub-continent (NMO),8,3 +186045005,Indian,8,3 +64483007,Indians (Hindi-speaking),8,3 +92641000000107,Punjabi - ethnic category 2001 census,8,3 +976791000000107,Asian or Asian British: Indian - England and Wales ethnic category 2011 census,8,3 +977591000000103,Asian or Asian British: Indian - Northern Ireland ethnic category 2011 census,8,3 +978111000000100,"Asian or Asian Scottish or Asian British: Indian, Indian Scottish or Indian British - Scotland ethnic category 2011 census",8,3 +977601000000109,Asian or Asian British: Indian - Northern Ireland ethnic category 2011 census,8,3 +976801000000106,Asian or Asian British: Indian - England and Wales ethnic category 2011 census,8,3 +978121000000106,Asian or Asian Scottish or Asian British: Indian Indian Scottish or Indian British - Scotland ethnic category 2011 census,8,3 +414481008,Indian (racial group),8,3 +110771000000104,Black and White - ethnic category 2001 census,7,2 +154175007,"Black - other, mixed",7,2 +154176008,Other Black - Black/White orig,7,2 +154177004,Other Black - Black/Asian orig,7,2 +154196000,"Other ethnic, mixed origin",7,2 +154197009,"Other ethnic, Black/White orig",7,2 +154199007,"Other ethnic, mixed white orig",7,2 +154200005,"Other ethnic, other mixed orig",7,2 +185998001,"Black - other, mixed",7,2 +185999009,Other Black - Black/White orig,7,2 +186000006,Other Black - Black/Asian orig,7,2 +186019001,"Other ethnic, mixed origin",7,2 +186022004,"Other ethnic, mixed white origin",7,2 +186023009,"Other ethnic, other mixed origin",7,2 +315239007,Mixed ethnic census group,7,2 +92451000000107,Other Mixed background - ethnic category 2001 census,7,2 +92581000000100,Black and Asian - ethnic category 2001 census,7,2 +92591000000103,Black and Chinese - ethnic category 2001 census,7,2 +92601000000109,Chinese and White - ethnic category 2001 census,7,2 +92611000000106,Asian and Chinese - ethnic category 2001 census,7,2 +92621000000100,Other Mixed or Mixed unspecified - ethnic category 2001 census,7,2 +92631000000103,Mixed Asian - ethnic category 2001 census,7,2 +92721000000106,Mixed Black - ethnic category 2001 census,7,2 +976771000000108,Mixed multiple ethnic groups: any other Mixed or multiple ethnic background - England and Wales ethnic category 2011 census,7,2 +976781000000105,Mixed multiple ethnic groups: any other Mixed or Multiple ethnic background - England and Wales ethnic category 2011 census,7,2 +977551000000106,Mixed multiple ethnic groups: any other Mixed or multiple ethnic background - Northern Ireland ethnic category 2011 census,7,2 +977561000000109,Mixed multiple ethnic groups: any other Mixed or Multiple ethnic background - Northern Ireland ethnic category 2011 census,7,2 +978051000000102,Mixed or multiple ethnic groups: any Mixed or multiple ethnic group - Scotland ethnic category 2011 census,7,2 +978061000000104,Mixed or multiple ethnic groups: any Mixed or Multiple ethnic group - Scotland ethnic category 2011 census,7,2 +414752008,Mixed racial group (racial group),7,2 +154198004,"Other ethnic, Asian/White orig",6,2 +186021006,"Other ethnic, Asian/White origin",6,2 +92441000000109,White and Asian - ethnic category 2001 census,6,2 +976751000000104,Mixed multiple ethnic groups: White and Asian - England and Wales ethnic category 2011 census,6,2 +976761000000101,Mixed multiple ethnic groups: white and Asian - England and Wales ethnic category 2011 census,6,2 +977431000000100,Mixed multiple ethnic groups: White and Asian - Northern Ireland ethnic category 2011 census,6,2 +977441000000109,Mixed multiple ethnic groups: white and Asian - Northern Ireland ethnic category 2011 census,6,2 +154202002,Black African and White,5,2 +186025002,Black African and White,5,2 +315635008,Black African and White,5,2 +413466005,Afro-Caucasian,5,2 +92431000000100,White and Black African - ethnic category 2001 census,5,2 +976731000000106,Mixed multiple ethnic groups: White and Black African - England and Wales ethnic category 2011 census,5,2 +976741000000102,Mixed multiple ethnic groups: white and black African - England and Wales ethnic category 2011 census,5,2 +977411000000108,Mixed multiple ethnic groups: White and Black African - Northern Ireland ethnic category 2011 census,5,2 +977421000000102,Mixed multiple ethnic groups: white and black African - Northern Ireland ethnic category 2011 census,5,2 +154201009,Black Caribbean and White,4,2 +186020007,"Other ethnic, Black/White origin",4,2 +186024003,Black Caribbean and White,4,2 +315634007,Black Caribbean and White,4,2 +92421000000102,White and Black Caribbean - ethnic category 2001 census,4,2 +976711000000103,Mixed multiple ethnic groups: White and Black Caribbean - England and Wales ethnic category 2011 census,4,2 +976721000000109,Mixed multiple ethnic groups: white and black Caribbean - England and Wales ethnic category 2011 census,4,2 +977391000000108,Mixed multiple ethnic groups: White and Black Caribbean - Northern Ireland ethnic category 2011 census,4,2 +977401000000106,Mixed multiple ethnic groups: white and black Caribbean - Northern Ireland ethnic category 2011 census,4,2 +10117001,Finns,3,1 +1036211000000103,Slovak Roma,3,1 +1036251000000104,Czech Roma,3,1 +1036281000000105,Hungarian Roma,3,1 +1036301000000106,Polish Roma,3,1 +1036321000000102,Romanian Roma,3,1 +1036341000000109,Roma,3,1 +1036361000000105,Bulgarian Roma,3,1 +110401000000103,Turkish - ethnic category 2001 census,3,1 +113169009,Armenians,3,1 +14045001,Caucasian,3,1 +14176005,Danes,3,1 +1451003,Greeks,3,1 +154163002,Other white ethnic group,3,1 +154192003,Greek &/or Greek Cypriot (NMO),3,1 +154193008,Turkish &/or Turkish Cypriot (NMO),3,1 +154194002,Other European (NMO),3,1 +154208003,Irish traveller,3,1 +154213004,New Zealand European,3,1 +154214005,Other European in New Zealand,3,1 +17095009,Norwegians,3,1 +18583004,Estonians,3,1 +185984009,White - ethnic group,3,1 +185987002,Other white ethnic group,3,1 +186015007,Greek &/or Greek Cypriot (NMO),3,1 +186016008,Turkish &/or Turkish Cypriot (NMO),3,1 +186017004,Other European (NMO),3,1 +186031004,Irish traveller,3,1 +186036009,New Zealand European,3,1 +19434008,French,3,1 +270466006,Greek/Greek Cypriot (NMO),3,1 +270467002,Turkish/Turkish Cypriot (NMO),3,1 +275599007,Greek (NMO),3,1 +275600005,Greek Cypriot (NMO),3,1 +275601009,Turkish (NMO),3,1 +275602002,Turkish Cypriot (NMO),3,1 +28409002,Spaniards,3,1 +28562006,Poles,3,1 +286009,Czech,3,1 +29343004,Bulgarian,3,1 +315238004,Other white ethnic group,3,1 +315283003,Irish traveller,3,1 +31637002,Italians,3,1 +32045009,Georgians,3,1 +36329002,Slovak,3,1 +367505005,Caucasian (living organism),3,1 +393199009,Gypsies,3,1 +394149000,Gypsies,3,1 +394635008,Gypsies,3,1 +40182006,Gypsies,3,1 +414152003,European,3,1 +445343003,Romanian,3,1 +45465003,Basques,3,1 +518701000000103,Romanian,3,1 +518721000000107,Bulgarian,3,1 +519681000000108,Czech,3,1 +53460002,Serbs,3,1 +56056003,Belgians,3,1 +64693008,Hungarian,3,1 +668681000000107,Other white ethnic group,3,1 +68486007,Austrians,3,1 +710011000000101,Slovak,3,1 +718021000000105,Portuguese,3,1 +718958002,Roma,3,1 +718959005,Czech Roma,3,1 +718960000,Romanian Roma,3,1 +718961001,Slovak Roma,3,1 +718962008,Bulgarian Roma,3,1 +718963003,Hungarian Roma,3,1 +718964009,Polish Roma,3,1 +72809004,Icelanders,3,1 +733078003,Ukrainian,3,1 +733446001,Canadian,3,1 +735001008,Scandinavian,3,1 +76574004,Swiss,3,1 +7695005,Germans,3,1 +80208004,Portuguese,3,1 +81403004,Swedes,3,1 +85163001,Russians,3,1 +88911000000101,Irish Traveller - ethnic category 2001 census,3,1 +88921000000107,Traveller - ethnic category 2001 census,3,1 +88931000000109,Gypsy/Romany - ethnic category 2001 census,3,1 +88941000000100,Polish - ethnic category 2001 census,3,1 +88951000000102,Baltic States (Estonian or Latvian or Lithuanian) - ethnic category 2001 census,3,1 +88961000000104,Commonwealth of (Russian) Independent States - ethnic category 2001 census,3,1 +88971000000106,Albanian - ethnic category 2001 census,3,1 +88981000000108,Serbian - ethnic category 2001 census,3,1 +92411000000108,Other White background - ethnic category 2001 census,3,1 +92791000000109,Cypriot (part not stated) - ethnic category 2001 census,3,1 +93921000000101,Ulster Scots - ethnic category 2001 census,3,1 +93931000000104,Greek - ethnic category 2001 census,3,1 +93941000000108,Greek Cypriot - ethnic category 2001 census,3,1 +93951000000106,Turkish Cypriot - ethnic category 2001 census,3,1 +93961000000109,Italian - ethnic category 2001 census,3,1 +93981000000100,Kosovan - ethnic category 2001 census,3,1 +93991000000103,Bosnian - ethnic category 2001 census,3,1 +94001000000108,Croatian - ethnic category 2001 census,3,1 +94011000000105,Other republics which made up the former Yugoslavia - ethnic category 2001 census,3,1 +94021000000104,Mixed Irish and other White - ethnic category 2001 census,3,1 +94031000000102,Other mixed White - ethnic category 2001 census,3,1 +94041000000106,Other White European or European unspecified or Mixed European - ethnic category 2001 census,3,1 +94051000000109,Other White or White unspecified - ethnic category 2001 census,3,1 +9533000,Dutch,3,1 +976671000000104,White: Gypsy or Irish Traveller - England and Wales ethnic category 2011 census,3,1 +976691000000100,White: any other White background - England and Wales ethnic category 2011 census,3,1 +977351000000100,White - Northern Ireland ethnic category 2011 census,3,1 +977371000000109,Irish Traveller - Northern Ireland ethnic category 2011 census,3,1 +977971000000108,White: Gypsy or Irish Traveller - Scotland ethnic category 2011 census,3,1 +978011000000101,White: Polish - Scotland ethnic category 2011 census,3,1 +978031000000109,White: any other White ethnic group - Scotland ethnic category 2011 census,3,1 +978041000000100,White: any other white ethnic group - Scotland ethnic category 2011 census,3,1 +978021000000107,White: Polish - Scotland ethnic category 2011 census,3,1 +413773004,Caucasian (racial group),3,1 +977381000000106,Irish Traveller - Northern Ireland ethnic category 2011 census,3,1 +976701000000100,White: any other white background - England and Wales ethnic category 2011 census,3,1 +977981000000105,White: Gypsy or Irish Traveller - Scotland ethnic category 2011 census,3,1 +976681000000102,White: Gypsy or Irish Traveller - England and Wales ethnic category 2011 census,3,1 +154162007,White Irish,2,1 +154191005,Irish (NMO),2,1 +185986006,White Irish,2,1 +186014006,Irish (NMO),2,1 +315237009,White Irish,2,1 +494161000000100,White Irish - ethnic category 2001 census,2,1 +92401000000106,Irish - ethnic category 2001 census,2,1 +976651000000108,White: Irish - England and Wales ethnic category 2011 census,2,1 +977951000000104,White: Irish - Scotland ethnic category 2011 census,2,1 +976661000000106,White: Irish - England and Wales ethnic category 2011 census,2,1 +494171000000107,White Irish - ethnic category 2001 census,2,1 +494181000000109,White Irish - ethnic category 2001 census,2,1 +977961000000101,White: Irish - Scotland ethnic category 2011 census,2,1 +110761000000106,English - ethnic category 2001 census,1,1 +14999008,Welsh,1,1 +154160004,White - ethnic group,1,1 +154161000,White British,1,1 +185985005,White British,1,1 +25804004,English,1,1 +315236000,White British,1,1 +401213008,White Scottish,1,1 +401214002,Other white British ethnic group,1,1 +41121000000107,Other white British ethnic group,1,1 +43481000000100,Other white British ethnic group,1,1 +44881000000100,White Scottish,1,1 +44891000000103,Other white British ethnic group,1,1 +494131000000105,White British - ethnic category 2001 census,1,1 +77711000000105,Other white British ethnic group,1,1 +82121000000108,Other white British ethnic group,1,1 +92391000000108,British or mixed British - ethnic category 2001 census,1,1 +92541000000108,Scottish - ethnic category 2001 census,1,1 +92551000000106,Welsh - ethnic category 2001 census,1,1 +92561000000109,Northern Irish - ethnic category 2001 census,1,1 +92571000000102,Cornish - ethnic category 2001 census,1,1 +976631000000101,White: English or Welsh or Scottish or Northern Irish or British - England and Wales ethnic category 2011 census,1,1 +977911000000103,White: Scottish - Scotland ethnic category 2011 census,1,1 +977931000000106,White: other British - Scotland ethnic category 2011 census,1,1 +977921000000109,White: Scottish - Scotland ethnic category 2011 census,1,1 +494151000000103,White British - ethnic category 2001 census,1,1 +976641000000105,White: English or Welsh or Scottish or Northern Irish or British - England and Wales ethnic category 2011 census,1,1 +977361000000102,White - Northern Ireland ethnic category 2011 census,1,1 +977941000000102,White: other British - Scotland ethnic category 2011 census,1,1 +494141000000101,White British - ethnic category 2001 census,1,1 \ No newline at end of file diff --git a/codelists/opensafely-smoking-clear.csv b/codelists/opensafely-smoking-clear.csv new file mode 100644 index 0000000..ebda367 --- /dev/null +++ b/codelists/opensafely-smoking-clear.csv @@ -0,0 +1,102 @@ +CTV3Code,Description,CodeSource,Category +1377.,Ex-trivial smoker (<1/day),QOF,E +1378.,Ex-light smoker (1-9/day),QOF,E +1379.,Ex-moderate smoker (10-19/day),QOF,E +137A.,Ex-heavy smoker (20-39/day),QOF,E +137B.,Ex-very heavy smoker (40+/day),QOF,E +137F.,Ex-smoker - amount unknown,QOF,E +137K.,Stopped smoking,QOF,E +137N.,Ex-pipe smoker,QOF,E +137O.,Ex-cigar smoker,QOF,E +137T.,Date ceased smoking,QOF,E +137l.,Ex roll-up cigarette smoker,QOF,E +Ub0p1,Time since stopped smoking,QOF,E +Ub1na,Ex-smoker,QOF,E +XE0oj,Ex-trivial cigarette smoker (<1/day),QOF,E +XE0ok,Ex-light cigarette smoker (1-9/day),QOF,E +XE0ol,Ex-moderate cigarette smoker (10-19/day),QOF,E +XE0om,Ex-heavy cigarette smoker (20-39/day),QOF,E +XE0on,Ex-very heavy cigarette smoker (40+/day),QOF,E +XE0op,Ex-cigarette smoker amount unknown,QOF,E +Xa1bv,Ex-cigarette smoker,QOF,E +XaQ8V,Ex roll-up cigarette smoker,QOF,E +XaQUI,Ex-smoker annual review,QOF,E +XaQzw,Recently stopped smoking,QOF,E +XaXP6,Stopped smoking during pregnancy,QOF,E +XaXP8,Stopped smoking before pregnancy,QOF,E +XaXP9,Smoker before confirmation of pregnancy,QOF,E +Y0984,Smoking status at 4 weeks - Ex-smoker,Smoke_Text,E +Y1152,Smoke free at 6 weeks confirmed by CO reading,Smoke_Text,E +Y1153,Smoke free at 12 weeks confirmed by CO reading,Smoke_Text,E +Y6626,Ex cigar smoker,Smoke_Text,E +Y6627,Ex pipe smoker,Smoke_Text,E +Y6628,Ex smoker,Smoke_Text,E +1371.,Non-smoker (& [never smoked tobacco]),QOF,N +137L.,Current non-smoker,QOF,N +Ub0oq,Non-smoker,QOF,N +XE0oh,Never smoked tobacco,QOF,N +XaQUC,Non-smoker annual review,QOF,N +XaXYo,Tobacco smoke free home,Smoke_Text,N +Y0993,Smoking status between 4 and 52 weeks - Current non-smoker,Smoke_Text,N +Y099f,Smoking status at 52 weeks - Current non-smoker,Smoke_Text,N +Y09a0,Smoking status at 52 weeks - Smoker,Smoke_Text,S +1372.,(Trivial smoker - < 1 cig/day) or (occasional smoker),QOF,S +1373.,Light cigarette smoker (1-9 cigs/day),QOF,S +1374.,Moderate cigarette smoker (10-19 cigs/day),QOF,S +1375.,Heavy cigarette smoker (20-39 cigs/day),QOF,S +1376.,Very heavy cigarette smoker (40+ cigs/day),QOF,S +137H.,Pipe smoker,QOF,S +137J.,Cigar smoker,QOF,S +137M.,Rolls own cigarettes,QOF,S +137P.,Smoker (& cigarette),QOF,S +137Q.,Smoking: [started] or [restarted],QOF,S +137R.,Smoker,QOF,S +E251.,Tobacco dependence,Tobacco_Text,S +E2510,"Tobacco dependence, unspecified",Tobacco_Text,S +E2511,"Tobacco dependence, continuous",Tobacco_Text,S +E2512,"Tobacco dependence, episodic",Tobacco_Text,S +E251z,Tobacco dependence NOS,Tobacco_Text,S +Eu17.,[X]Mental and behavioural disorder due to use of tobacco,Tobacco_Text,S +Eu170,[X]Mental & behav dis due to use tobacco: acute intoxication,Tobacco_Text,S +Eu171,[X]Mental and behav dis due to use of tobacco: harmful use,Tobacco_Text,S +Eu172,[X]Mental and behav dis due to use tobacco: dependence syndr,Tobacco_Text,S +Eu175,[X]Mental & behav dis due to use tobacco: psychotic disorder,Tobacco_Text,S +Eu176,[X]Mental and behav dis due to use tobacco: amnesic syndrome,Tobacco_Text,S +Eu177,[X]Men & beh dis due tobacco: resid & late-onset psychot dis,Tobacco_Text,S +Eu17y,[X]Men & behav dis due to use tobacco: oth men & behav dis,Tobacco_Text,S +Eu17z,[X]Ment & behav dis due use tobacco: unsp ment & behav dis,Tobacco_Text,S +H3101,Smokers' cough,Smoke_Text,S +Ua2Cl,Smokes in bed,QOF,S +Ub1tR,Occasional cigarette smoker,QOF,S +Ub1tS,Light cigarette smoker,QOF,S +Ub1tT,Moderate cigarette smoker,QOF,S +Ub1tU,Heavy cigarette smoker,QOF,S +Ub1tV,Very heavy cigarette smoker,QOF,S +Ub1tW,Chain smoker,QOF,S +X20Qm,Smokers keratosis,Smoke_Text,S +XE0oi,Trivial cigarette smoker (less than one cigarette/day),QOF,S +XE0oq,Cigarette smoker,QOF,S +XE0or,Smoking started,QOF,S +XE1b4,Tobacco dependence (& [dependent smoker]),Smoke_Text,S +XaBSp,Smoking restarted,QOF,S +XaIIu,Smoking reduced,QOF,S +XaIkW,Thinking about stopping smoking,QOF,S +XaIkX,Ready to stop smoking,QOF,S +XaIkY,Not interested in stopping smoking,QOF,S +XaItg,Reason for restarting smoking,QOF,S +XaJX2,Minutes from waking to first tobacco consumption,QOF,S +XaLQh,Wants to stop smoking,QOF,S +XaQUB,Current smoker annual review,Smoke_Text,S +XaWNE,Failed attempt to stop smoking,QOF,S +XagO3,Occasional tobacco smoker,QOF,S +Y0983,Smoking status at 4 weeks - Smoker,Smoke_Text,S +Y0994,Smoking status between 4 and 52 weeks - Smoker,Smoke_Text,S +Y19d7,Stop Smoking Medication Offered,QOF,S +Y2869,Wants to stop smoking,QOF,S +Y3985,Reduced Smoker,QOF,S +Y7110,Heavy smoker - 20-39 cigs/day,Smoke_Text,S +Y7467,Light smoker - 1-9 cigs/day,Smoke_Text,S +Y7677,Moderate smoker - 10-19 cigs/d,Smoke_Text,S +Y9843,Very heavy smoker - 40+cigs/d,Smoke_Text,S +YA602,Contented smoker,Smoke_Text,S +ZV6D8,[V]Tobacco abuse counselling,Tobacco_Text,S \ No newline at end of file diff --git a/codelists/opensafely-smoking-unclear.csv b/codelists/opensafely-smoking-unclear.csv new file mode 100644 index 0000000..a56c44e --- /dev/null +++ b/codelists/opensafely-smoking-unclear.csv @@ -0,0 +1,93 @@ +CTV3Code,Description,CodeSource,Category +E2513,Tobacco dependence in remission,Tobacco_Text,E +Eu173,[X]Mental and behav dis due to use tobacco: withdrawal state,Tobacco_Text,E +Eu174,[X]Men & behav dis due tobacco: withdrawl state wth delirium,Tobacco_Text,E +XaXPD,Smoker in household,QOF,N +137C.,Keeps trying to stop smoking,QOF,S +137D.,Admitted tobacco cons untrue ?,QOF,S +137G.,Trying to give up smoking,QOF,S +6791.,Health education - smoking,QOF,S +67A3.,Pregnancy smoking advice,QOF,S +9OO..,Stop smoking monitoring admin: [monitoring] or [clinic],QOF,S +9OO1.,Attends stop smoking monitoring,QOF,S +9OO2.,Refuses stop smoking monitor,QOF,S +9OO3.,Stop smoking monitor default,QOF,S +9OO4.,Stop smoking monitoring first letter,QOF,S +9OO5.,Stop smoking monitoring second letter,QOF,S +9OO6.,Stop smoking monitoring third letter,QOF,S +9OO7.,Stop smoking monitoring verbal invite,QOF,S +9OO8.,Stop smoking monitoring telephone invite,QOF,S +9OO9.,Stop smoking monitoring delete,QOF,S +9OOA.,Stop smoking monitoring check done,QOF,S +Ua1Nz,Smoking cessation advice,QOF,S +Ua1O0,Advice on effects of smoking on health,QOF,S +Ub1nZ,Tobacco use and exposure,QOF,S +Xa1dC,Advice on smoking,QOF,S +XaBUG,Smoking monitoring status,QOF,S +XaCGl,Smoking monitoring invitation,QOF,S +XaEKU,Nicotine replacement therapy,QOF,S +XaF98,Tobacco related optic neuropathy,Tobacco_Text,S +XaFw9,Referral to stop-smoking clinic,QOF,S +XaIQi,Smoking cessation milestones,QOF,S +XaIQj,Negotiated date for cessation of smoking,QOF,S +XaIQk,Smoking status at 4 weeks,QOF,S +XaIQl,Smoking status between 4 and 52 weeks,QOF,S +XaIQm,Smoking status at 52 weeks,QOF,S +XaIQn,Nicotine replacement therapy provided free,QOF,S +XaIpo,Did not attend smoking cessation clinic,QOF,S +XaItC,Referral to smoking cessation advisor,QOF,S +XaIth,Smoking cessation programme start date,QOF,S +XaIuQ,Cigarette pack-years,QOF,S +XaIye,Seen by smoking cessation advisor,QOF,S +XaKlS,[V]Personal history of tobacco abuse,QOF,S +XaLD4,Smoking cessation advice provided by community pharmacist,QOF,S +XaLIY,Excepted from smoking quality indicators: Patient unsuitable,QOF,S +XaLIZ,Excepted from smoking quality indicators: Informed dissent,QOF,S +XaLMR,Attends practice smoking cessation clinic,QOF,S +XaLMS,Attends smoking cessation clinic not at practice,QOF,S +XaMlI,Smoking cessation drug therapy,QOF,S +XaMlJ,Nicotine replacement therapy using nicotine patches,QOF,S +XaMlK,Nicotine replacement therapy using nicotine gum,QOF,S +XaMlL,Nicotine replacement therapy using nicotine inhalator,QOF,S +XaMlM,Nicotine replacement therapy using nicotine lozenges,QOF,S +XaMlN,Other specified smoking cessation therapy,QOF,S +XaMt6,Smoking cessation therapy NOS,QOF,S +XaMwY,Smoking cessation therapy,QOF,S +XaPid,Smoking cessation enhanced services administration,QOF,S +XaQT5,Referral to NHS stop smoking service,QOF,S +XaQVQ,Brief intervention for smoking cessation,QOF,S +XaREz,Smoking cessation programme declined,QOF,S +XaW0h,Practice based smoking cessation programme start date,QOF,S +XaX0O,Consent given follow-up after smoking cessation intervention,QOF,S +XaX0i,Declin cons follow-up evaluation after smoking cess interven,QOF,S +XaX5W,Consent given for follow-up by smoking cessation team,QOF,S +XaX5X,Declined consent for follow-up by smoking cessation team,QOF,S +XaXPX,Smoking status at 12 weeks,QOF,S +XaXR4,Referral for smoking cessation service offered,QOF,S +XaXUL,Lost to smoking cessation follow-up,QOF,S +XaXnG,Stop smoking service opportunity signposted,QOF,S +XaXnf,Stop smoking invitation short message service text message,QOF,S +XaXng,Stop smoking invitation first SMS text message,QOF,S +XaXni,Stop smoking invitation second SMS text message,QOF,S +XaXnk,Stop smoking invitation third SMS text message,QOF,S +XaZ01,Smoking cessation drug therapy declined,QOF,S +XaZhB,Smoking cessation 12 week follow-up,QOF,S +Xaa26,Number of previous attempts to stop smoking,QOF,S +XaaDx,Referral to smoking cessation service declined,QOF,S +XaaDy,Referral to smoking cessation service,QOF,S +XacZz,Varenicline smoking cessation therapy declined,QOF,S +Xaca0,Varenicline smoking cessation therapy offered,QOF,S +Xaety,Varenicline therapy,QOF,S +Y0018,Smoking Target Notes,QOF,S +Y01e6,Loose tobacco consumption,Tobacco_Text,S +Y0790,Prompted for smoking cessation support by Smoke Free Bus,Smoke_Text,S +XaFst,Over the counter nicotine replacement therapy,QOF,S +XaJIs,Lifestyle advice regarding smoking,QOF,S +XaRFh,Smoking cessation advice declined,QOF,S +XaZIE,Waterpipe tobacco consumption,QOF,S +137Z.,Tobacco consumption NOS,QOF,X +Ub0p2,Total time smoked,QOF,X +Ub1tI,Cigarette consumption,QOF,X +Ub1tJ,Cigar consumption,QOF,X +Ub1tK,Pipe tobacco consumption,QOF,X +XaIr7,Smoking free weeks,QOF,S \ No newline at end of file diff --git a/codelists/user-angel-wong-hazardous-drinking.csv b/codelists/user-angel-wong-hazardous-drinking.csv new file mode 100644 index 0000000..16bb188 --- /dev/null +++ b/codelists/user-angel-wong-hazardous-drinking.csv @@ -0,0 +1,192 @@ +code,term +10741871000119101,Alcohol dependence in pregnancy +10755041000119100,Alcohol dependence in childbirth +1082601000119104,Ascites due to alcoholic cirrhosis +1082611000119101,Ascites due to alcoholic hepatitis +1082621000119108,Hepatic coma due to alcoholic liver failure +1084171000000100,Signposting to alcohol misuse service +1085021000119106,Hepatic ascites due to chronic alcoholic hepatitis +1087451000000109,Late onset alcohol-induced psychosis +1099141000000106,Referral to alcohol misuse service +1099951000000107,Alcoholics anonymous +133301000119102,Degenerative brain disorder caused by alcohol +135301000119103,Parasomnia caused by alcohol +135311000119100,Insomnia caused by alcohol +135321000119107,Hypersomnia caused by alcohol +135331000119105,Circadian rhythm sleep disorder caused by alcohol +135761000119101,Cerebral degeneration due to alcoholism +15167005,Alcohol abuse +154211000119108,Chronic pancreatitis due to chronic alcoholism +160577002,Heavy drinker - 7-9u/day +160578007,Very heavy drinker - greater than 9 units/day +160585006,Ex-heavy drinker - (7-9u/day) +160587003,Ex-very heavy drinker - greater than 9 units/day +160592001,Alcohol intake above recommended sensible limits +161466001,History of alcoholism +163184002,On examination - breath - alcohol smell +166251000000100,Alcohol misuse enhanced services administration +166471000000105,Alcohol misuse enhanced service completed +16912131000119107,History of alcoholic hepatitis +183388004,Aversion therapy - alcoholism +183486001,Admitted to alcohol detoxification center +18653004,Alcohol intoxication delirium +191471000,Korsakov's alcoholic psychosis with peripheral neuritis +191475009,Chronic alcoholic brain syndrome +191476005,Alcohol withdrawal hallucinosis +191478006,Alcoholic paranoia +191480000,Alcohol withdrawal syndrome +191802004,Acute alcoholic intoxication in alcoholism +191804003,Continuous acute alcoholic intoxication in alcoholism +191805002,Episodic acute alcoholic intoxication in alcoholism +191806001,"Acute alcoholic intoxication in remission, in alcoholism" +191811004,Continuous chronic alcoholism +191812006,Episodic chronic alcoholism +191813001,Chronic alcoholism in remission +191882002,"Nondependent alcohol abuse, continuous" +191883007,"Nondependent alcohol abuse, episodic" +191884001,Nondependent alcohol abuse in remission +192003008,Sleep drunkenness +192811002,Alcoholic encephalopathy +19303008,Alcohol myopathy +198421000000108,Hazardous alcohol use +198431000000105,Harmful alcohol use +20093000,Alcohol rehabilitation and detoxification +2043009,Alcoholic gastritis +205788004,Fetal alcohol syndrome +205791004,Fetal or neonatal effect of maternal use of alcohol +21007002,Wernicke's disease +212807002,Grain alcohol causing toxic effect +228278007,Fairly heavy drinker +228279004,Very heavy drinker +228281002,Problem drinker +228310006,Drinks in morning to get rid of hangover +228315001,Binge drinker +228316000,Alcoholic binges exceeding sensible amounts +228317009,Alcoholic binges exceeding safe amounts +230353003,Morel laminar sclerosis +230800004,Alcoholic coma +231161000000109,Delivery of rehabilitation for alcohol addiction +231467000,Absinthe addiction +234341005,Alcohol-related macrocytosis +234366009,Alcohol-related sideroblastic anemia +235875008,Alcoholic hepatitis +235880004,Alcoholic fibrosis and sclerosis of liver +235881000,Alcoholic hepatic failure +235942001,Alcohol-induced acute pancreatitis +235952002,Alcohol-induced chronic pancreatitis +237641009,Alcohol-induced hypoglycemia +237738005,Alcohol-induced pseudo-Cushing's syndrome +23915005,Combined alcohol and drug rehabilitation and detoxification +24165007,Alcoholism counseling +247721000000109,Alcohol abuse monitoring +25702006,Alcohol intoxication +268645007,Nondependent alcohol abuse +268796000,Fetal or neonatal effect of placental or breast transfer of alcohol +278363000,Alcoholic macrocytosis +281004,Dementia associated with alcoholism +284591009,Persistent alcohol abuse +288021000119107,Disorder due to alcohol abuse +288031000119105,Alcohol induced disorder co-occurrent and due to alcohol dependence +288041000119101,Perceptual disturbance due to alcohol withdrawal +29212009,Alcohol-induced organic mental disorder +29756008,Alcoholic pellagra +300939009,Abstinent alcoholic +300992002,Alcohol-induced cerebellar ataxia +307757001,Chronic alcoholic hepatitis +308692003,Alcohol-induced flushing +308742005,Alcohol withdrawal-induced convulsion +309783001,Esophageal varices in alcoholic cirrhosis of the liver +314539001,Alcohol related optic neuropathy +334631000000103,Feels it is not necessary to reduce alcohol consumption +34938008,Alcohol-induced anxiety disorder +35637008,Alcohol rehabilitation +361268000,Alcohol-induced epilepsy +361272001,Cerebellar ataxia due to alcoholism +361273006,Alcoholic cerebellar degeneration +36558000,Fetal or neonatal effect of alcohol transmitted via placenta and/or breast milk +366371000000105,Brief intervention for excessive alcohol consumption completed +366421000000103,Extended intervention for excessive alcohol consumption completed +371434005,History of alcohol abuse +372501000000100,Seen by counsellor for alcohol misuse +379411000000105,Brief intervention for excessive alcohol consumption declined +380861000000109,Declined referral to specialist alcohol treatment service +386449006,Substance use treatment: alcohol withdrawal +38670004,Referral to alcoholism rehabilitation service +40241000119109,Gastric hemorrhage due to alcoholic gastritis +41083005,Alcohol-induced sleep disorder +41309000,Alcoholic liver damage +413968004,Denies alcohol abuse +417633001,Alcohol induced hallucinations +420054005,Alcoholic cirrhosis +42344001,Alcohol-induced psychosis +431260004,Referral to specialist alcohol treatment service +44047000,Zieve's syndrome +440652002,Alcohol abuse cessation behavior +442444001,Referral to specialist alcohol treatment service declined by patient +445507008,Inflammation of pancreas caused by alcohol +50325005,Alcoholic fatty liver +527961000000108,Counselling about alcohol by other agency +53936005,Alcohol-induced mood disorder +55571001,Alcoholic ketoacidosis +609437000,Fetal Alcohol Spectrum Disorder +609438005,Fetal or neonatal effect of maternal alcohol addiction +61144001,Alcohol-induced psychotic disorder with delusions +62213004,Combined alcohol and drug rehabilitation +64297001,Detoxication psychiatric therapy for alcoholism +66590003,Alcohol dependence +69482004,Korsakoff's psychosis +698321001,Neonatal effect of alcohol transmitted via breast milk +7052005,Alcohol hallucinosis +70701004,Alcoholic amblyopia +711118008,Facilitation of alcohol abuse recovery +713071004,Alcohol misuser in household +713181003,Chronic alcoholic liver disease +713370005,Acute on chronic alcoholic liver disease +713583005,Mild alcohol dependence +713862009,Severe alcohol dependence +714829008,Moderate alcohol dependence +719340007,Withdrawn from alcohol detoxification program +719848005,Disorder caused by alcohol +7200002,Alcoholism +720175009,Alcohol harm reduction program +720176005,Alcohol relapse prevention program +720178006,Alcohol twelve step program +721710005,Fibrosis of liver caused by alcohol +723103002,Gastric ulcer caused by alcohol +723882007,Duodenitis caused by ingestible alcohol +723926008,Perceptual disturbances and seizures co-occurrent and due to alcohol withdrawal +723927004,Psychotic disorder caused by alcohol with schizophreniform symptoms +723928009,Mood disorder with depressive symptoms caused by alcohol +723929001,Mood disorder with manic symptoms caused by alcohol +723930006,Mood disorder with mixed manic and depressive symptoms caused by alcohol +724574008,Neurological disorder caused by ingestible alcohol +73097000,Alcohol amnestic disorder +737363002,Alcohol abuse surveillance +754831000000102,Extended intervention for excessive alcohol consumption declined +765482002,Steatohepatitis caused by ingestible alcohol +767291004,Chronic pancreatitis due to acute alcohol intoxication +782181000000105,Alcohol rehabilitation and detoxification care management +78524005,Alcohol-induced sexual dysfunction +7916009,Alcoholic polyneuropathy +809401000000103,Referral to alcohol misuse clinic +82047000,Diarrhea caused by alcohol intake +827094004,Alcohol detoxification +83521008,Dilated cardiomyopathy caused by alcohol +837851000000102,Provision of written information about alcohol misuse +838376007,Chronic myopathy caused by alcohol +838386008,Acute alcoholic myopathy +840449007,Cognitive impairment caused by ingestible alcohol +85561006,Uncomplicated alcohol withdrawal +86325007,Non megaloblastic anemia due to alcoholism +8635005,Alcohol withdrawal delirium +86933000,Heavy drinker +870297003,Myopathy due to chronic alcoholism +87106005,Combined alcohol and drug detoxification +87810006,Megaloblastic anemia caused by alcoholism +892631000000102,In-house alcohol detoxification +918321000000104,Alcohol dependence resolved +933641000000103,Referral to mental health services deferred until alcohol misuse resolved +946101000000100,Specialist alcohol treatment service signposted +968891000000109,Alcohol relapse prevention +97571000119109,Thrombocytopenia co-occurrent and due to alcoholism +9953008,Acute alcoholic liver disease diff --git a/project.yaml b/project.yaml index 0aadb83..4686051 100644 --- a/project.yaml +++ b/project.yaml @@ -2,11 +2,33 @@ version: '3.0' # Ignore this`expectation` block. It is required but not used, and will be removed in future versions. expectations: - population_size: 1000 + population_size: 100000 actions: - generate_dataset: - run: ehrql:v1 generate-dataset analysis/dataset_definition.py --output output/dataset.csv.gz + generate_dataset_adults_s1: + run: > + ehrql:v1 generate-dataset analysis/dataset_definition.py + -- adults season1_start_date season1_end_date + --output output/input_adults_2016_2017.arrow + --dummy-data-file analysis/dummydata/dummyextract_adults_2016_2017.arrow outputs: highly_sensitive: - dataset: output/dataset.csv.gz + dataset: output/input_adults_2016_2017.arrow + + # manipulate_dataset_adults_s1: + # run: r:latest analysis/processing/data_manipulation_adults_s1.R + # needs: [generate_dataset_adults_s1] + # outputs: + # highly_sensitive: + # cohort: output/input_processed_adults_2016_2017.arrow + + # generate_dataset_infants_s1: + # run: > + # ehrql:v1 generate-dataset analysis/dataset_definition.py + # -- infants season1_start_date season1_end_date + # --output output/input_infants_2016_2017.arrow + # --dummy-data-file analysis/dummydata/dummyextract_infants_2016_2017.arrow + # outputs: + # highly_sensitive: + # dataset: output/input_infants_2016_2017.arrow + \ No newline at end of file