Skip to content

Machine-readable version of electronic health record phenotypes for Kuan V. and Denaxas S. et al.

License

Notifications You must be signed in to change notification settings

spiros/chronological-map-phenotypes

Repository files navigation

A chronological map of 308 physical and mental health conditions from 4 million patients

DOI

Machine-readable versions (CSV files) of electronic health record phenotyping algorithms for Kuan V., Denaxas S., Gonzalez-Izquierdo A. et al. A chronological map of 308 physical and mental health conditions from 4 million individuals in the National Health Service published in the Lancet Digital Health - DOI 10.1016/S2589-7500(19)30012-3

The phenotypes are defined across multiple controlled clinical terminologies depending on the source dataset used:

Dataset Contents Terminology
CPRD GOLD Longitudinal primary care records Read V2
HES APC Admitted patient hospitalization episodes ICD-10
ONS Deaths National death registrations ICD-10

More information and implementation details for algorithms located on the CALIBER Portal: https://www.caliberresearch.org/portal/phenotypes/chronological-map

Note: GitHub has a hardcoded file limit when rendering markdown files; as a result, this file is truncated when viewed on github.com (download it localy to render the entire contents properly).

Abdominal Hernia

Implementation

At the specified date, a patient is defined as having had 'Abdominal Hernia' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Abdominal Hernia' diagnosis or history of diagnosis or procedure during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Abdominal Hernia' or history of diagnosis during a hospitalization
OR
Secondary care (OPCS4)
1. ALL procedures for 'Abdominal Hernia'  during a hospitalization

Primary care (CPRD_hernia_abdo.csv)

Read code Read Term
14C3.00 H/O: abdominal hernia
25P2.00 O/E - reducible hernia
25P..12 O/E - hernia
25P3.00 O/E - irreducible hernia
25P4.00 O/E - strangulated hernia
25P5.00 O/E-hernia-cough impulse shown
25P6.00 O/E-hernia descends to scrotum
7H10.00 Simple excision of inguinal hernial sac
7H10y00 Other specified simple excision of inguinal hernial sac
7H10z00 Simple excision of inguinal hernial sac NOS
7H11000 Primary repair inguinal hernia using insert natural material
7H11100 Prim repair inguinal hernia using insert prosthet material
7H11111 Primary mesh repair of inguinal hernia
7H11200 Primary repair of inguinal hernia using sutures
7H11211 Bassini repair of inguinal hernia
7H11212 Ferguson repair of inguinal hernia
7H11213 McVay repair of inguinal hernia
7H11214 Shouldice repair of inguinal hernia
7H11300 Primary repair inguinal hernia & reduction of sliding hernia
7H11400 Endoscopic primary repair of inguinal hernia
7H11500 Bilateral inguinal hernia repair
7H11600 Primary laparoscopic repair of inguinal hernia
7H11.00 Primary repair of inguinal hernia
7H11y00 Other specified primary repair of inguinal hernia
7H11y11 Halsted repair of inguinal hernia
7H11z00 Primary repair of inguinal hernia NOS
7H12000 Repair recurr inguinal hernia using insert natural material
7H12100 Repair recurr inguinal hernia using insert prosthet material
7H12200 Repair of recurrent inguinal hernia using sutures
7H12300 Removal prosthet material fr previous repair inguinal hernia
7H12.00 Repair of recurrent inguinal hernia
7H12.11 Herniorrhaphy for recurrent inguinal hernia
7H12y00 Other specified repair of recurrent inguinal hernia
7H12z00 Repair of recurrent inguinal hernia NOS
7H13000 Primary repair femoral hernia using insert natural material
7H13100 Primary repair femoral hernia using insert prosthet material
7H13200 Primary repair of femoral hernia using sutures
7H13211 Cheadle repair of femoral hernia
7H13212 Henry repair of femoral hernia
7H13213 Lockwood repair of femoral hernia
7H13214 Lotheissen repair of femoral hernia
7H13215 McEvedy repair of femoral hernia
7H13300 Endoscopic primary repair of femoral hernia
7H13.00 Primary repair of femoral hernia
7H13.11 Femoral hernia repair NEC
7H13y00 Other specified primary repair of femoral hernia
7H13z00 Primary repair of femoral hernia NOS
7H14100 Repair recurr femoral hernia using insert prosthet material
7H14200 Repair of recurrent femoral hernia using sutures
7H14300 Removal prosthet material fr previous repair femoral hernia
7H14.00 Repair of recurrent femoral hernia
7H14.11 Herniorrhaphy for recurrent femoral hernia
7H14y00 Other specified repair of recurrent femoral hernia
7H14z00 Repair of recurrent femoral hernia NOS
7H15000 Repair of umbilical hernia using insert of natural material
7H15100 Repair umbilical hernia using insert of prosthetic material
7H15200 Repair of umbilical hernia using sutures
7H15300 Remov prosthet material fr previous repair umbilical hernia
7H15.00 Repair of umbilical hernia
7H15y00 Other specified repair of umbilical hernia
7H15z00 Repair of umbilical hernia NOS
7H16000 Prim repair incisional hernia using insert natural material
7H16100 Prim repair incisional hernia using insert prosthet material
7H16111 Primary mesh repair of incisional hernia
7H16200 Primary repair of incisional hernia using sutures
7H16.00 Primary repair of incisional hernia
7H16y00 Other specified primary repair of incisional hernia
7H16z00 Primary repair of incisional hernia NOS
7H17000 Repair recurr incision hernia using insert natural material
7H17100 Repair recurr incision hernia using insert prosthet material
7H17200 Repair of recurrent incisional hernia using sutures
7H17300 Removal prosthetic material fr prev repair incisional hernia
7H17.00 Repair of recurrent incisional hernia
7H17.11 Herniorrhaphy for recurrent incisional hernia
7H17y00 Other specified repair of recurrent incisional hernia
7H17z00 Repair of recurrent incisional hernia NOS
7H18000 Repair of ventral hernia using insert of natural material
7H18100 Repair of ventral hernia using insert of prosthetic material
7H18200 Repair of ventral hernia using sutures
7H18300 Removal prosthet material fr previous repair ventral hernia
7H18400 Repair of epigastric hernia, unspecified
7H18.00 Repair of other hernia of abdominal wall
7H18.11 Repair of other ventral hernia
7H18y00 Other specified repair of other hernia of abdominal wall
7H18z00 Repair of other hernia of abdominal wall NOS
7H1C000 Primary rep umbilical hernia using insert natural material
7H1C100 Prim rep umbilical hernia using insert prosthetic material
7H1C200 Primary repair of umbilical hernia using sutures
7H1C300 Remov prosthet material fr previous repair umbilical hernia
7H1C.00 Primary repair of umbilical hernia
7H1Cy00 Other specified primary repair of umbilical hernia
7H1Cz00 Primary repair of umbilical hernia NOS
7H1D100 Repair recurrent umbilical hernia us insert prosthetic mater
7H1D200 Repair of recurrent umbilical hernia using sutures
7H1D.00 Repair of recurrent umbilical hernia
7H1Dy00 Other specified repair of recurrent umbilical hernia
7H1Dz00 Repair of recurrent umbilical hernia NOS
7H1E000 Repair recur ventral hernia using insert natural material
7H1E100 Repair recurrent ventral hernia insert prosthetic material
7H1E200 Repair of recurrent ventral hernia using sutures
7H1E.00 Repair of recurrent other hernia of abdominal wall
7H1Ey00 Other specified repair recurrent other hernia abdominal wall
7H1Ez00 Repair of recurrent other hernia of abdominal wall NOS
82B2.00 Manual reduction of hernia
J300000 Unilateral inguinal hernia with gangrene
J300300 Bilateral recurrent inguinal hernia with gangrene
J300.00 Inguinal hernia with gangrene
J300z00 Inguinal hernia with gangrene NOS
J301000 Unilateral inguinal hernia with obstruction
J301100 Unilateral recurrent inguinal hernia with obstruction
J301200 Bilateral inguinal hernia with obstruction
J301.00 Inguinal hernia with obstruction
J301z00 Inguinal hernia with obstruction NOS
J302000 Unilateral inguinal hernia - irreducible
J302100 Unilateral recurrent inguinal hernia - irreducible
J302200 Bilateral inguinal hernia - irreducible
J302300 Bilateral recurrent inguinal hernia - irreducible
J302.00 Inguinal hernia - irreducible
J302z00 Inguinal hernia - irreducible and NOS
J303000 Unilateral inguinal hernia - simple
J303011 Left inguinal hernia
J303012 Right inguinal hernia
J303100 Unilateral recurrent inguinal hernia - simple
J303200 Bilateral inguinal hernia - simple
J303300 Bilateral recurrent inguinal hernia - simple
J303.00 Simple inguinal hernia
J303z00 Simple inguinal hernia NOS
J304.00 Direct inguinal hernia
J305.00 Indirect inguinal hernia
J30..00 Inguinal hernia
J30..11 Bubonocele
J30..12 Direct inguinal hernia
J30..13 Indirect inguinal hernia
J30..14 Scrotal hernia
J30y000 Unilateral inguinal hernia unspecified
J30y100 Unilateral recurrent inguinal hernia unspecified
J30y200 Bilateral inguinal hernia unspecified
J30y300 Bilateral recurrent inguinal hernia unspecified
J30y.00 Inguinal hernia unspecified
J30yz00 Unspecified inguinal hernia NOS
J30z.00 Inguinal hernia NOS
J310000 Unilateral femoral hernia with gangrene
J310.00 Femoral hernia with gangrene
J310z00 Femoral hernia with gangrene NOS
J311000 Unilateral femoral hernia with obstruction
J311.00 Femoral hernia with obstruction
J311z00 Femoral hernia with obstruction NOS
J312000 Unilateral femoral hernia - irreducible
J312100 Unilateral recurrent femoral hernia - irreducible
J312.00 Femoral hernia - irreducible
J312z00 Femoral hernia - irreducible and NOS
J313000 Unilateral femoral hernia - simple
J313100 Unilateral recurrent femoral hernia - simple
J313200 Bilateral femoral hernia - simple
J313.00 Simple femoral hernia
J313z00 Simple femoral hernia NOS
J31..00 Femoral hernia
J31y000 Unilateral femoral hernia - unspecified
J31y100 Unilateral recurrent femoral hernia - unspecified
J31y200 Bilateral femoral hernia - unspecified
J31y.00 Unspecified femoral hernia
J31yz00 Unspecified femoral hernia NOS
J31z.00 Femoral hernia NOS
J320100 Paraumbilical hernia with gangrene
J320z00 Umbilical hernia with gangrene NOS
J321100 Paraumbilical hernia with obstruction
J321.00 Umbilical hernia with obstruction
J321z00 Umbilical hernia with obstruction NOS
J322100 Paraumbilical hernia - irreducible
J322.00 Umbilical hernia - irreducible
J322z00 Umbilical hernia - irreducible and NOS
J323100 Simple paraumbilical hernia
J323.00 Simple umbilical hernia
J323z00 Simple umbilical hernia NOS
J32..00 Umbilical hernia
J32..12 Paraumbilical hernia
J32y100 Unspecified paraumbilical hernia
J32y.00 Unspecified umbilical hernia
J32yz00 Unspecified umbilical hernia NOS
J32z.00 Umbilical hernia NOS
J330100 Incisional hernia with gangrene
J330200 Epigastric hernia with gangrene
J330.00 Ventral hernia with gangrene
J330z00 Ventral hernia with gangrene NOS
J331100 Incisional hernia with obstruction
J331200 Epigastric hernia with obstruction
J331.00 Ventral hernia with obstruction
J331z00 Ventral hernia with obstruction NOS
J332000 Ventral hernia unspecified - irreducible
J332100 Incisional hernia - irreducible
J332200 Epigastric hernia - irreducible
J332.00 Ventral hernia - irreducible
J332z00 Ventral hernia - irreducible NOS
J333000 Simple ventral hernia unspecified
J333100 Simple incisional hernia
J333200 Simple epigastric hernia
J333211 Epigastric hernia
J333.00 Simple ventral hernia
J333z00 Simple ventral hernia NOS
J33..00 Ventral hernia
J33..11 Epigastric hernia
J33..12 Incisional hernia
J33z000 Unspecified ventral hernia NOS
J33z100 Incisional hernia NOS
J33z200 Epigastric hernia NOS
J33z.00 Ventral hernia NOS
J35..00 Gluteal hernia
J36..00 Ischiorectal hernia
J373.00 Simple lumbar hernia
J37..00 Lumbar hernia
J37y.00 Unspecified lumbar hernia
J37z.00 Lumbar hernia NOS
J381.00 Obturator hernia with obstruction
J383.00 Simple obturator hernia
J38..00 Obturator hernia
J38z.00 Obturator hernia NOS
J3A..00 Sciatic hernia
J3B3.00 Simple retroperitoneal hernia
J3B..00 Retroperitoneal hernia
J3C0.00 Spigelian hernia with gangrene
J3C1.00 Spigelian hernia with obstruction
J3C2.00 Spigelian hernia - irreducible
J3C3.00 Simple Spigelian hernia
J3C..00 Spigelian hernia
J3Cy.00 Unspecified Spigelian hernia
J3Cz.00 Spigelian hernia NOS
J3D..00 Perineal hernia
J3...00 Hernia of abdominal cavity
J3y0.00 Other specified abdominal cavity hernia with gangrene
J3y1.00 Other specified abdominal cavity hernia with obstruction
J3y2.00 Other specified abdominal cavity hernia - irreducible
J3y3.00 Other specified abdominal cavity hernia - simple
J3y..00 Other specified hernias of abdominal cavity
J3yy.00 Other specified abdominal cavity hernia, unspecified
J3yz.00 Other specified abdominal cavity hernia NOS
J3yz.11 Richter's hernia
J3z0.00 Unspecified abdominal cavity hernia with gangrene
J3z1.00 Unspecified abdominal cavity hernia with obstruction
J3z2.00 Unspecified abdominal cavity hernia - irreducible
J3z3.00 Unspecified abdominal cavity hernia - simple
J3z..00 Abdominal cavity hernia NOS
J3zz.00 Unspecified abdominal cavity hernia NOS
Jyu3000 [X]Other specified abdominal hernia+obstruction,w'o gangrene
Jyu3200 [X]Oth spcfd abdominal hernia without obstructn or gangrene
Jyu3.00 [X]Hernia
PG8..00 Congenital inguinal hernia

Secondary care diagnoses (ICD_hernia_abdo.csv)

ICD-10 code ICD-10 Term
K40 Inguinal hernia
K41 Femoral hernia
K42 Umbilical hernia
K43 Ventral hernia
K45 Other abdominal hernia
K46 Unspecified abdominal hernia

Secondary care procedures (OPCS_hernia_abdo.csv)

OPCS-4 code OPCS-4 Term
T19 Simple excision of inguinal hernial sac
T19.1 Bilateral herniotomy
T19.2 Unilateral herniotomy
T19.3 Ligation of patent processus vaginalis
T19.8 Other specified simple excision of inguinal hernial sac
T19.9 Unspecified simple excision of inguinal hernial sac
T20 Primary repair of inguinal hernia
T20.1 Primary repair of inguinal hernia using insert of natural material
T20.2 Primary repair of inguinal hernia using insert of prosthetic material
T20.3 Primary repair of inguinal hernia using sutures
T20.4 Primary repair of inguinal hernia and reduction of sliding hernia
T20.8 Other specified primary repair of inguinal hernia
T20.9 Unspecified primary repair of inguinal hernia
T21 Repair of recurrent inguinal hernia
T21.1 Repair of recurrent inguinal hernia using insert of natural material
T21.2 Repair of recurrent inguinal hernia using insert of prosthetic material
T21.3 Repair of recurrent inguinal hernia using sutures
T21.4 Removal of prosthetic material from previous repair of inguinal hernia
T21.8 Other specified repair of recurrent inguinal hernia
T21.9 Unspecified repair of recurrent inguinal hernia
T22 Primary repair of femoral hernia
T22.1 Primary repair of femoral hernia using insert of natural material
T22.2 Primary repair of femoral hernia using insert of prosthetic material
T22.3 Primary repair of femoral hernia using sutures
T22.8 Other specified primary repair of femoral hernia
T22.9 Unspecified primary repair of femoral hernia
T23 Repair of recurrent femoral hernia
T23.1 Repair of recurrent femoral hernia using insert of natural material
T23.2 Repair of recurrent femoral hernia using insert of prosthetic material
T23.3 Repair of recurrent femoral hernia using sutures
T23.4 Removal of prosthetic material from previous repair of femoral hernia
T23.8 Other specified repair of recurrent femoral hernia
T23.9 Unspecified repair of recurrent femoral hernia
T24 Primary repair of umbilical hernia
T24.1 Repair of umbilical hernia using insert of natural material
T24.2 Repair of umbilical hernia using insert of prosthetic material
T24.3 Repair of umbilical hernia using sutures
T24.4 Removal of prosthetic material from previous repair of umbilical hernia
T24.8 Other specified primary repair of umbilical hernia
T24.9 Unspecified primary repair of umbilical hernia
T25 Primary repair of incisional hernia
T25.1 Primary repair of incisional hernia using insert of natural material
T25.2 Primary repair of incisional hernia using insert of prosthetic material
T25.3 Primary repair of incisional hernia using sutures
T25.8 Other specified primary repair of incisional hernia
T25.9 Unspecified primary repair of incisional hernia
T26 Repair of recurrent incisional hernia
T26.1 Repair of recurrent incisional hernia using insert of natural material
T26.2 Repair of recurrent incisional hernia using insert of prosthetic material
T26.3 Repair of recurrent incisional hernia using sutures
T26.4 Removal of prosthetic material from previous repair of incisional hernia
T26.8 Other specified repair of recurrent incisional hernia
T26.9 Unspecified repair of recurrent incisional hernia
T27 Repair of other hernia of abdominal wall
T27.1 Repair of ventral hernia using insert of natural material
T27.2 Repair of ventral hernia using insert of prosthetic material
T27.3 Repair of ventral hernia using sutures
T27.4 Removal of prosthetic material from previous repair of ventral hernia
T27.8 Other specified repair of other hernia of abdominal wall
T27.9 Unspecified repair of other hernia of abdominal wall
T97 Repair of recurrent umbilical hernia
T97.1 Repair of recurrent umbilical hernia using insert of natural material
T97.2 Repair of recurrent umbilical hernia using insert of prosthetic material
T97.3 Repair of recurrent umbilical hernia using sutures
T97.8 Other specified repair of recurrent umbilical hernia
T97.9 Unspecified repair of recurrent umbilical hernia
T98 Repair of recurrent other hernia of abdominal wall
T98.1 Repair of recurrent ventral hernia using insert of natural material
T98.2 Repair of recurrent ventral hernia using insert of prosthetic material
T98.3 Repair of recurrent ventral hernia using sutures
T98.8 Other specified repair of recurrent other hernia of abdominal wall
T98.9 Unspecified repair of recurrent other hernia of abdominal wall

Abdominal aortic aneurysm

Implementation

Use MODIFIED CALIBER 'Abdominal aortic aneurysm' phenotyping algorithm:

At the specified date, a patient is considered to have an 'Abdominal aortic aneurysm' IF they meet any of the criteria below on or before the specified date. 

The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:
1.	Primary care 
    1.	Diagnosis of AAA during a consultation: arterial_gprd: category 4
    2.	Performance of emergency AAA repair procedure recording during a consultation: aaa_ops_gprd: category 3
    3.	History of AAA during a consultation. The following Read code from CPRD:
    1.	Read:14AE.00	Medcode:16993	Descr:H/O: aortic aneurysm
2.	Secondary care 
    1.	Diagnosis of AAA as the primary or secondary diagnosis of any hospitalization: arterial_hes: category 4
    2.	Performance of emergency AAA repair procedure recorded: aaa_ops_opcs: category 3

Primary care (CPRD_AAA.csv)

Read code Read Term
7A11000 Emerg repl aneurysm bifurc aorta by anast aorta to fem art
7A11200 Emerg repl aneurysm bifurc aorta by anast aorta to iliac a
7A11211 Y graft of abdominal Aortic aneurysm (emergency)
7A13.00 Emergency replacement of aneurysmal segment of aorta
7A13.11 Emergency repair of aortic aneurysm
7A13300 Emerg replace aneurysm infrarenal aorta by anast aorta/aorta
7A13400 Emerg replace aneurysm abdom aorta by anast aorta/aorta NEC
7A13411 Tube graft abdominal Aortic aneurysm (emergency)
7A13y00 Emergency replacement of aneurysmal segment of aorta OS
7A13z00 Emergency replacement of aneurysmal segment of aorta NOS
G714.00 Abdominal aortic aneurysm without mention of rupture
G714.11 AAA - Abdominal aortic aneurysm without mention of rupture
G716.00 Aortic aneurysm without mention of rupture NOS
G716000 Thoracoabdominal aortic aneurysm, without mention of rupture
14AE.00 H/O: aortic aneurysm

Secondary care diagnoses (ICD_AAA.csv)

ICD-10 code ICD-10 Term
I714 Abdominal aortic aneurysm, without mention of rupture
I716 Thoracoabdominal aortic aneurysm, without mention of rupture
I719 Aortic aneurysm of unspecified site, without mention of rupture

Acne

Implementation

At the specified date, a patient is defined as having had 'Acne' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Acne' diagnosis or history of diagnosis during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of 'Acne' or history of diagnosis during a hospitalization

Primary care (CPRD_acne.csv)

Read code Read Term
2FG5.00 Acne scar
M260000 Acne frontalis
M260.00 Acne varioliformis
M260z00 Acne varioliformis NOS
M260z11 Acne necrotica
M261000 Acne vulgaris
M261011 Blackhead
M261012 Comedo
M261100 Acne conglobata
M261200 Bromine acne
M261300 Chlorine acne
M261400 Iodine acne
M261500 Colloid acne
M261600 Cystic acne
M261900 Occupational acne
M261A00 Pustular acne
M261B00 Steroid acne
M261C00 Tropical acne
M261F00 Acne fulminans
M261G00 Acne agminata
M261J00 Acne necrotica
M261.00 Other acne
M261X00 Acne, unspecified
M261z00 Other acne NOS
M26y200 Giant comedo
Myu6800 [X]Other acne
Myu6F00 [X]Acne, unspecified
N25..00 SAPHO syndrome Synov, Acne, Pustul, Hyperost, Osteomyelitis

Secondary care diagnoses (ICD_acne.csv)

ICD-10 code ICD-10 Term
L70.0 Acne vulgaris
L70.1 Acne conglobata
L70.2 Acne varioliformis
L70.3 Acne tropica
L70.8 Other acne
L70.9 Acne, unspecified

Actinic keratosis

Implementation

At the specified date, a patient is defined as having had 'Actinic keratosis' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Actinic keratosis' diagnosis or history of diagnosis during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of 'Actinic keratosis' or history of diagnosis during a hospitalization
Read code Read Term
7G09800 Cryotherapy to actinic keratosis
M222.00 Senile keratoma
M226.00 Solar keratosis
M226.11 Actinic keratosis

Secondary care diagnoses (ICD_actinic_keratosis.csv)

ICD-10 code ICD-10 Term
L57.0 Actinic keratosis

Acute Kidney Injury

Implementation

At the specified date, a patient is defined as having had 'Acute Kidney Injury' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Secondary care
1. ALL diagnoses of 'Acute Kidney Injury' or history of diagnosis during a hospitalization

Secondary care diagnoses (ICD_AKI.csv)

ICD-10 code ICD-10 Term
N17.0 Acute renal failure with tubular necrosis
N17.1 Acute renal failure with acute cortical necrosis
N17.2 Acute renal failure with medullary necrosis
N17.8 Other acute renal failure
N17.9 Acute renal failure, unspecified

Agranulocytosis

Implementation

At the specified date, a patient is defined as having had 'Agranulocytosis' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Agranulocytosis' diagnosis or history of diagnosis during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of 'Agranulocytosis' or history of diagnosis during a hospitalization
Read code Read Term
42H2.00 Leucopenia - low white count
42H2.11 Leucopenia
42H4.00 Agranulocytosis
42J2.00 Neutropenia
D400000 Idiopathic agranulocytosis
D400011 Idiopathic neutropenia
D400100 Primary splenic neutropenia
D400200 Agranulocytosis - drug induced
D400211 Neutropenia - drug induced
D400312 Neutropenia due to irradiation
D400400 Agranulocytosis due to infection
D400411 Neutropenia due to infection
D400600 Drug-induced neutropenia
D400800 Acquired neutropenia NEC
D400811 Acquired agranulocytosis NEC
D400900 Cyclical neutropenia
D400A00 Leucopenia
D400.00 Agranulocytosis
D400.11 Kostmann's syndrome
D400.12 Neutropenia
D400y00 Other specified agranulocytosis
D400z00 Agranulocytosis NOS

Secondary care diagnoses (ICD_agranulocytosis.csv)

ICD-10 code ICD-10 Term
D70 Agranulocytosis

Alcohol Problems

Implementation

At the specified date, a patient is defined as having had Alcohol Problems IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. Alcohol Problems diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of Alcohol Problems or history of diagnosis during a hospitalization

Primary care (CPRD_alc_problems.csv)

Read code Read Term
136S.00 Hazardous alcohol use
136T.00 Harmful alcohol use
136W.00 Alcohol misuse
13Y8.00 Alcoholics anonymous
1462.00 H/O: alcoholism
1B1c.00 Alcohol induced hallucinations
66e0.00 Alcohol abuse monitoring
66e..00 Alcohol disorder monitoring
7P22100 Delivery of rehabilitation for alcohol addiction
8BA8.00 Alcohol detoxification
8CAv.00 Advised to contact primary care alcohol worker
8G32.00 Aversion therapy - alcoholism
8H35.00 Admitted to alcohol detoxification centre
8H7p.00 Referral to community alcohol team
8HkG.00 Referral to specialist alcohol treatment service
8HkJ.00 Referral to alcohol brief intervention service
9k12.00 Alcohol misuse - enhanced service completed
9k1..00 Alcohol misuse - enhanced services administration
9k1A.00 Brief intervention for excessive alcohol consumptn completed
9k1B.00 Extended intervention for excessive alcohol consumptn complt
9NN2.00 Under care of community alcohol team
C150500 Alcohol-induced pseudo-Cushing's syndrome
C251.11 Wernicke's encephalopathy
C253.00 Wernicke's encephalopathy
E010.00 Alcohol withdrawal delirium
E010.11 DTs - delirium tremens
E010.12 Delirium tremens
E011000 Korsakov's alcoholic psychosis
E011100 Korsakov's alcoholic psychosis with peripheral neuritis
E011200 Wernicke-Korsakov syndrome
E011.00 Alcohol amnestic syndrome
E011z00 Alcohol amnestic syndrome NOS
E012000 Chronic alcoholic brain syndrome
E012.00 Other alcoholic dementia
E012.11 Alcoholic dementia NOS
E013.00 Alcohol withdrawal hallucinosis
E015.00 Alcoholic paranoia
E01..00 Alcoholic psychoses
E01y000 Alcohol withdrawal syndrome
E01y.00 Other alcoholic psychosis
E01yz00 Other alcoholic psychosis NOS
E01z.00 Alcoholic psychosis NOS
E230000 Acute alcoholic intoxication, unspecified, in alcoholism
E230100 Continuous acute alcoholic intoxication in alcoholism
E230200 Episodic acute alcoholic intoxication in alcoholism
E230300 Acute alcoholic intoxication in remission, in alcoholism
E230.00 Acute alcoholic intoxication in alcoholism
E230.11 Alcohol dependence with acute alcoholic intoxication
E230z00 Acute alcoholic intoxication in alcoholism NOS
E231000 Unspecified chronic alcoholism
E231100 Continuous chronic alcoholism
E231200 Episodic chronic alcoholism
E231300 Chronic alcoholism in remission
E231.00 Chronic alcoholism
E231.11 Dipsomania
E231z00 Chronic alcoholism NOS
E23..00 Alcohol dependence syndrome
E23..11 Alcoholism
E23..12 Alcohol problem drinking
E23z.00 Alcohol dependence syndrome NOS
Eu10100 [X]Mental and behav dis due to use of alcohol: harmful use
Eu10200 [X]Mental and behav dis due to use alcohol: dependence syndr
Eu10211 [X]Alcohol addiction
Eu10212 [X]Chronic alcoholism
Eu10213 [X]Dipsomania
Eu10300 [X]Mental and behav dis due to use alcohol: withdrawal state
Eu10400 [X]Men & behav dis due alcohl: withdrawl state with delirium
Eu10411 [X]Delirium tremens, alcohol induced
Eu10500 [X]Mental & behav dis due to use alcohol: psychotic disorder
Eu10511 [X]Alcoholic hallucinosis
Eu10512 [X]Alcoholic jealousy
Eu10513 [X]Alcoholic paranoia
Eu10514 [X]Alcoholic psychosis NOS
Eu10600 [X]Mental and behav dis due to use alcohol: amnesic syndrome
Eu10611 [X]Korsakov's psychosis, alcohol induced
Eu10700 [X]Men & behav dis due alcoh: resid & late-onset psychot dis
Eu10711 [X]Alcoholic dementia NOS
Eu10712 [X]Chronic alcoholic brain syndrome
Eu10800 [X]Alcohol withdrawal-induced seizure
Eu10.00 [X]Mental and behavioural disorders due to use of alcohol
Eu10y00 [X]Men & behav dis due to use alcohol: oth men & behav dis
Eu10z00 [X]Ment & behav dis due use alcohol: unsp ment & behav dis
F11x000 Cerebral degeneration due to alcoholism
F11x011 Alcoholic encephalopathy
F144000 Cerebellar ataxia due to alcoholism
F25B.00 Alcohol-induced epilepsy
F375.00 Alcoholic polyneuropathy
F394100 Alcoholic myopathy
G555.00 Alcoholic cardiomyopathy
G852300 Oesophageal varices in alcoholic cirrhosis of the liver
J153.00 Alcoholic gastritis
J610.00 Alcoholic fatty liver
J611.00 Acute alcoholic hepatitis
J612000 Alcoholic fibrosis and sclerosis of liver
J612.00 Alcoholic cirrhosis of liver
J613000 Alcoholic hepatic failure
J613.00 Alcoholic liver damage unspecified
J617000 Chronic alcoholic hepatitis
J617.00 Alcoholic hepatitis
J670800 Alcohol-induced acute pancreatitis
J671000 Alcohol-induced chronic pancreatitis
Z191100 Alcohol withdrawal regime
Z191200 Planned reduction of alcohol consumption
Z191211 Alcohol reduction programme
Z191.00 Alcohol detoxification
Z4B1.00 Alcoholism counselling
ZV11300 [V]Personal history of alcoholism
ZV11311 [V]Problems related to lifestyle alcohol use
ZV57A00 [V]Alcohol rehabilitation
ZV6D600 [V]Alcohol abuse counselling and surveillance

Secondary care diagnoses (ICD_alc_problems.csv)

ICD-10 code ICD-10 Term
F10.1 Mental and behavioural disorders due to use of alcohol - Harmful use
F10.2 Mental and behavioural disorders due to use of alcohol - Dependence syndrome
F10.3 Mental and behavioural disorders due to use of alcohol - Withdrawal state
F10.4 Mental and behavioural disorders due to use of alcohol - Withdrawal state with delirium
F10.5 Mental and behavioural disorders due to use of alcohol - Psychotic disorder
F10.6 Mental and behavioural disorders due to use of alcohol - Amnesic syndrome
F10.7 Mental and behavioural disorders due to use of alcohol - Residual and late-onset psychotic disorder
F10.8 Mental and behavioural disorders due to use of alcohol - Other mental and behavioural disorders
F10.9 Mental and behavioural disorders due to use of alcohol - Unspecified mental and behavioural disorder
E24.4 Alcohol-induced pseudo-Cushing's syndrome
G31.2 Degeneration of nervous system due to alcohol
G62.1 Alcoholic polyneuropathy
G72.1 Alcoholic myopathy
I42.6 Alcoholic cardiomyopathy
K29.2 Alcoholic gastritis
K70 Alcoholic liver disease
K85.2 Alcohol-induced acute pancreatitis
K86.0 Alcohol-induced chronic pancreatitis
Z50.2 Alcohol rehabilitation
Z71.4 Alcohol abuse counselling and surveillance

Alcoholic liver disease

Implementation

At the specified date, a patient is defined as having had 'Alcoholic liver disease' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Alcoholic liver disease' diagnosis or history of diagnosis or procedure during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Alcoholic liver disease' or history of diagnosis during a hospitalization

Primary care (CPRD_liver_alc.csv)

Read code Read Term
G852300 Oesophageal varices in alcoholic cirrhosis of the liver
J610.00 Alcoholic fatty liver
J611.00 Acute alcoholic hepatitis
J612000 Alcoholic fibrosis and sclerosis of liver
J612.00 Alcoholic cirrhosis of liver
J612.12 Laennec's cirrhosis
J613000 Alcoholic hepatic failure
J613.00 Alcoholic liver damage unspecified
J617000 Chronic alcoholic hepatitis
J617.00 Alcoholic hepatitis

Secondary care diagnoses (ICD_liver_alc.csv)

ICD-10 code ICD-10 Term
K70 Alcoholic liver disease

Allergic and chronic rhinitis

Implementation

At the specified date, a patient is defined as having had Allergic and chronic rhinitis IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. Allergic and chronic rhinitis diagnosis or history of diagnosis during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of Allergic and chronic rhinitis or history of diagnosis during a hospitalization
Read code Read Term
14B1.00 H/O: hay fever
H120000 Chronic simple rhinitis
H120100 Chronic catarrhal rhinitis
H120200 Chronic hypertrophic rhinitis
H120300 Chronic atrophic rhinitis
H120400 Chronic infective rhinitis
H120500 Chronic ulcerative rhinitis
H120600 Chronic membranous rhinitis
H120700 Chronic fibrinous rhinitis
H120.00 Chronic rhinitis
H120z00 Chronic rhinitis NOS
H13..11 Chronic rhinosinusitis
H170.00 Allergic rhinitis due to pollens
H170.11 Hay fever - pollens
H170.12 Pollinosis
H171000 Allergy to animal
H171100 Dog allergy
H171.00 Allergic rhinitis due to other allergens
H171.11 Cat allergy
H171.12 Dander (animal) allergy
H171.13 Feather allergy
H171.14 Hay fever - other allergen
H171.15 House dust allergy
H171.16 House dust mite allergy
H172.00 Allergic rhinitis due to unspecified allergen
H172.11 Hay fever - unspecified allergen
H17..00 Allergic rhinitis
H17..11 Perennial rhinitis
H17..12 Allergic rhinosinusitis
H17z.00 Allergic rhinitis NOS
H18..00 Vasomotor rhinitis
H330011 Hay fever with asthma
H330.13 Hay fever with asthma
Hyu2000 [X]Other seasonal allergic rhinitis
Hyu2100 [X]Other allergic rhinitis

Secondary care diagnoses (ICD_allergic_rhinitis.csv)

ICD-10 code ICD-10 Term
J30.1 Allergic rhinitis due to pollen
J30.2 Other seasonal allergic rhinitis
J30.3 Other allergic rhinitis
J30.4 Allergic rhinitis, unspecified
J31.0 Chronic rhinitis

Alopecia areata

Implementation

At the specified date, a patient is defined as having had 'Alopecia areata' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Alopecia areata' diagnosis or history of diagnosis during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of 'Alopecia areata' or history of diagnosis during a hospitalization
Read code Read Term
M240100 Alopecia areata
M240111 Ophiasis
M240B00 Alopecia totalis
M240K00 Alopecia universalis
M240U00 Ophiasis
Myu6200 [X]Other alopecia areata

Secondary care diagnoses (ICD_alopecia_areata.csv)

ICD-10 code ICD-10 Term
L63 Alopecia areata

Anal fissure

Implementation

At the specified date, a patient is defined as having had 'Anal fissure' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Anal fissure' diagnosis or history of diagnosis or procedure during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Anal fissure' or history of diagnosis during a hospitalization
OR
Secondary care (OPCS4)
1. ALL procedures for 'Anal fissure' during a hospitalization

Primary care (CPRD_anal_fissure.csv)

Read code Read Term
7739300 Excision of anal fissure
J530000 Acute anal fissure
J530100 Chronic anal fissure
J530.00 Anal fissure
J530.11 Tear of anus - non-traumatic
J53..00 Anal fissure and fistula
J53z.00 Anal fissure and fistula NOS
J544.00 Ano-rectal fissure abscess

Secondary care diagnoses (ICD_anal_fissure.csv)

ICD-10 code ICD-10 Term
K60.0 Acute anal fissure
K60.1 Chronic anal fissure
K60.2 Anal fissure, unspecified

Secondary care procedures (OPCS_anal_fissure.csv)

OPCS-4 code OPCS-4 Term
H56.4 Excision of anal fissure

Angiodysplasia of colon

Implementation

At the specified date, a patient is defined as having had 'Angiodysplasia of colon' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Angiodysplasia of colon' diagnosis or history of diagnosis during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of 'Angiodysplasia of colon' or history of diagnosis during a hospitalization
Read code Read Term
J577000 Angiodysplasia of colon

Secondary care diagnoses (ICD_angiodysplasia_colon.csv)

ICD-10 code ICD-10 Term
K55.2 Angiodysplasia of colon

Ankylosing spondylitis

Implementation

At the specified date, a patient is defined as having had 'Ankylosing spondylitis' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Ankylosing spondylitis' diagnosis or history of diagnosis during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of 'Ankylosing spondylitis' or history of diagnosis during a hospitalization

Primary care (CPRD_ank_spond.csv)

Read code Read Term
2377 O/E - ankyl.spondyl.chest def.
388p.00 BASDAI - Bath ankylosing spondylitis disease activity index
N100.00 Ankylosing spondylitis
N100.11 Marie - Strumpell spondylitis

Secondary care diagnoses (ICD_ank_spond.csv)

ICD-10 code ICD-10 Term
M45 Ankylosing spondylitis

Anorectal fistula

Implementation

At the specified date, a patient is defined as having had 'Anorectal fistula' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Anorectal fistula' diagnosis or history of diagnosis or procedure during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Anorectal fistula' or history of diagnosis during a hospitalization
OR
Secondary care (OPCS4)
1. ALL procedures for 'Anorectal fistula' during a hospitalization
Read code Read Term
7729700 Closure of rectal fistula
7738000 Laying open of low anal fistula
7738100 Laying open of high anal fistula
7738200 Laying open of anal fistula NEC
7738300 Insertion seton in high anal fistula+part lay open track HFQ
7738400 Fistulography of anal fistula
7738600 Excision of fistula in ano
7738611 Excision of anal fistula
7738.1 Anal fistula operations
7738900 Repair of anal fistula using plug
J531000 Sub-mucosal anal fistula
J531100 Inter-muscular anal fistula
J531200 Ano-rectal fistula
J531300 Rectal fistula
J531.00 Fistula-in-ano
J531z00 Fistula-in-ano NOS
J53..00 Anal fissure and fistula
J53z.00 Anal fissure and fistula NOS

Secondary care diagnoses (ICD_anorectal_fistula.csv)

ICD-10 code ICD-10 Term
K60.3 Anal fistula
K60.4 Rectal fistula
K60.5 Anorectal fistula

Secondary care procedures (OPCS_anorectal_fistula.csv)

OPCS-4 code OPCS-4 Term
H55.1 Laying open of low anal fistula
H55.2 Laying open of high anal fistula
H55.3 Laying open of anal fistula NEC
H55.4 Insertion of seton into high anal fistula and partial laying open of track HFQ
H55.5 Fistulography of anal fistula
H55.6 Probing of perineal fistula
H55.7 Repair of anal fistula using plug

Anorectal prolapse

Implementation

At the specified date, a patient is defined as having had 'Anorectal prolapse' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Anorectal prolapse' diagnosis or history of diagnosis or procedure during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Anorectal prolapse' or history of diagnosis during a hospitalization
OR
Secondary care (OPCS4)
1. ALL procedures for 'Anorectal prolapse' during a hospitalization
Read code Read Term
7720 Partial excision of rectum and sigmoid colon for prolapse
7720y00 Partial excision of rectum and sigmoid colon for prolapse OS
7720z00 Partial excision of rectum & sigmoid colon for prolapse NOS
7723400.0 Proctopexy for prolapse of rectum
7723411.0 Erickman repair of prolapse of rectum
7723500.0 Insertion of sponge for rectal prolapse
7723511.0 Insertion of Wells sponge for rectal prolapse
7723.00 Fixation of rectum for prolapse
7723.11 Proctopexy for prolapse of rectum
7723.12 Rectopexy for prolapse
7723y00 Other specified fixation of rectum for prolapse
7723z00 Fixation of rectum for prolapse NOS
7724011.0 Graham repair for rectal prolapse
7724012.0 Roscoe repair for rectal prolapse
7724.00 Other abdominal operations for rectal prolapse
7724y00 Other abdominal operation for rectal prolapse OS
7724y11 Delorme repair of rectum for prolapse
7724z00 Other abdominal operation for rectal prolapse NOS
7726400.0 Reduction of prolapsed rectum NEC
7727011.0 Thiersch wiring for prolapse of rectum
7727400.0 Excision of mucosal prolapse of rectum NEC
7727500.0 Perineal repair of rectal prolapse NEC
7727.00 Perineal operations for rectal prolapse
7727y00 Other specified perineal operation for rectal prolapse
7727z00 Perineal operation for rectal prolapse NOS
7728400.0 Manual reduction of rectal prolapse
J571000 Partial rectal prolapse
J571100 Complete rectal prolapse
J571200 Anal prolapse
J571.00 Rectal prolapse
J571.11 Procidentia - anus and/or rectum
J571.12 Proctoptosis
J571z00 Rectal prolapse NOS
J579.00 Rectal mucosa prolapse

Secondary care diagnoses (ICD_anorectal_prolapse.csv)

ICD-10 code ICD-10 Term
K62.2 Anal prolapse
K62.3 Rectal prolapse

Secondary care procedures (OPCS_anorectal_prolapse.csv)

OPCS-4 code OPCS-4 Term
H36 Other abdominal operations for prolapse of rectum
H36.1 Abdominal repair of levator ani muscles
H36.8 Other specified other abdominal operations for prolapse of rectum
H36.9 Unspecified other abdominal operations for prolapse of rectum
H42 Perineal operations for prolapse of rectum
H42.1 Insertion of encircling suture around perianal sphincter
H42.2 Perineal plication of levator ani muscles and anal sphincters
H42.3 Insertion of supralevator sling
H42.4 Removal of encircling suture from around perianal sphincter
H42.5 Excision of mucosal prolapse of rectum NEC
H42.6 Perineal repair of prolapse of rectum NEC
H42.8 Other specified perineal operations for prolapse of rectum
H42.9 Unspecified perineal operations for prolapse of rectum
H44.2 Manual reduction of prolapse of rectum

Anorexia and bulimia nervosa

Implementation

At the specified date, a patient is defined as having had Anorexia and bulimia nervosa IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. Anorexia and bulimia nervosa diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of Anorexia and bulimia nervosa or history of diagnosis during a hospitalization

Primary care (CPRD_eating_dz.csv)

Read code Read Term
1467 H/O: anorexia nervosa
E271.00 Anorexia nervosa
E275100 Bulimia (non-organic overeating)
Eu50000 [X]Anorexia nervosa
Eu50100 [X]Atypical anorexia nervosa
Eu50200 [X]Bulimia nervosa
Eu50211 [X]Bulimia NOS
Eu50300 [X]Atypical bulimia nervosa
R036011 [D]Bulimia NOS

Secondary care diagnoses (ICD_eating_dz.csv)

ICD-10 code ICD-10 Term
F50.0 Anorexia nervosa
F50.1 Atypical anorexia nervosa
F50.2 Bulimia nervosa
F50.3 Atypical bulimia nervosa

Anterior and Intermediate Uveitis

Implementation

At the specified date, a patient is defined as having had Anterior and Intermediate Uveitis IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. Anterior and Intermediate Uveitis diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of Anterior and Intermediate Uveitis or history of diagnosis during a hospitalization

Primary care (CPRD_ant_uveitis.csv)

Read code Read Term
1486 H/O: iritis
A173300 Tuberculous chronic iridocyclitis
A532200 Herpes zoster iridocyclitis
A544400 Herpes simplex iridocyclitis
A984100 Gonococcal iridocyclitis
C34y300 Gouty iritis
F432300 Posterior cyclitis
F432311 Pars planitis
F440000 Unspecified acute iridocyclitis
F440100 Unspecified subacute iridocyclitis
F440200 Primary iridocyclitis
F440300 Recurrent iridocyclitis
F440400 Secondary infected iridocyclitis
F440500 Secondary noninfected iridocyclitis
F440600 Hypopyon
F440700 Diabetic iritis
F440.00 Acute and subacute iridocyclitis
F440.11 Iritis - acute
F440z00 Acute or subacute iritis NOS
F441000 Unspecified chronic iridocyclitis
F441100 Chronic iridocyclitis due to disease EC
F441200 Chronic anterior uveitis
F441.00 Chronic iridocyclitis
F441.11 Chronic iritis
F441z00 Chronic iridocyclitis NOS
F442000 Fuchs' heterochromic cyclitis
F442100 Glaucomatocyclitic crises
F442200 Lens-induced iridocyclitis
F442.00 Certain types of iridocyclitis
F442z00 Certain types of cyclitis NOS
F443000 Anterior uveitis
F443100 Iritis
F443.00 Unspecified iridocyclitis
F443.11 Uveitis NOS
F44..12 Iridocyclitis

Secondary care diagnoses (ICD_ant_uveitis.csv)

ICD-10 code ICD-10 Term
H20.0 Acute and subacute iridocyclitis
H20.1 Chronic iridocyclitis
H20.2 Lens-induced iridocyclitis
H20.8 Other iridocyclitis
H20.9 Iridocyclitis, unspecified
H22.0 Iridocyclitis in infectious and parasitic diseases classified elsewhere
H22.1 Iridocyclitis in other diseases classified elsewhere
H30.2 Posterior cyclitis

Anxiety disorders

Implementation

At the specified date, a patient is defined as having had 'Anxiety disorders' disorders IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Anxiety disorders' disorders diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Anxiety disorders' disorders or history of diagnosis during a hospitalization

Primary care (CPRD_anxiety.csv)

Read code Read Term
1466 H/O: anxiety state
146G.00 H/O: agoraphobia
1B1H.11 Fear
1B1V.00 C/O - panic attack
1Bb..00 Specific fear
225J.00 O/E - panic attack
225K.00 O/E - fearful mood
285..00 Neurotic condition, insight present
286..00 Poor insight into neurotic condition
8G52.00 Antiphobic therapy
8G94.00 Anxiety management training
8HHp.00 Referral for guided self-help for anxiety
9N54.00 Encounter for fear
E200000 Anxiety state unspecified
E200100 Panic disorder
E200111 Panic attack
E200200 Generalised anxiety disorder
E200300 Anxiety with depression
E200400 Chronic anxiety
E200500 Recurrent anxiety
E200.00 Anxiety states
E200z00 Anxiety state NOS
E201B00 Compensation neurosis
E202000 Phobia unspecified
E202100 Agoraphobia with panic attacks
E202200 Agoraphobia without mention of panic attacks
E202300 Social phobia, fear of eating in public
E202400 Social phobia, fear of public speaking
E202500 Social phobia, fear of public washing
E202600 Acrophobia
E202700 Animal phobia
E202800 Claustrophobia
E202900 Fear of crowds
E202A00 Fear of flying
E202B00 Cancer phobia
E202C00 Dental phobia
E202D00 Fear of death
E202.00 Phobic disorders
E202.11 Social phobic disorders
E202.12 Phobic anxiety
E202E00 Fear of pregnancy
E202z00 Phobic disorder NOS
E20..00 Neurotic disorders
E20y100 Writer's cramp neurosis
E20y200 Other occupational neurosis
E20y300 Psychasthenic neurosis
E20y.00 Other neurotic disorders
E20yz00 Other neurotic disorder NOS
E20z.00 Neurotic disorder NOS
Eu34111 [X]Depressive neurosis
Eu34113 [X]Neurotic depression
Eu34114 [X]Persistant anxiety depression
Eu40000 [X]Agoraphobia
Eu40011 [X]Agoraphobia without history of panic disorder
Eu40012 [X]Panic disorder with agoraphobia
Eu40100 [X]Social phobias
Eu40112 [X]Social neurosis
Eu40200 [X]Specific (isolated) phobias
Eu40211 [X]Acrophobia
Eu40212 [X]Animal phobias
Eu40213 [X]Claustrophobia
Eu40214 [X]Simple phobia
Eu40300 [X]Needle phobia
Eu40.00 [X]Phobic anxiety disorders
Eu40y00 [X]Other phobic anxiety disorders
Eu40z00 [X]Phobic anxiety disorder, unspecified
Eu40z11 [X]Phobia NOS
Eu40z12 [X]Phobic state NOS
Eu41000 [X]Panic disorder [episodic paroxysmal anxiety]
Eu41011 [X]Panic attack
Eu41012 [X]Panic state
Eu41100 [X]Generalized anxiety disorder
Eu41111 [X]Anxiety neurosis
Eu41112 [X]Anxiety reaction
Eu41113 [X]Anxiety state
Eu41200 [X]Mixed anxiety and depressive disorder
Eu41211 [X]Mild anxiety depression
Eu41300 [X]Other mixed anxiety disorders
Eu41.00 [X]Other anxiety disorders
Eu41y00 [X]Other specified anxiety disorders
Eu41y11 [X]Anxiety hysteria
Eu41z00 [X]Anxiety disorder, unspecified
Eu41z11 [X]Anxiety NOS
Z481.00 Phobia counselling
Z4L1.00 Anxiety counselling
ZV11200 [V]Personal history of neurosis

Secondary care diagnoses (ICD_anxiety.csv)

ICD-10 code ICD-10 Term
F40 Phobic anxiety disorders
F41 Other anxiety disorders

Aplastic anaemias

Implementation

At the specified date, a patient is defined as having had 'Aplastic anaemias' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Aplastic anaemias' diagnosis or history of diagnosis during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of 'Aplastic anaemias' or history of diagnosis during a hospitalization

Primary care (CPRD_aplastic.csv)

Read code Read Term
D200000 Congenital hypoplastic anaemia
D200011 Constitutional aplastic anaemia without malformation
D200100 Fanconi's familial refractory anaemia
D200111 Fanconi's hypoplastic anaemia
D200200 Constitutional aplastic anaemia with malformation
D200211 Pancytopenia-dysmelia
D200300 Constitutional red cell aplasia and hypoplasia
D200311 Blackfan - Diamond syndrome
D200312 Congenital pure red cell aplasia
D200313 Constitutional red cell hypoplasia
D200314 Congenital red cell hypoplasia
D200400 Erythrogenesis imperfecta
D200.00 Constitutional aplastic anaemia
D200.13 Blackfan - Diamond syndrome
D200.15 Hypoplastic anaemia - familial
D200y00 Other specified constitutional aplastic anaemia
D201000 Aplastic anaemia due to chronic disease
D201100 Aplastic anaemia due to drugs
D201111 Hypoplastic anaemia due to drug or chemical substance
D201200 Aplastic anaemia due to infection
D201211 Hypoplastic anaemia due to infection
D201311 Radiation aplastic anaemia
D201400 Aplastic anaemia due to toxic cause
D201412 Hypoplastic anaemia due to toxic cause
D201500 Pancytopenia - acquired
D201600 Pancytopenia NOS
D201611 Pancytopenia with malformation
D201612 Pancytopenia with pancreatitis
D201700 Transient hypoplastic anaemia
D201800 [X]Pure red cell aplasia
D201.00 Acquired aplastic anaemia
D201.11 Normocytic anaemia due to aplasia
D201z00 Acquired aplastic anaemia NOS
D201z12 Red cell hypoplasia
D201z13 Secondary red cell hypoplasia NEC
D201z14 Secondary red cell aplasia NEC
D202.00 Chronic acquired pure red cell aplasia
D203000 Transient erythroblastopenia of childhood
D203.00 Transient acquired pure red cell aplasia
D204.00 Idiopathic aplastic anaemia
D20..00 Aplastic anaemia
D20X.00 Acquired pure red cell aplasia, unspecified
D20z.00 Aplastic anaemia NOS

Secondary care diagnoses (ICD_aplastic.csv)

ICD-10 code ICD-10 Term
D60 Acquired pure red cell aplasia [erythroblastopenia]
D61 Other aplastic anaemias

Appendicitis

Implementation

At the specified date, a patient is defined as having had 'Appendicitis' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Appendicitis' diagnosis or history of diagnosis or procedure during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Appendicitis' or history of diagnosis during a hospitalization
OR
Secondary care (OPCS4)
1. ALL procedures for 'Appendicitis' during a hospitalization

Primary care (CPRD_appendicitis.csv)

Read code Read Term
14C2.00 H/O: appendicitis
25J6.00 Appendix mass
7700000.0 Emergency excision of abnormal appendix and drainage HFQ
7700100.0 Emergency excision of abnormal appendix NEC
7700300.0 Emergency appendicectomy NEC
7700400.0 Endoscopic emergency appendicectomy
7700.00 Emergency excision of appendix
7700.11 Emergency appendicectomy
7700y00 Other specified emergency excision of appendix
7700z00 Emergency excision of appendix NOS
7701000.0 Interval appendicectomy
7701300.0 Planned delayed appendicectomy NEC
7701400.0 Endoscopic appendicectomy NEC
7701.00 Other excision of appendix
7701.11 Non emergency appendicectomy
7701y00 Other specified other excision of appendix
7701z00 Other excision of appendix NOS
7701z11 Appendicectomy NEC
7702000.0 Drainage of abscess of appendix
7702100.0 Drainage of appendix NEC
J200.00 Acute appendicitis with peritonitis
J201.00 Acute appendicitis with appendix abscess
J201.11 Abscess of appendix
J201.12 Appendix abscess
J202.00 Acute appendicitis without peritonitis
J203.00 Acute appendicitis with generalised peritonitis
J204.00 Acute appendicitis with localised peritonitis
J20..00 Acute appendicitis
J20z100 Acute gangrenous appendicitis
J20z.00 Acute appendicitis NOS
J21..00 Appendicitis, unqualified
J220.00 Subacute appendicitis
J221.00 Chronic appendicitis
J222.00 Relapsing appendicitis
J223.00 Recurrent appendicitis
J22..00 Other appendicitis
J22z.00 Other appendicitis NOS
Jyu2000 [X]Other appendicitis

Secondary care diagnoses (ICD_appendicitis.csv)

ICD-10 code ICD-10 Term
K35 Acute appendicitis
K36 Other appendicitis
K37 Unspecified appendicitis

Secondary care procedures (OPCS_appendicitis.csv)

OPCS-4 code OPCS-4 Term
H01 Emergency excision of appendix
H01.1 Emergency excision of abnormal appendix and drainage HFQ
H01.2 Emergency excision of abnormal appendix NEC
H01.8 Other specified emergency excision of appendix
H01.9 Unspecified emergency excision of appendix
H02 Other excision of appendix
H02.1 Interval appendicectomy
H02.2 Planned delayed appendicectomy NEC
H02.3 Prophylactic appendicectomy NEC
H02.8 Other specified other excision of appendix
H02.9 Unspecified other excision of appendix
H03 Other operations on appendix
H03.1 Drainage of abscess of appendix
H03.2 Drainage of appendix NEC

Asbestosis

Implementation

At the specified date, a patient is defined as having had 'Asbestosis' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Asbestosis' diagnosis or history of diagnosis during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of 'Asbestosis' or history of diagnosis during a hospitalization

Primary care (CPRD_asbestosis.csv)

Read code Read Term
H410.00 Pleural plaque disease due to asbestosis
H410.11 Asbestos-induced pleural plaque
H41..00 Asbestosis
H41z.00 Asbestosis NOS

Secondary care diagnoses (ICD_asbestosis.csv)

ICD-10 code ICD-10 Term
J61 Pneumoconiosis due to asbestos and other mineral fibres

Aspiration pneumonitis

Implementation

At the specified date, a patient is defined as having had 'Aspiration pneumonitis' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Aspiration pneumonitis' diagnosis or history of diagnosis during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of 'Aspiration pneumonitis' or history of diagnosis during a hospitalization
Read code Read Term
H470000 Pneumonitis due to inhalation of regurgitated food
H470100 Pneumonitis due to inhalation of gastric secretions
H470200 Pneumonitis due to inhalation of milk
H470211 Milk inhalation pneumonitis
H470300 Pneumonitis due to inhalation of vomitus
H470311 Vomit inhalation pneumonitis
H470312 Aspiration pneumonia due to vomit
H470.00 Pneumonitis due to inhalation of food or vomitus
H470.11 Aspiration pneumonia
H470z00 Pneumonitis due to inhalation of food or vomitus NOS
H471000 Lipoid pneumonia (exogenous)
H471.00 Pneumonitis due to inhalation of oil or essence
H471z00 Pneumonitis due to inhalation of oil or essence NOS
H47..00 Pneumonitis due to inhalation of solids or liquids
H47..11 Aspiration pneumonitis
H47y.00 Pneumonitis due to inhalation of other solid or liquid
H47yz00 Pneumonitis due to inhalation of solid or liquid NOS
H47z.00 Pneumonitis due to inhalation of solid or liquid NOS
Hyu4700 [X]Pneumonitis due to inhalation of other solids and liquids
SP13100 Other aspiration pneumonia as a complication of care

Secondary care diagnoses (ICD_aspiration_pneumo.csv)

ICD-10 code ICD-10 Term
J69.0 Pneumonitis due to food and vomit
J69.1 Pneumonitis due to oils and essences
J69.8 Pneumonitis due to other solids and liquids

Asthma

Implementation

At the specified date, a patient is defined as having had 'Asthma' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Asthma' diagnosis or history of diagnosis during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of 'Asthma' or history of diagnosis during a hospitalization

Primary care (CPRD_asthma.csv)

Read code Read Term
14B4.00 H/O: asthma
173A.00 Exercise induced asthma
173c.00 Occupational asthma
173d.00 Work aggravated asthma
1780.00 Aspirin induced asthma
1O2..00 Asthma confirmed
2126200.0 Asthma resolved
212G.00 Asthma resolved
H312000 Chronic asthmatic bronchitis
H330000 Extrinsic asthma without status asthmaticus
H330011 Hay fever with asthma
H330100 Extrinsic asthma with status asthmaticus
H330111 Extrinsic asthma with asthma attack
H330.00 Extrinsic (atopic) asthma
H330.11 Allergic asthma
H330.12 Childhood asthma
H330.13 Hay fever with asthma
H330.14 Pollen asthma
H330z00 Extrinsic asthma NOS
H331000 Intrinsic asthma without status asthmaticus
H331100 Intrinsic asthma with status asthmaticus
H331111 Intrinsic asthma with asthma attack
H331.00 Intrinsic asthma
H331.11 Late onset asthma
H331z00 Intrinsic asthma NOS
H332.00 Mixed asthma
H333.00 Acute exacerbation of asthma
H334.00 Brittle asthma
H335.00 Chronic asthma with fixed airflow obstruction
H33..00 Asthma
H33..11 Bronchial asthma
H33z000 Status asthmaticus NOS
H33z011 Severe asthma attack
H33z100 Asthma attack
H33z111 Asthma attack NOS
H33z200 Late-onset asthma
H33z.00 Asthma unspecified
H33z.11 Hyperreactive airways disease
H33zz00 Asthma NOS
H33zz11 Exercise induced asthma
H33zz12 Allergic asthma NEC
H33zz13 Allergic bronchitis NEC

Secondary care diagnoses (ICD_asthma.csv)

ICD-10 code ICD-10 Term
J45 Asthma
J46 Status asthmaticus

Atrial fibrillation

Implementation

Use MODIFIED CALIBER 'Atrial fibrillation' phenotyping algorithm: 

At the specified date, a patient is considered to have had 'Atrial fibrillation' or flutter IF they meet any of the criteria below on or before the specified date. 

The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:
1.	1.	Historical & Diagnosed: first recorded AF code indicates monitoring of an existing condition, or reference to a previous AF diagnosis, or a diagnosis code for AF; preference given to the earliest dated record rather than diagnosis source (i.e. no preference for primary versus secondary care).
    1.	af_gprd: category 1, 2, 3, 4, 5, 6, 7
    2.	af_hes: category 6

Primary care (CPRD_AF.csv)

Read code Read Term
14AN.00 H/O: atrial fibrillation
14AR.00 History of atrial flutter
212R.00 Atrial fibrillation resolved
662S.00 Atrial fibrillation monitoring
6A9..00 Atrial fibrillation annual review
9Os..00 Atrial fibrillation monitoring administration
9Os0.00 Atrial fibrillation monitoring first letter
9Os1.00 Atrial fibrillation monitoring second letter
9Os2.00 Atrial fibrillation monitoring third letter
9Os3.00 Atrial fibrillation monitoring verbal invite
9Os4.00 Atrial fibrillation monitoring telephone invite
9hF..00 Exception reporting: atrial fibrillation quality indicators
9hF1.00 Excepted from atrial fibrillation qual indic: Inform dissent
G573200 Paroxysmal atrial fibrillation
G573400 Permanent atrial fibrillation
G573500 Persistent atrial fibrillation
3272.00 ECG: atrial fibrillation
G573000 Atrial fibrillation
G573300 Non-rheumatic atrial fibrillation
G573.00 Atrial fibrillation and flutter
G573z00 Atrial fibrillation and flutter NOS
3273.00 ECG: atrial flutter
G573100 Atrial flutter

Secondary care diagnoses (ICD_AF.csv)

ICD-10 code ICD-10 Term
I48 Atrial fibrillation and flutter

Atrioventricular block, complete

Implementation

At the specified date, a patient is defined as having had Atrioventricular third degree, complete IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. Atrioventricular block, complete diagnosis or history of diagnosis during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of Atrioventricular block, complete or history of diagnosis during a hospitalization

Primary care (CPRD_av_block_3.csv)

Read code Read Term
3293 ECG:complete sinu-atrial block
3298 ECG: complete A-V block
G560.00 Complete atrioventricular block
G560.11 Third degree atrioventricular block

Secondary care diagnoses (ICD_av_block_3.csv)

ICD-10 code ICD-10 Term
I44.2 Atrioventricular block, complete

Atrioventricular block, first degree

Implementation

At the specified date, a patient is defined as having had 'Atrioventricular block, first degree' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Atrioventricular block, first degree' diagnosis or history of diagnosis during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of 'Atrioventricular block, first degree' or history of diagnosis during a hospitalization

Primary care (CPRD_av_block_1.csv)

Read code Read Term
3294 ECG:partial A-V block-long P-R
32I3.00 ECG: P-R interval prolonged
G561100 First degree atrioventricular block
G561111 Prolonged P-R interval

Secondary care diagnoses (ICD_av_block_1.csv)

ICD-10 code ICD-10 Term
I44.0 Atrioventricular block, first degree

Atrioventricular block, second degree

Implementation

At the specified date, a patient is defined as having had 'Atrioventricular block, second degree' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Atrioventricular block, second degree' diagnosis or history of diagnosis during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of 'Atrioventricular block, second degree' or history of diagnosis during a hospitalization

Primary care (CPRD_av_block_2.csv)

Read code Read Term
3295 ECG: partial A-V block - 2:1
3296 ECG: partial A-V block - 3:1
3297 ECG: Wenckebach phenomenon
3297.1 Electrocardiogram: Mobitz type 1 second degree AV block
329H.00 Electrocardiogram: Mobitz type 2 second degree AV block
G561200 Mobitz type II atrioventricular block
G561300 Mobitz type I (Wenckebach) atrioventricular block
G561311 Mobitz type 1 second degree atrioventricular block
G561400 Second degree atrioventricular block

Secondary care diagnoses (ICD_av_block_2.csv)

ICD-10 code ICD-10 Term
I44.1 Atrioventricular block, second degree

Autism and Asperger's syndrome

Implementation

At the specified date, a patient is defined as having had 'Autism and Asperger's syndrome' and Asperger's syndrome IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Autism and Asperger's syndrome' and Asperger's syndrome diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Autism and Asperger's syndrome' and Asperger's syndrome or history of diagnosis during a hospitalization

Primary care (CPRD_autism.csv)

Read code Read Term
E140000 Active infantile autism
E140100 Residual infantile autism
E140.00 Infantile autism
E140.11 Kanner's syndrome
E140.12 Autism
E140.13 Childhood autism
E140z00 Infantile autism NOS
Eu84000 [X]Childhood autism
Eu84011 [X]Autistic disorder
Eu84012 [X]Infantile autism
Eu84014 [X]Kanner's syndrome
Eu84100 [X]Atypical autism
Eu84112 [X]Mental retardation with autistic features
Eu84500 [X]Asperger's syndrome
Eu84511 [X]Autistic psychopathy
Eu84z11 [X]Autistic spectrum disorder

Secondary care diagnoses (ICD_autism.csv)

ICD-10 code ICD-10 Term
F84.0 Childhood autism
F84.1 Atypical autism
F84.5 Asperger's syndrome

Autoimmune liver disease

Implementation

At the specified date, a patient is defined as having had 'Autoimmune liver disease' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Autoimmune liver disease' diagnosis or history of diagnosis or procedure during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Autoimmune liver disease' or history of diagnosis during a hospitalization

Primary care (CPRD_autoimm_liver.csv)

Read code Read Term
J614111 Autoimmune chronic active hepatitis
J616000 Primary biliary cirrhosis
J63B.00 Autoimmune hepatitis
J661700 Primary sclerosing cholangitis

Secondary care diagnoses (ICD_autoimm_liver.csv)

ICD-10 code ICD-10 Term
K74.3 Primary biliary cirrhosis
K75.4 Autoimmune hepatitis

Bacterial Diseases (excl TB)

Implementation

At the specified date, a patient is defined as having had 'Bacterial Diseases (excl TB)' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Secondary care
1. ALL diagnoses of Bacterial Diseases (excl TB) or history of diagnosis during a hospitalization

Secondary care diagnoses (ICD_bacterial.csv)

ICD-10 code ICD-10 Term
A00 Cholera
A01 Typhoid and paratyphoid fevers
A02 Other salmonella infections
A03 Shigellosis
A04 Other bacterial intestinal infections
A05 Other bacterial foodborne intoxications, not elsewhere classified
A20 Plague
A21 Tularaemia
A22 Anthrax
A23 Brucellosis
A24 Glanders and melioidosis
A25 Rat-bite fevers
A26 Erysipeloid
A27 Leptospirosis
A28 Other zoonotic bacterial diseases, not elsewhere classified
A30 Leprosy [Hansen's disease]
A31 Infection due to other mycobacteria
A32 Listeriosis
A35 Other tetanus
A36 Diphtheria
A37 Whooping cough
A38 Scarlet fever
A39 Meningococcal infection
A40 Streptococcal sepsis
A41.0 Sepsis due to Staphylococcus aureus
A41.1 Sepsis due to other specified staphylococcus
A41.2 Sepsis due to unspecified staphylococcus
A41.3 Sepsis due to Haemophilus influenzae
A41.4 Sepsis due to anaerobes
A41.5 Sepsis due to other Gram-negative organisms
A42 Actinomycosis
A43 Nocardiosis
A44 Bartonellosis
A46 Erysipelas
A48 Other bacterial diseases, not elsewhere classified
A49 Bacterial infection of unspecified site
A50 Congenital syphilis
A51 Early syphilis
A52 Late syphilis
A53 Other and unspecified syphilis
A54 Gonococcal infection
A55 Chlamydial lymphogranuloma (venereum)
A56 Other sexually transmitted chlamydial diseases
A57 Chancroid
A58 Granuloma inguinale
A65 Nonvenereal syphilis
A66 Yaws
A67 Pinta [carate]
A68 Relapsing fevers
A69 Other spirochaetal infections
A70 Chlamydia psittaci infection
A71 Trachoma
A74 Other diseases caused by chlamydiae
A75 Typhus fever
A77 Spotted fever [tick-borne rickettsioses]
A78 Q fever
A79 Other rickettsioses
B20.1 HIV disease resulting in other bacterial infections
B92 Sequelae of leprosy
B94.0 Sequelae of trachoma
B95 Streptococcus and staphylococcus as the cause of diseases classified to other chapters
B96 Other specified bacterial agents as the cause of diseases classified to other chapters
B98.0 Helicobacter pylori [H.pylori] as the cause of diseases classified to other chapters
B98.1 Vibrio vulnificus as the cause of diseases classified to other chapters
G00 Bacterial meningitis, not elsewhere classified
G01 Meningitis in bacterial diseases classified elsewhere
G04.2 Bacterial meningoencephalitis and meningomyelitis, not elsewhere classified
G05.0 Encephalitis, myelitis and encephalomyelitis in bacterial diseases classified elsewhere
H62.0 Otitis externa in bacterial diseases classified elsewhere
H67.0 Otitis media in bacterial diseases classified elsewhere
I00 Rheumatic fever without mention of heart involvement
I01 Rheumatic fever with heart involvement
I02 Rheumatic chorea
I05 Rheumatic mitral valve diseases
I06 Rheumatic aortic valve diseases
I07 Rheumatic tricuspid valve diseases
I09 Other rheumatic heart diseases
I32.0 Pericarditis in bacterial diseases classified elsewhere
I41.0 Myocarditis in bacterial diseases classified elsewhere
I98.0 Cardiovascular syphilis
J02.0 Streptococcal pharyngitis
J03.0 Streptococcal tonsillitis
J13 Pneumonia due to Streptococcus pneumoniae
J14 Pneumonia due to Haemophilus influenzae
J15 Bacterial pneumonia, not elsewhere classified
J16.0 Chlamydial pneumonia
J17.0 Pneumonia in bacterial diseases classified elsewhere
J20.0 Acute bronchitis due to Mycoplasma pneumoniae
J20.1 Acute bronchitis due to Haemophilus influenzae
J20.2 Acute bronchitis due to streptococcus
J34.0 Abscess, furuncle and carbuncle of nose
J36 Peritonsillar abscess
J39.0 Retropharyngeal and parapharyngeal abscess
J39.1 Other abscess of pharynx
J86 Pyothorax
K61 Abscess of anal and rectal regions
K63.0 Abscess of intestine
K67.0 Chlamydial peritonitis
K67.1 Gonococcal peritonitis
L00 Staphylococcal scalded skin syndrome
L01 Impetigo
L02 Cutaneous abscess, furuncle and carbuncle
L03 Cellulitis
L05.0 Pilonidal cyst with abscess
L08.1 Erythrasma
M00.0 Staphylococcal arthritis and polyarthritis
M00.1 Pneumococcal arthritis and polyarthritis
M00.2 Other streptococcal arthritis and polyarthritis
M00.8 Arthritis and polyarthritis due to other specified bacterial agents
M00.9 Pyogenic arthritis, unspecified
M01.0 Meningococcal arthritis
M01.2 Arthritis in Lyme disease
M01.3 Arthritis in other bacterial diseases classified elsewhere
M03.0 Postmeningococcal arthritis
M03.1 Postinfective arthropathy in syphilis
M49.1 Brucella spondylitis
M49.2 Enterobacterial spondylitis
M63.0 Myositis in bacterial diseases classified elsewhere
M65.0 Abscess of tendon sheath
M65.1 Other infective (teno)synovitis
M68.0 Synovitis and tenosynovitis in bacterial diseases classified elsewhere
M71.0 Abscess of bursa
M71.1 Other infective bursitis
M72.6 Necrotizing fasciitis
M73.1 Syphilitic bursitis
M86 Osteomyelitis
M90.1 Periostitis in other infectious diseases classified elsewhere
M90.2 Osteopathy in other infectious diseases classified elsewhere
N13.6 Pyonephrosis
N15.1 Renal and perinephric abscess
N29.0 Late syphilis of kidney
N39.0 Urinary tract infection, site not specified
N41.0 Acute prostatitis
N41.2 Abscess of prostate
N41.3 Prostatocystitis
N43.1 Infected hydrocele
N45 Orchitis and epididymitis
N70 Salpingitis and oophoritis
N71 Inflammatory disease of uterus, except cervix
N72 Inflammatory disease of cervix uteri
N73 Other female pelvic inflammatory diseases
N74.3 Female gonococcal pelvic inflammatory disease
N74.4 Female chlamydial pelvic inflammatory disease
N74.8 Female pelvic inflammatory disorders in other diseases classified elsewhere
N75.1 Abscess of Bartholin's gland
P23.1 Congenital pneumonia due to Chlamydia
P23.2 Congenital pneumonia due to staphylococcus
P23.3 Congenital pneumonia due to streptococcus, group B
P23.4 Congenital pneumonia due to Escherichia coli
P23.5 Congenital pneumonia due to Pseudomonas
P23.6 Congenital pneumonia due to other bacterial agents
P36 Bacterial sepsis of newborn
P37.2 Neonatal (disseminated) listeriosis

Bacterial sepsis of newborn

Implementation

At the specified date, a patient is defined as having had Bacterial sepsis of newborn IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. Bacterial sepsis of newborn diagnosis or history of diagnosis during a consultation AND IF the patient is aged < 1y at the first event date
OR
Secondary care
1. ALL diagnoses of  Bacterial sepsis of newborn or history of diagnosis during a hospitalization AND IF the patient is aged < 1y at the first event date
Read code Read Term
Q408200 Eschericha coli intra-amniotic fetal infection
Q408400 Group A haemolytic streptococcal intra-amniotic infect. NEC
Q408500 Group B haemolytic streptococcal intra-amniotic infect. NEC
Q408600 Pseudomonas pyocyaneus congenital infection
Q40A000 Sepsis of newborn due to Staphylococcus aureus
Q40A100 Sepsis of newborn due to Escherichia coli
Q40A200 Sepsis of newborn due to anaerobes
Q40A300 Perinatal coagulase negative staphylococcus
Q40A.00 Sepsis of the newborn
Q40W.00 Sepsis of newborn due to other+unspecified streptococci
Q40y000 Intrauterine fetal sepsis, unspecified
Q40y011 Congenital sepsis NOS
Q40y012 Congenital septicaemia
Q40y100 Neonatal urinary tract infection
Q40y200 Septicaemia of newborn
Q40y.00 Other specified perinatal infection
Q40yz00 Other specified perinatal infection NOS
Q40z.00 Perinatal infections NOS
Qyu4100 [X]Sepsis/newborn due to other+unspecified staphylococcus
Qyu4200 [X]Other bacterial sepsis of newborn
Qyu4800 [X]Sepsis of newborn due to other+unspecified streptococci

Secondary care diagnoses (ICD_sepsis_newborn.csv)

ICD-10 code ICD-10 Term
P36 Bacterial sepsis of newborn

Barrett's oesophagus

Implementation

At the specified date, a patient is defined as having had 'Barrett's oesophagus' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Barrett's oesophagus' diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Barrett's oesophagus' or history of diagnosis during a hospitalization

Primary care (CPRD_barretts.csv)

Read code Read Term
J101611 Barrett's oesophagus
J102500 Barrett's ulcer of oesophagus
J10y600 Barrett's oesophagus

Secondary care diagnoses (ICD_barretts.csv)

ICD-10 code ICD-10 Term
K22.7 Barrett's oesophagus

Bell's palsy

Implementation

At the specified date, a patient is defined as having had 'Bell's palsy' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Bell's palsy' diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Bell's palsy' or history of diagnosis during a hospitalization

Primary care (CPRD_bells.csv)

Read code Read Term
1476 H/O: Bell's palsy
F310.00 Bell's (facial) palsy

Secondary care diagnoses (ICD_bells.csv)

ICD-10 code ICD-10 Term
G51.0 Bell's palsy

Benign neoplasm and polyp of uterus

Implementation

At the specified date, a patient is defined as having had Benign neoplasm and polyp of uterus IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. Benign neoplasm and polyp of uterus diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of Benign neoplasm and polyp of uterus or history of diagnosis during a hospitalization

Primary care (CPRD_benign_uterus.csv)

Read code Read Term
7E0D311 Endoscopic endometrial polypectomy
7E0D700 Endoscopic endometrial polypectomy
B791000 Benign neoplasm of endometrium NEC
B791100 Benign neoplasm of myometrium NEC
B791200 Benign neoplasm of uterine fundus NEC
B791.00 Benign neoplasm corpus uteri NEC
B791z00 Benign neoplasm of corpus uteri NOS
B79..00 Other benign neoplasm of uterus
B79y.00 Benign neoplasm of other specified sites of uterus
B79z.00 Benign neoplasm of uterus NOS
ByuGB00 [X]Benign neoplasm of other parts of uterus
K540.00 Polyp of the corpus uteri
K540.11 Endometrial polyp

Secondary care diagnoses (ICD_benign_uterus.csv)

ICD-10 code ICD-10 Term
D26.1 Other benign neoplasm: Corpus uteri
D26.7 Other benign neoplasm: Other parts of uterus
D26.9 Other benign neoplasm: Uterus, unspecified
N84.0 Polyp of corpus uteri

Benign neoplasm of brain and other parts of central nervous system

Implementation

At the specified date, a patient is defined as having had Benign neoplasm of brain and other parts of central nervous system IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. Benign neoplasm of brain and other parts of central nervous system diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of Benign neoplasm of brain and other parts of central nervous system or history of diagnosis during a hospitalization

Primary care (CPRD_benign_brain.csv)

Read code Read Term
B7F0000 Benign neoplasm of brain, supratentorial
B7F0.00 Benign neoplasm of brain
B7F0.11 Cerebral tumour - benign
B7F1000 Acoustic neuroma
B7F1.00 Benign neoplasm of cranial nerves
B7F2000 Cerebral meningioma
B7F2.00 Benign neoplasm of cerebral meninges
B7F2z00 Benign neoplasm of cerebral meninges NOS
B7F3.00 Benign neoplasm of spinal cord
B7F4000 Spinal meningioma
B7F4.00 Benign neoplasm of spinal meninges
B7F4z00 Benign neoplasm of spinal meninges NOS
B7F..00 Benign neoplasm of brain and other parts of nervous system
B7FX.00 Benign neoplasm of meninges, unspecified
B7Fz.00 Benign neoplasm of brain or other nervous system NOS
B7H2000 Benign neoplasm of pituitary gland
B7H2100 Benign neoplasm of Rathke's pouch
B7H2200 Benign neoplasm of sella turcica
B7H2300 Benign neoplasm of craniopharyngeal duct
B7H2.00 Benign neoplasm of pituitary gland and craniopharyngeal duct
B7H2.11 Pituitary adenoma
B7H2z00 Benign neoplasm of pituitary and craniopharyngeal duct NOS
B7H3.00 Benign neoplasm of pineal gland
B7H4.00 Benign neoplasm of carotid body
B7H5000 Benign neoplasm of glomus jugulare
B7H5100 Benign neoplasm of aortic body
B7H5200 Benign neoplasm of coccygeal body
B7H5.00 Benign neoplasm of aortic body and other paraganglia
B7H5z00 Benign neoplasm of aortic body and other paraganglia NOS
BBb5.00 [M]Choroid plexus papilloma NOS
BBd0.00 [M]Meningioma NOS
BBd3.00 [M]Meningotheliomatous meningioma
BBd3.11 [M]Endotheliomatous meningioma
BBd4.00 [M]Fibrous meningioma
BBd5.00 [M]Psammomatous meningioma
BBd6.00 [M]Angiomatous meningioma
BBd7.00 [M]Haemangioblastic meningioma
BBd7.11 [M]Angioblastic meningioma
BBd8.00 [M]Haemangiopericytic meningioma
BBd9.00 [M]Transitional meningioma
BBd..00 [M]Meningiomas
BBdz.00 [M]Meningioma NOS
BBe5.11 [M]Acoustic neuroma

Secondary care diagnoses (ICD_benign_brain.csv)

ICD-10 code ICD-10 Term
D32 Benign neoplasm of meninges
D33 Benign neoplasm of brain and other parts of central nervous system
D35.2 Benign neoplasm: Pituitary gland
D35.3 Benign neoplasm: Craniopharyngeal duct
D35.4 Benign neoplasm: Pineal gland
D35.5 Benign neoplasm: Carotid body
D35.6 Benign neoplasm: Aortic body and other paraganglia

Benign neoplasm of colon, rectum, anus and anal canal

Implementation

At the specified date, a patient is defined as having had Benign neoplasm of colon, rectum, anus and anal canal IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. Benign neoplasm of colon, rectum, anus and anal canal diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of Benign neoplasm of colon, rectum, anus and anal canal or history of diagnosis during a hospitalization

Primary care (CPRD_benign_colon.csv)

Read code Read Term
771G400 Colonoscopic polypectomy
7722.11 Open operation on rectal polyp
7722.12 Open polypectomy of rectum
7726111.0 Peranal excision of rectal polyp
7726112.0 Peranal polypectomy of rectum
7726212.0 Peranal destruction of rectal polyp
7731200.0 Excision of anal polyp
B713000 Benign neoplasm of hepatic flexure of colon
B713100 Benign neoplasm of transverse colon
B713200 Benign neoplasm of descending colon
B713300 Benign neoplasm of sigmoid colon
B713400 Benign neoplasm of caecum
B713500 Benign neoplasm of appendix
B713600 Benign neoplasm of ascending colon
B713700 Benign neoplasm of splenic flexure of colon
B713900 Benign neoplasm of ileocaecal valve
B713.00 Benign neoplasm of colon
B713.11 Colon polyp
B713z00 Benign neoplasm of colon NOS
B714000 Benign neoplasm of rectosigmoid junction
B714100 Benign neoplasm of rectum
B714111 Benign papilloma rectum
B714200 Benign neoplasm of anal canal
B714300 Benign neoplasm of anus NOS
B714.00 Benign neoplasm of rectum and anal canal
B714z00 Benign neoplasm of rectum or anal canal NOS
J570000 Anal polyp
J570100 Rectal polyp
J570.00 Anal and rectal polyp
J570z00 Anal and rectal polyp NOS
J578.00 Colonic polyp
J578.11 Polyp of colon

Secondary care diagnoses (ICD_benign_colon.csv)

ICD-10 code ICD-10 Term
D12 Benign neoplasm of colon, rectum, anus and anal canal
K62.0 Anal polyp
K62.1 Rectal polyp
K63.5 Polyp of colon

Benign neoplasm of ovary

Implementation

At the specified date, a patient is defined as having had Benign neoplasm of ovary IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. Benign neoplasm of ovary diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of Benign neoplasm of ovary or history of diagnosis during a hospitalization

Primary care (CPRD_benign_ovary.csv)

Secondary care diagnoses (ICD_benign_ovary.csv)

ICD-10 code ICD-10 Term
D27 Benign neoplasm of ovary
N83.0 Follicular cyst of ovary
N83.1 Corpus luteum cyst
N83.2 Other and unspecified ovarian cysts

Benign neoplasm of stomach and duodenum

Implementation

At the specified date, a patient is defined as having had Benign neoplasm of stomach and duodenum IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. Benign neoplasm of stomach and duodenum diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of Benign neoplasm of stomach and duodenum or history of diagnosis during a hospitalization
Read code Read Term
7612000 Open excision of polyp of stomach
B711000 Benign neoplasm of stomach cardia
B711100 Benign neoplasm of pylorus of stomach
B711200 Benign neoplasm of fundus of stomach
B711300 Benign neoplasm of body of stomach
B711400 Benign neoplasm of pyloric antrum
B711.00 Benign neoplasm of stomach
B711.11 Gastric polyp
B711z00 Benign neoplasm of stomach NOS
B712000 Benign neoplasm of duodenum
B712011 Duodenal polyp
B712100 Benign neoplasm of jejunum
B712111 Jejunal polyp
B712200 Benign neoplasm of ileum
B712.00 Benign neoplasm of small intestine and duodenum
B712z00 Benign neoplasm of small intestine or duodenum NOS
J177.00 Gastric polyp
J177.11 Polyp of stomach
J178.00 Duodenal polyp
J178.11 Polyp of duodenum

Secondary care diagnoses (ICD_benign_stomach.csv)

ICD-10 code ICD-10 Term
K31.7 Polyp of stomach and duodenum
D13.1 Benign neoplasm: Stomach
D13.2 Benign neoplasm: Duodenum
D13.3 Benign neoplasm: Other and unspecified parts of small intestine

Bifascicular block

Implementation

At the specified date, a patient is defined as having had 'Bifascicular block' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Bifascicular block' diagnosis or history of diagnosis during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of 'Bifascicular block' or history of diagnosis during a hospitalization

Primary care (CPRD_bifasc_block.csv)

Read code Read Term
329F.00 ECG: right bundle branch and left anterior fascicular block
329G.00 ECG: right bundle branch and left posterior fascicular block
G565100 Right BBB with left posterior fascicular block
G565200 Right BBB with left anterior fascicular block

Secondary care diagnoses (ICD_bifasc_block.csv)

ICD-10 code ICD-10 Term
I45.2 Bifascicular block

Bipolar affective disorder and mania

Implementation

At the specified date, a patient is defined as having had 'Bipolar affective disorder and mania' and mania IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Bipolar affective disorder and mania' and mania diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Bipolar affective disorder and mania' and mania or history of diagnosis during a hospitalization

Primary care (CPRD_BAD.csv)

Read code Read Term
146D.00 H/O: manic depressive disorder
1S42.00 Manic mood
212V.00 Bipolar affective disorder resolved
E110000 Single manic episode, unspecified
E110100 Single manic episode, mild
E110200 Single manic episode, moderate
E110300 Single manic episode, severe without mention of psychosis
E110400 Single manic episode, severe, with psychosis
E110500 Single manic episode in partial or unspecified remission
E110600 Single manic episode in full remission
E110.00 Manic disorder, single episode
E110.11 Hypomanic psychoses
E110z00 Manic disorder, single episode NOS
E111000 Recurrent manic episodes, unspecified
E111100 Recurrent manic episodes, mild
E111200 Recurrent manic episodes, moderate
E111300 Recurrent manic episodes, severe without mention psychosis
E111400 Recurrent manic episodes, severe, with psychosis
E111500 Recurrent manic episodes, partial or unspecified remission
E111600 Recurrent manic episodes, in full remission
E111.00 Recurrent manic episodes
E111z00 Recurrent manic episode NOS
E114000 Bipolar affective disorder, currently manic, unspecified
E114100 Bipolar affective disorder, currently manic, mild
E114200 Bipolar affective disorder, currently manic, moderate
E114300 Bipolar affect disord, currently manic, severe, no psychosis
E114400 Bipolar affect disord, currently manic,severe with psychosis
E114500 Bipolar affect disord,currently manic, part/unspec remission
E114600 Bipolar affective disorder, currently manic, full remission
E114.00 Bipolar affective disorder, currently manic
E114.11 Manic-depressive - now manic
E114z00 Bipolar affective disorder, currently manic, NOS
E115000 Bipolar affective disorder, currently depressed, unspecified
E115100 Bipolar affective disorder, currently depressed, mild
E115200 Bipolar affective disorder, currently depressed, moderate
E115300 Bipolar affect disord, now depressed, severe, no psychosis
E115400 Bipolar affect disord, now depressed, severe with psychosis
E115500 Bipolar affect disord, now depressed, part/unspec remission
E115600 Bipolar affective disorder, now depressed, in full remission
E115.00 Bipolar affective disorder, currently depressed
E115.11 Manic-depressive - now depressed
E115z00 Bipolar affective disorder, currently depressed, NOS
E116000 Mixed bipolar affective disorder, unspecified
E116100 Mixed bipolar affective disorder, mild
E116200 Mixed bipolar affective disorder, moderate
E116300 Mixed bipolar affective disorder, severe, without psychosis
E116400 Mixed bipolar affective disorder, severe, with psychosis
E116500 Mixed bipolar affective disorder, partial/unspec remission
E116600 Mixed bipolar affective disorder, in full remission
E116.00 Mixed bipolar affective disorder
E116z00 Mixed bipolar affective disorder, NOS
E117000 Unspecified bipolar affective disorder, unspecified
E117100 Unspecified bipolar affective disorder, mild
E117200 Unspecified bipolar affective disorder, moderate
E117300 Unspecified bipolar affective disorder, severe, no psychosis
E117400 Unspecified bipolar affective disorder,severe with psychosis
E117500 Unspecified bipolar affect disord, partial/unspec remission
E117600 Unspecified bipolar affective disorder, in full remission
E117.00 Unspecified bipolar affective disorder
E117z00 Unspecified bipolar affective disorder, NOS
E11..11 Bipolar psychoses
E11..13 Manic psychoses
E11y000 Unspecified manic-depressive psychoses
E11y100 Atypical manic disorder
E11y300 Other mixed manic-depressive psychoses
E11y.00 Other and unspecified manic-depressive psychoses
E11yz00 Other and unspecified manic-depressive psychoses NOS
Eu30000 [X]Hypomania
Eu30100 [X]Mania without psychotic symptoms
Eu30200 [X]Mania with psychotic symptoms
Eu30211 [X]Mania with mood-congruent psychotic symptoms
Eu30212 [X]Mania with mood-incongruent psychotic symptoms
Eu30.00 [X]Manic episode
Eu30.11 [X]Bipolar disorder, single manic episode
Eu30y00 [X]Other manic episodes
Eu30z00 [X]Manic episode, unspecified
Eu30z11 [X]Mania NOS
Eu31000 [X]Bipolar affective disorder, current episode hypomanic
Eu31100 [X]Bipolar affect disorder cur epi manic wout psychotic symp
Eu31200 [X]Bipolar affect disorder cur epi manic with psychotic symp
Eu31300 [X]Bipolar affect disorder cur epi mild or moderate depressn
Eu31400 [X]Bipol aff disord, curr epis sev depress, no psychot symp
Eu31500 [X]Bipolar affect dis cur epi severe depres with psyc symp
Eu31600 [X]Bipolar affective disorder, current episode mixed
Eu31700 [X]Bipolar affective disorder, currently in remission
Eu31800 [X]Bipolar affective disorder type I
Eu31900 [X]Bipolar affective disorder type II
Eu31911 [X]Bipolar II disorder
Eu31.00 [X]Bipolar affective disorder
Eu31.11 [X]Manic-depressive illness
Eu31.12 [X]Manic-depressive psychosis
Eu31.13 [X]Manic-depressive reaction
Eu31y00 [X]Other bipolar affective disorders
Eu31y11 [X]Bipolar II disorder
Eu31y12 [X]Recurrent manic episodes
Eu31z00 [X]Bipolar affective disorder, unspecified
Eu33213 [X]Manic-depress psychosis,depressd,no psychotic symptoms
Eu33312 [X]Manic-depress psychosis,depressed type+psychotic symptoms
ZRby100 Profile of mood states, bipolar
ZV11111 [V]Personal history of manic-depressive psychosis
ZV11112 [V]Personal history of manic-depressive psychosis

Secondary care diagnoses (ICD_BAD.csv)

ICD-10 code ICD-10 Term
F30 Manic episode
F31 Bipolar affective disorder

Bronchiectasis

Implementation

At the specified date, a patient is defined as having had 'Bronchiectasis' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Bronchiectasis' diagnosis or history of diagnosis during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of 'Bronchiectasis' or history of diagnosis during a hospitalization
Read code Read Term
A115.00 Tuberculous bronchiectasis
H340.00 Recurrent bronchiectasis
H341.00 Post-infective bronchiectasis
H34..00 Bronchiectasis
H34z.00 Bronchiectasis NOS
P861.00 Congenital bronchiectasis

Secondary care diagnoses (ICD_bronchiectasis.csv)

ICD-10 code ICD-10 Term
J47 Bronchiectasis
Q33.4 Congenital bronchiectasis

COPD

Implementation

At the specified date, a patient is defined as having had COPD IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. COPD diagnosis or history of diagnosis during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of COPD or history of diagnosis during a hospitalization

Primary care (CPRD_COPD.csv)

Read code Read Term
14B3.12 History of chronic obstructive pulmonary disease
H310000 Chronic catarrhal bronchitis
H310.00 Simple chronic bronchitis
H310z00 Simple chronic bronchitis NOS
H311000 Purulent chronic bronchitis
H311100 Fetid chronic bronchitis
H311.00 Mucopurulent chronic bronchitis
H311z00 Mucopurulent chronic bronchitis NOS
H312000 Chronic asthmatic bronchitis
H312011 Chronic wheezy bronchitis
H312100 Emphysematous bronchitis
H312200 Acute exacerbation of chronic obstructive airways disease
H312300 Bronchiolitis obliterans
H312.00 Obstructive chronic bronchitis
H312z00 Obstructive chronic bronchitis NOS
H313.00 Mixed simple and mucopurulent chronic bronchitis
H31..00 Chronic bronchitis
H31y100 Chronic tracheobronchitis
H31y.00 Other chronic bronchitis
H31yz00 Other chronic bronchitis NOS
H31z.00 Chronic bronchitis NOS
H320000 Segmental bullous emphysema
H320100 Zonal bullous emphysema
H320200 Giant bullous emphysema
H320300 Bullous emphysema with collapse
H320.00 Chronic bullous emphysema
H320z00 Chronic bullous emphysema NOS
H321.00 Panlobular emphysema
H322.00 Centrilobular emphysema
H32..00 Emphysema
H32y000 Acute vesicular emphysema
H32y100 Atrophic (senile) emphysema
H32y111 Acute interstitial emphysema
H32y200 MacLeod's unilateral emphysema
H32y.00 Other emphysema
H32yz00 Other emphysema NOS
H32z.00 Emphysema NOS
H36..00 Mild chronic obstructive pulmonary disease
H37..00 Moderate chronic obstructive pulmonary disease
H38..00 Severe chronic obstructive pulmonary disease
H39..00 Very severe chronic obstructive pulmonary disease
H3A..00 End stage chronic obstructive airways disease
H3...00 Chronic obstructive pulmonary disease
H3...11 Chronic obstructive airways disease
H3y0.00 Chronic obstruct pulmonary dis with acute lower resp infectn
H3y1.00 Chron obstruct pulmonary dis wth acute exacerbation, unspec
H3y..00 Other specified chronic obstructive airways disease
H3y..11 Other specified chronic obstructive pulmonary disease
H3z..00 Chronic obstructive airways disease NOS
H3z..11 Chronic obstructive pulmonary disease NOS
H464000 Chronic emphysema due to chemical fumes
H464100 Obliterative bronchiolitis due to chemical fumes
H583200 Eosinophilic bronchitis
Hyu3000 [X]Other emphysema
Hyu3100 [X]Other specified chronic obstructive pulmonary disease

Secondary care diagnoses (ICD_COPD.csv)

ICD-10 code ICD-10 Term
J40 Bronchitis, not specified as acute or chronic
J41 Simple and mucopurulent chronic bronchitis
J42 Unspecified chronic bronchitis
J43 Emphysema
J44 Other chronic obstructive pulmonary disease

Carcinoma in situ_cervical

Implementation

At the specified date, a patient is defined as having had Carcinoma in situ_cervical IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. Carcinoma in situ_cervical diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of Carcinoma in situ_cervical or history of diagnosis during a hospitalization

Primary care (CPRD_cin_cervical.csv)

Read code Read Term
4K2..11 Dyskaryosis on cervical smear
4K2J.00 Cervical smear - low grade dyskaryosis
4K2K.00 Cervical smear - high grade dyskaryosis (moderate)
4K2L.00 Cervical smear - high grade dyskaryosis (severe)
4K2N.00 Cervical smear - ?endocervical type glandular neoplasia
4K2P.00 Cervical smear - ?non-cervical type glandular neoplasia
B831000 Carcinoma in situ of endocervix
B831100 Carcinoma in situ of exocervix
B831.00 Carcinoma in situ of cervix uteri
B831.11 CIN III - carcinoma in situ of cervix
B831.12 Cervical intraepithelial neoplasia
B831.13 Cervical intraepithelial neoplasia grade III
ByuFA00 [X]Carcinoma in situ of other parts of cervix
K551000 Anaplasia of cervix
K551100 Epidermidization of cervix
K551300 Mild cervical dysplasia
K551311 Cervical intraepithelial neoplasia grade I
K551400 Moderate cervical dysplasia
K551411 Cervical intraepithelial neoplasia grade II
K551.00 Dysplasia of cervix uteri
K551.12 CIN I - II, cervical dysplasia
K551X00 Severe cervical dysplasia, not elsewhere classified
K551z00 Dysplasia of cervix NOS
R150000 [D]Dyskaryotic cervical smear
ZV13B00 [V]Personal history of mild cervical dysplasia
ZV13B11 [V]PH of cervical intraepithelial neoplasia, grade I
ZV13C00 [V]Personal history of moderate cervical dysplasia
ZV13C11 [V]PH of cervical intraepithelial neoplasia grade II
ZV13D00 [V]Personal history of severe cervical dysplasia
ZV13E00 [V]PH of cervical intraepithelial neoplasia, grade III

Secondary care diagnoses (ICD_cin_cervical.csv)

ICD-10 code ICD-10 Term
D06 Carcinoma in situ of cervix uteri
N87 Dysplasia of cervix uteri

Carpal tunnel syndrome

Implementation

At the specified date, a patient is defined as having had 'Carpal tunnel syndrome' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Carpal tunnel syndrome' diagnosis, history of diagnosis or procedure during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of 'Carpal tunnel syndrome' or history of diagnosis during a hospitalization
OR
Secondary care (OPCS4)
1. ALL procedures for 'Carpal tunnel syndrome' or history of diagnosis during a hospitalization

Primary care (CPRD_carpal_tunnel.csv)

Read code Read Term
7056000 Carpal tunnel release
7056011 Carpal tunnel decompression
7056200 Re-release of carpal tunnel
7056400 Endoscopic carpal tunnel release
705A100 Revision of carpal tunnel release
85BE.00 Injection of carpal tunnel
8Hlr.00 Referral for carpal tunnel injection
9Nu3000 Consent given for carpal tunnel injection
F340.00 Carpal tunnel syndrome
F340.12 CTS - Carpal tunnel syndrome

Secondary care diagnoses (ICD_carpal_tunnel.csv)

ICD-10 code ICD-10 Term
G56.0 Carpal tunnel syndrome

Secondary care procedures (OPCS_carpal_tunnel.csv)

OPCS-4 code OPCS-4 Term
A65.1 Carpal tunnel release
A69.2 Revision of carpal tunnel release

Cataract

Implementation

At the specified date, a patient is defined as having had 'Cataract' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Cataract' diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Cataract' or history of diagnosis during a hospitalization
OR
Secondary care (OPCS4)
1. ALL procedures for 'Cataract' during a hospitalization

Primary care (CPRD_cataract.csv)

Read code Read Term
1483 H/O: cataract
14N9.00 H/O: R cataract extraction
14NA.00 H/O: L cataract extraction
14NC.00 H/O: Bilateral cataract extraction
22E5.00 O/E - cataract present
2BT0.00 O/E - Right cataract present
2BT1.00 O/E - Left cataract present
2BT..00 Cataract observation
7263011 Needling of lens for cataract
7263.12 Extracapsular extraction of cataract
7264.11 Intracapsular extraction of cataract
7266100 Discission of cataract
7266.11 Other extraction of cataract
7267600 Cataract extraction and insertion of intraocular lens
8H5H.00 Referral for cataract extraction
8HTV.00 Referral to cataract clinic
8LC0.00 Cataract operation planned
C108F00 Insulin dependent diabetes mellitus with diabetic cataract
C108F11 Type I diabetes mellitus with diabetic cataract
C108F12 Type 1 diabetes mellitus with diabetic cataract
C109E00 Non-insulin depend diabetes mellitus with diabetic cataract
C109E11 Type II diabetes mellitus with diabetic cataract
C109E12 Type 2 diabetes mellitus with diabetic cataract
C10EF00 Type 1 diabetes mellitus with diabetic cataract
C10EF12 Insulin dependent diabetes mellitus with diabetic cataract
C10FE00 Type 2 diabetes mellitus with diabetic cataract
C10FE11 Type II diabetes mellitus with diabetic cataract
F460000 Unspecified infantile cataract
F460100 Unspecified juvenile cataract
F460200 Unspecified presenile cataract
F460300 Anterior subcapsular polar cataract
F460400 Posterior subcapsular polar cataract
F460500 Cortical cataract
F460600 Lamellar zonular cataract
F460700 Nuclear cataract
F460.00 Infantile, juvenile and presenile cataracts
F460x00 Combined nonsenile cataract
F460y00 Other nonsenile cataract
F460z00 Nonsenile cataract NOS
F461000 Unspecified senile cataract
F461100 Lens capsule pseudoexfoliation
F461200 Coronary cataract
F461300 Punctate cataract
F461400 Incipient cataract NOS
F461500 Immature cataract NOS
F461600 Anterior subcapsular polar senile cataract
F461700 Posterior subcapsular polar senile cataract
F461800 Cortical senile cataract
F461900 Nuclear senile cataract
F461A00 Total, mature senile cataract
F461B00 Hypermature cataract
F461B11 Morgagni cataract
F461.00 Senile cataract
F461x00 Combined senile cataract
F461y00 Other senile cataract
F461z00 Senile cataract NOS
F463000 Unspecified cataracta complicata
F463200 Cataract in eye inflammatory disorder
F463300 Cataract with neovascularization
F463400 Cataract in degenerative disorder
F463.00 Cataract secondary to ocular disease
F463z00 Cataract secondary to ocular disorder NOS
F464000 Diabetic cataract
F464100 Tetanic cataract
F464200 Myotonic cataract
F464300 Cataract associated with other syndromes
F464.00 Cataract due to other disorder
F464z00 Cataract due to other disorder NOS
F465000 Unspecified secondary cataract
F465200 Other after cataract with vision normal
F465300 After-cataract with vision obscured
F465500 Posterior capsule opacification
F465.00 After cataract
F465z00 After cataract NOS
F466.00 Bilateral cataracts
F46..00 Cataract
F46y.00 Other cataract
F46yz00 Other cataract NOS
F46z000 Immature cortical cataract
F46z.00 Cataract NOS
F4B4B00 Keratopathy following cataract surgery
F4B4C00 Bullous aphakic keratopathy following cataract surgery
F4K2D00 Vitreous syndrome following cataract surgery
FyuE000 [X]Other senile cataract
FyuE100 [X]Other specified cataract
FyuE400 [X]Cataract in other diseases classified elsewhere
P330.00 Congenital cataract, unspecified
P331000 Capsular cataract
P331100 Subcapsular cataract
P331.00 Capsular and subcapsular cataract
P331z00 Capsular or subcapsular cataract NOS
P332000 Cortical cataract - congenital
P332100 Zonular cataract
P332.00 Cortical and zonular cataract
P332z00 Cortical or zonular cataract NOS
P333.00 Nuclear cataract - congenital
P334000 Total congenital cataract
P334z00 Total or subtotal congenital cataract NOS
P33..00 Congenital cataract and lens anomalies
P33y000 Blue dot cataract
P33y100 Congenital membranous cataract
P33y.00 Other specified congenital cataract or lens anomaly
P33yz00 Other congenital cataract or lens anomaly NOS
P33z.00 Congenital cataract or lens anomaly NOS
ZV45611 [V]State following cataract extraction

Secondary care diagnoses (ICD_cataract.csv)

ICD-10 code ICD-10 Term
H25 Senile cataract
H26.0 Infantile, juvenile and presenile cataract
H26.2 Complicated cataract
H26.4 After-cataract
H26.8 Other specified cataract
H26.9 Cataract, unspecified
H28 Cataract and other disorders of lens in diseases classified elsewhere
Q12.0 Congenital cataract

Secondary care procedures (OPCS_cataract.csv)

OPCS-4 code OPCS-4 Term
C71.1 Simple linear extraction of lens
C71.2 Phacoemulsification of lens
C71.3 Aspiration of lens
C71.8 Other specified extracapsular extraction of lens
C71.9 Unspecified extracapsular extraction of lens
C72.1 Forceps extraction of lens
C72.2 Suction extraction of lens
C72.3 Cryoextraction of lens
C72.8 Other specified intracapsular extraction of lens
C72.9 Unspecified intracapsular extraction of lens
C73.1 Membranectomy of lens
C73.2 Capsulotomy of anterior lens capsule
C73.3 Capsulotomy of posterior lens capsule
C73.4 Capsulotomy of lens NEC
C73.8 Other specified incision of capsule of lens
C73.9 Unspecified incision of capsule of lens
C74.1 Curettage of lens
C74.2 Discission of cataract
C74.3 Mechanical lensectomy
C74.8 Other specified other extraction of lens
C74.9 Unspecified other extraction of lens
C75.1 Insertion of prosthetic replacement for lens NEC
C75.2 Revision of prosthetic replacement for lens
C75.3 Removal of prosthetic replacement for lens
C75.4 Insertion of prosthetic replacement for lens using suture fixation
C75.8 Other specified prosthesis of lens
C75.9 Unspecified prosthesis of lens
C77.1 Capsulectomy
C77.2 Couching of lens
C77.6 Insertion of capsule tension ring
C77.8 Other specified other operations on lens
C77.9 Unspecified other operations on lens

Cerebral Palsy

Implementation

At the specified date, a patient is defined as having had 'Cerebral Palsy' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Cerebral Palsy' diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Cerebral Palsy' or history of diagnosis during a hospitalization
Read code Read Term
38Gw.00 Gross Motor Function Classification System Cerebral Palsy
F137000 Athetoid cerebral palsy
F137011 Vogt's disease
F137100 Double athetosis
F137111 Congenital athetosis
F137.11 Athetoid cerebral palsy
F137.12 Athetosis - congenital
F230000 Congenital paraplegia
F230100 Cerebral palsy with spastic diplegia
F230111 Spastic diplegic cerebral palsy
F230.00 Congenital diplegia
F230.11 Paraplegia - congenital
F230z00 Congenital diplegia NOS
F231.00 Congenital hemiplegia
F232.00 Congenital quadriplegia
F232.11 Tetraplegia - congenital
F233.00 Congenital monoplegia
F233.11 Congenital spastic foot
F234.00 Infantile hemiplegia NOS
F23..00 Congenital cerebral palsy
F23..11 Congenital spastic cerebral palsy
F23..12 Infantile cerebral palsy
F23..13 Littles disease
F23..14 Cerebral atonia
F23y000 Ataxic infantile cerebral palsy
F23y100 Flaccid infantile cerebral palsy
F23y200 Spastic cerebral palsy
F23y300 Dyskinetic cerebral palsy
F23y400 Ataxic diplegic cerebral palsy
F23y500 Worster-Drought syndrome
F23y511 Congenital suprabulbar paresis
F23y600 Choreoathetoid cerebral palsy
F23y.00 Other congenital cerebral palsy
F23yz00 Other infantile cerebral palsy NOS
F23z.00 Congenital cerebral palsy NOS
F2B0.00 Spastic quadriplegic cerebral palsy
F2B1.00 Spastic hemiplegic cerebral palsy
F2B..00 Cerebral palsy
F2By.00 Other cerebral palsy
F2Bz.00 Cerebral palsy NOS
Fyu9000 [X]Other infantile cerebral palsy
Fyu9.00 [X]Cerebral palsy and other paralytic syndromes
G669.00 Cerebral palsy, not congenital or infantile, acute

Secondary care diagnoses (ICD_cerebral_palsy.csv)

ICD-10 code ICD-10 Term
G80 Cerebral palsy

Cholangitis

Implementation

At the specified date, a patient is defined as having had 'Cholangitis' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Cholangitis' diagnosis or history of diagnosis or procedure during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Cholangitis' or history of diagnosis during a hospitalization

Primary care (CPRD_cholangitis.csv)

Read code Read Term
J620100 Liver abscess due to cholangitis
J646.00 Calculus of bile duct with cholangitis
J661000 Acute cholangitis
J661100 Chronic cholangitis
J661200 Recurrent cholangitis
J661300 Suppurative cholangitis
J661400 Ascending cholangitis
J661500 Cholangitis lenta
J661600 Obliterative cholangitis
J661700 Primary sclerosing cholangitis
J661800 Secondary sclerosing cholangitis
J661900 Sclerosing cholangitis unspecified
J661.00 Cholangitis
J661y00 Other cholangitis
J661z00 Cholangitis NOS

Secondary care diagnoses (ICD_cholangitis.csv)

ICD-10 code ICD-10 Term
K80.3 Calculus of bile duct with cholangitis
K83.0 Cholangitis

Cholecystitis

Implementation

At the specified date, a patient is defined as having had 'Cholecystitis' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Cholecystitis' diagnosis or history of diagnosis or procedure during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Cholecystitis' or history of diagnosis during a hospitalization

Primary care (CPRD_cholecystitis.csv)

Read code Read Term
J643000 Bile duct calculus + acute cholecystitis and no obstruction
J643100 Bile duct calculus + acute cholecystitis and obstruction
J643.00 Bile duct calculus with acute cholecystitis
J643z00 Bile duct calculus + acute cholecystitis - obstruct NOS
J644000 Bile duct calculus + other cholecystitis and no obstruction
J644100 Bile duct calculus + other cholecystitis and obstruction
J644.00 Bile duct calculus with other cholecystitis
J644z00 Bile duct calculus + other cholecystitis - obstruction NOS
J650000 Acute cholecystitis unspecified
J650100 Acute angiocholecystitis
J650200 Acute emphysematous cholecystitis
J650300 Acute suppurative cholecystitis
J650400 Acute gangrenous cholecystitis
J650.00 Acute cholecystitis
J650.11 Abscess of gallbladder
J650.12 Empyema of gallbladder
J650z00 Acute cholecystitis NOS
J651000 Chronic cholecystitis
J651.00 Other cholecystitis
J651y00 Other cholecystitis OS
J651z00 Cholecystitis NOS
Jyu8100 [X]Other cholecystitis

Secondary care diagnoses (ICD_cholecystitis.csv)

ICD-10 code ICD-10 Term
K80.0 Calculus of gallbladder with acute cholecystitis
K80.1 Calculus of gallbladder with other cholecystitis
K80.4 Calculus of bile duct with cholecystitis
K81 Cholecystitis

Cholelithiasis

Implementation

At the specified date, a patient is defined as having had 'Cholelithiasis' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Cholelithiasis' diagnosis or history of diagnosis or procedure during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Cholelithiasis' or history of diagnosis during a hospitalization
Read code Read Term
14CE.00 H/O: gall stones
1965.00 Biliary colic
1965.11 Biliary colic symptom
4775.00 Faeces: gall stones present
4G21.00 O/E: cholesterol gall stone
4G22.00 O/E: pigment gall stone
4G2..00 O/E: gall stone
4G2Z.00 O/E: gall stone NOS
7648700.0 Enterotomy and removal of gallstone
8CMWD00 On gallstone care pathway
J503000 Gallstone ileus
J640000 Gallbladder calculus with acute cholecystitis +no obstruct
J640100 Gallbladder calculus with acute cholecystitis + obstruction
J640.00 Gallbladder calculus with acute cholecystitis
J640z00 Gallbladder calculus with acute cholecystitis - obst NOS
J641000 Gallbladder calculus with other cholecystitis +no obstruct
J641100 Gallbladder calculus with other cholecystitis + obstruct
J641.00 Gallbladder calculus with other cholecystitis
J641z00 Gallbladder calculus with other cholecystitis - obstruct NOS
J642000 Gallbladder calculus without mention cholecystitis +no obstr
J642100 Gallbladder calculus without mention cholecystitis + obstruc
J642200 Biliary colic
J642.00 Gallbladder calculus without mention of cholecystitis
J642.11 Gallbladder calculus without mention of cholecystitis
J642z00 Gallbladder calculus without cholecystitis and obstruct NOS
J643000 Bile duct calculus + acute cholecystitis and no obstruction
J643100 Bile duct calculus + acute cholecystitis and obstruction
J643.00 Bile duct calculus with acute cholecystitis
J643z00 Bile duct calculus + acute cholecystitis - obstruct NOS
J644000 Bile duct calculus + other cholecystitis and no obstruction
J644100 Bile duct calculus + other cholecystitis and obstruction
J644.00 Bile duct calculus with other cholecystitis
J644z00 Bile duct calculus + other cholecystitis - obstruction NOS
J645000 Bile duct calculus without cholecystitis, no obstruction
J645100 Bile duct calculus without cholecystitis with obstruction
J645200 Bile duct calculus NOS
J645.00 Bile duct calculus without mention of cholecystitis
J645.11 Choledocholithiasis
J645z00 Bile duct calculus without cholecystitis NOS
J646.00 Calculus of bile duct with cholangitis
J64..00 Cholelithiasis
J64..11 Bile duct calculus
J64..12 Calculus - biliary
J64..13 Cystic duct calculus
J64..14 Gallbladder calculus
J64..15 Gallstones
J64..16 Stone - biliary
J64z000 Cholelithiasis without obstruction NOS
J64z100 Cholelithiasis with obstruction NOS
J64z.00 Cholelithiasis NOS
J64zz00 Cholelithiasis NOS
J670500 Gallstone acute pancreatitis
J671100 Gallstone chronic pancreatitis
Jyu8000 [X]Other cholelithiasis

Secondary care diagnoses (ICD_cholelithiasis.csv)

ICD-10 code ICD-10 Term
K80 Cholelithiasis

Chronic Kidney Disease

Implementation

Apply modified CALIBER 'Chronic Kidney Disease' algorithm in CPRD primary care data as follows:

A patient is defined as having had CKD stage 3 or above at a specified date:

IF egfr_ckdepi recorded on or before specified date, THEN 
IF egfr_ckdepi <60 ml/min on the most recent date (index date) before the specified date
AND
IF egfr_ckdepi <60 ml/min on any date greater than 90 days BEFORE the index date above
THEN classify as having CKD3 or above
ELSE the patient is not defined as having CKD stage 3 or above.

Where egfr_ckdepi up to and including 31 Dec 2013 is defined as: 
egfr_ckdepi = 141 * min(crea_gprd * 0.010746 / K, 1)^alpha
* max(crea_gprd * 0.010746 / K, 1)^-1.209 
* 0.993^age * 1.018 [if female]  * 1.159 [if black]

where:
alpha = -0.329 for females, -0.411 for males
K = 0.7 for females, 0.9 for males

Where egfr_ckdepi from and including 1 Jan 2014 is defined as: 
egfr_ckdepi = 141 * min(crea_gprd * 0.011312 / K, 1)^alpha
* max(crea_gprd * 0.011312/ K, 1)^-1.209 
* 0.993^age * 1.018 [if female]  * 1.159 [if black]

where:
alpha = -0.329 for females, -0.411 for males
K = 0.7 for females, 0.9 for males

Where crea_gprd is defined as:
IF enttype = 165 [Serum creatinine] 
AND data1 [Operator] = 3 ["="] AND data2 [Value] > 0
THEN crea_gprd = data2

Chronic sinusitis

Implementation

At the specified date, a patient is defined as having had 'Chronic sinusitis' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Chronic sinusitis' diagnosis or history of diagnosis during a consultation 
OR
2.  There are at least 2 records satisfying the criteria for Possible diagnosis of 'Chronic sinusitis' during a consultation more than 84 days apart. 

Secondary care (ICD10)
1. ALL diagnoses of 'Chronic sinusitis' or history of diagnosis during a hospitalization

Primary care (CPRD_sinusitis.csv)

Read code Read Term
H01..11 Sinusitis
H130.00 Chronic maxillary sinusitis
H130.11 Antritis - chronic
H130.12 Maxillary sinusitis
H131.00 Chronic frontal sinusitis
H131.11 Frontal sinusitis
H132.00 Chronic ethmoidal sinusitis
H133.00 Chronic sphenoidal sinusitis
H135.00 Recurrent sinusitis
H13..00 Chronic sinusitis
H13..11 Chronic rhinosinusitis
H13y000 Chronic pansinusitis
H13y100 Pansinusitis
H13y.00 Other chronic sinusitis
H13yz00 Other chronic sinusitis NOS
H13z.00 Chronic sinusitis NOS
H17..12 Allergic rhinosinusitis
Hyu2200 [X]Other chronic sinusitis

Secondary care diagnoses (ICD_sinusitis.csv)

ICD-10 code ICD-10 Term
J32 Chronic sinusitis

Chronic viral hepatitis

Implementation

At the specified date, a patient is defined as having had 'Chronic viral hepatitis' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Chronic viral hepatitis' diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Chronic viral hepatitis' or history of diagnosis during a hospitalization

Primary care (CPRD_chr_hep.csv)

Read code Read Term
141E.00 History of hepatitis B
14i..00 H/O hepatitis C antiviral drug therapy
2126700.0 Hepatitis C resolved
43B4.00 Hepatitis B surface antig +ve
43B5.00 Hepatitis e antigen present
43j5.00 Hepatitis C nucleic acid detection
43jG.00 Hepatitis B nucleic acid detection
43X3.00 Hepatitis C antibody test positive
4J3B.00 Hepatitis C viral load
4J3D.00 Hepatitis B viral load
4JQ3.00 Hepatitis C virus genotype
4JQD.00 Hepatitis C viral ribonucleic acid PCR positive
4JQD.11 Hepatitis C PCR positive
4JQF.00 Hepatitis C antigen positive
7Q05200 Hepatitis B treatment drugs Band 1
8BB5.00 12 week virologic response to hepatitis C treatment
9kR..00 Chronic hepatitis annual review - enhanced services admin
9kV..00 Hepatitis C screening positive - enhanced services admin
9kV..11 Hepatitis C screening positive
9kX..00 Hepatitis status 6 months post treatment - enhanced serv adm
9kZ..00 Hepatitis B screening positive - enhanced services admin
9kZ..11 Hepatitis B screening positive
9NgR.00 On hepatitis C treatment plan
A703.00 Viral (serum) hepatitis B
A705000 Viral hepatitis C without mention of hepatic coma
A705100 Acute delta-(super)infection of hepatitis B carrier
A707000 Chronic viral hepatitis B with delta-agent
A707100 Chronic viral hepatitis B without delta-agent
A707200 Chronic viral hepatitis C
A707300 Chronic viral hepatitis B
A707.00 Chronic viral hepatitis
A707X00 Chronic viral hepatitis, unspecified
A70A.00 Hepatitis C genotype 1
A70B.00 Hepatitis C genotype 2
A70C.00 Hepatitis C genotype 3
A70D.00 Hepatitis C genotype 4
A70z000 Hepatitis C
AyuB100 [X]Other chronic viral hepatitis
AyuB200 [X]Chronic viral hepatitis, unspecified
Q409100 Congenital hepatitis B infection

Secondary care diagnoses (ICD_chr_hep.csv)

ICD-10 code ICD-10 Term
B18 Chronic viral hepatitis

Coeliac disease

Implementation

At the specified date, a patient is defined as having had 'Coeliac disease' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Coeliac disease' diagnosis or history of diagnosis or procedure during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Coeliac disease' or history of diagnosis during a hospitalization

Primary care (CPRD_coeliac.csv)

Read code Read Term
6648000 Coeliac disease annual review
6648 Coeliac disease monitoring
8IAp.00 Coeliac disease annual review declined
9mB1.00 Coeliac disease monitoring invitation first letter
9mB..00 Coeliac disease monitoring invitation
J690000 Congenital coeliac disease
J690100 Acquired coeliac disease
J690.00 Coeliac disease
J690.11 Coeliac rickets
J690.12 Gee - Herter disease
J690.13 Gluten enteropathy
J690.14 Sprue - nontropical
J690.15 Steatorrhea - idiopathic
J690z00 Coeliac disease NOS
ZC2C200 Dietary advice for coeliac disease

Secondary care diagnoses (ICD_coeliac.csv)

ICD-10 code ICD-10 Term
K90.0 Coeliac disease

Collapsed vertebra

Implementation

At the specified date, a patient is defined as having had 'Collapsed vertebra' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Collapsed vertebra' diagnosis or history of diagnosis or procedure during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of 'Collapsed vertebra' or history of diagnosis during a hospitalization
OR
Secondary care (OPCS4)
1. ALL procedures for 'Collapsed vertebra' during a hospitalization
Read code Read Term
7J41300 Vertebroplasty of fracture of spine
7J41500 Balloon kyphoplasty of fracture of spine
7J48M00 Vertebroplasty
N331000 Pathological fracture of thoracic vertebra
N331011 Collapse of thoracic vertebra
N331100 Pathological fracture of lumbar vertebra
N331111 Collapse of lumbar vertebra
N331800 Osteoporosis + pathological fracture lumbar vertebrae
N331900 Osteoporosis + pathological fracture thoracic vertebrae
N331A00 Osteoporosis + pathological fracture cervical vertebrae
N331C00 Pathological fracture of cervical vertebra
N331D00 Collapsed vertebra NOS
N331E00 Collapse of cervical vertebra
N331F00 Collapse of thoracic vertebra
N331G00 Collapse of lumbar vertebra
N331H00 Collapse of cervical vertebra due to osteoporosis
N331J00 Collapse of lumbar vertebra due to osteoporosis
N331K00 Collapse of thoracic vertebra due to osteoporosis
N331L00 Collapse of vertebra due to osteoporosis NOS
N331.11 Collapse of spine NOS
N331.12 Collapse of vertebra NOS
N331.14 Osteoporotic vertebral collapse
Nyu6700 [X]Collapsed vertebra in diseases classified elsewhere
S100H00 Closed fracture cervical vertebra, wedge
S102100 Closed fracture thoracic vertebra, wedge
S104100 Closed fracture lumbar vertebra, wedge
S106000 Closed compression fracture sacrum

Secondary care diagnoses (ICD_collapsed_vert.csv)

ICD-10 code ICD-10 Term
M48.5 Collapsed vertebra, not elsewhere classified
M49.5 Collapsed vertebra in diseases classified elsewhere

Secondary care procedures (OPCS_collapsed_vert.csv)

OPCS-4 code OPCS-4 Term
V44 Decompression of fracture of spine
V44.1 Complex decompression of fracture of spine
V44.2 Anterior decompression of fracture of spine
V44.3 Posterior decompression of fracture of spine NEC
V44.4 Vertebroplasty of fracture of spine
V44.5 Balloon kyphoplasty of fracture of spine
V44.8 Other specified decompression of fracture of spine
V44.9 Unspecified decompression of fracture of spine

Congenital malformations of cardiac septa

Implementation

At the specified date, a patient is defined as having had Congenital malformations of cardiac septa IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. Congenital malformations of cardiac septa diagnosis or history of diagnosis or procedure during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of Congenital malformations of cardiac septa or history of diagnosis during a hospitalization
OR
Secondary care (OPCS4)
1. ALL procedures for Congenital malformations of cardiac septa during a hospitalization
Read code Read Term
14AV.00 History of ventricular septal defect
2126800.0 Ostium secundum atrial septal defect resolved
24M..00 Spontaneous closure of ventricular septal defect
7902000.0 Correct Fallot tetralogy- valved right ventr outflow conduit
7902100.0 Correct Fallot tetralogy- right ventric outflow conduit NEC
7902200.0 Correct Fallot tetralogy- right ventricular outflow patch
7902300.0 Revision of correction of tetralogy of Fallot
7902400.0 Repair of tetralogy of Fallot using transannular patch
7902500.0 Repair of tetralogy of Fallot with absent pulmonary valve
7902600.0 Repair Fallot-type pulmonary atresia aortopulmonary collater
7902.00 Correction of tetralogy of Fallot
7902.11 Repair of tetralogy of Fallot
7902y00 Other specified correction of tetralogy of Fallot
7902z00 Correction of tetralogy of Fallot NOS
7902z11 Repair of tetralogy of Fallot NOS
7906300.0 Closure of persistent ostium primum
7906311.0 Repair of persistent ostium primum
7908500.0 Closure of multiple interventricular septal defects
7908511.0 Repair of multiple interventricular septal defects
7908600.0 Closure interventricular septal defect us intraop trans pros
7908611.0 Repair interventricular septal defect us intraop trans pros
790K100 Repair of Fallot-type double outlet right ventricle
P500.00 Absent septum between aorta and pulmonary artery
P511300 Taussig-Bing syndrome
P520.00 Tetralogy of Fallot, unspecified
P520.11 Ventricular septal defect in Fallot's tetralogy
P520.12 Dextraposition of aorta in Fallot's tetralogy
P521.00 Pentalogy of Fallot
P52..00 Tetralogy of Fallot
P52z.00 Tetralogy of Fallot NOS
P53..00 Common ventricle
P540.00 Ventricular septal defect, unspecified
P541.00 Interventricular septal defect
P542.00 Left ventricle to right atrial communication
P543.00 Eisenmenger's complex
P544.00 Gerbode's defect
P545.00 Roger's disease
P54..00 Ventricular septal defect
P54y.00 Other specified ventricular septal defect
P54z.00 Ventricular septal defect NOS
P550.00 Atrial septal defect NOS
P550.11 Auricular septal defect NOS
P550.12 Interatrial septal defect NEC
P550.13 Interauricular septal defect
P551.00 Patent foramen ovale
P552.00 Persistent ostium secundum
P552.11 Patent ostium secundum
P553.00 Lutembacher's syndrome
P55..00 Ostium secundum atrial septal defect
P55y.00 Other specified ostium secundum atrial septal defect
P55y.11 Other specified atrial septal defect
P55z.00 Ostium secundum atrial septal defect NOS
P561.00 Ostium primum defect
P561.11 Persistent ostium primum
P56..00 Endocardial cushion defects
P56y.00 Other specified endocardial cushion defects
P56z000 Common atrium
P56z011 Cor triloculare biventriculare
P56z100 Common atrioventricular canal
P56z200 Common atrioventricular-type ventricular septal defect
P56z.00 Endocardial cushion defects NOS
P56zz00 Endocardial cushion defects NOS
P5y..00 Other heart bulb and septal closure defect
P5z..00 Heart bulb or septal closure defects NOS
P60z100 Fallot's trilogy

Secondary care diagnoses (ICD_congenital_septal.csv)

ICD-10 code ICD-10 Term
Q21 Congenital malformations of cardiac septa

Secondary care procedures (OPCS_congenital_septal.csv)

OPCS-4 code OPCS-4 Term
K04 Repair of tetralogy of Fallot
K04.1 Repair of tetralogy of Fallot using valved right ventricular outflow conduit
K04.2 Repair of tetralogy of Fallot using right ventricular outflow conduit NEC
K04.3 Repair of tetralogy of Fallot using transannular patch
K04.4 Revision of repair of tetralogy of Fallot
K04.5 Repair of tetralogy of Fallot with absent pulmonary valve
K04.6 Repair of Fallot-type pulmonary atresia with aortopulmonary collaterals
K04.8 Other specified repair of tetralogy of Fallot
K04.9 Unspecified repair of tetralogy of Fallot
K09 Repair of defect of atrioventricular septum
K09.1 Repair of defect of atrioventricular septum using dual prosthetic patches
K09.2 Repair of defect of atrioventricular septum using prosthetic patch NEC
K09.3 Repair of defect of atrioventricular septum using tissue graft
K09.4 Repair of persistent ostium primum
K09.5 Primary repair of defect of atrioventricular septum NEC
K09.6 Revision of repair of defect of atrioventricular septum
K09.8 Other specified repair of defect of atrioventricular septum
K09.9 Unspecified repair of defect of atrioventricular septum
K10 Repair of defect of interatrial septum
K10.1 Repair of defect of interatrial septum using prosthetic patch
K10.2 Repair of defect of interatrial septum using pericardial patch
K10.3 Repair of defect of interatrial septum using tissue graft NEC
K10.4 Primary repair of defect of interatrial septum NEC
K10.5 Revision of repair of defect of interatrial septum
K10.8 Other specified repair of defect of interatrial septum
K10.9 Unspecified repair of defect of interatrial septum
K11 Repair of defect of interventricular septum
K11.1 Repair of defect of interventricular septum using prosthetic patch
K11.2 Repair of defect of interventricular septum using pericardial patch
K11.3 Repair of defect of interventricular septum using tissue graft NEC
K11.4 Primary repair of defect of interventricular septum NEC
K11.5 Revision of repair of defect of interventricular septum
K11.6 Repair of multiple interventricular septal defects
K11.7 Repair of interventricular septal defect using intraoperative transluminal prosthesis
K11.8 Other specified repair of defect of interventricular septum
K11.9 Unspecified repair of defect of interventricular septum
K12 Repair of defect of unspecified septum of heart
K12.1 Repair of defect of septum of heart using prosthetic patch NEC
K12.2 Repair of defect of septum of heart using pericardial patch NEC
K12.3 Repair of defect of septum of heart using tissue graft NEC
K12.4 Primary repair of defect of septum of heart NEC
K12.5 Revision of repair of septum of heart NEC
K12.8 Other specified repair of defect of unspecified septum of heart
K12.9 Unspecified repair of defect of unspecified septum of heart
K13 Transluminal repair of defect of septum
K13.1 Percutaneous transluminal repair of defect of interventricular septum using prosthesis
K13.2 Percutaneous transluminal repair of defect of interventricular septum NEC
K13.3 Percutaneous transluminal repair of defect of interatrial septum using prosthesis
K13.4 Percutaneous transluminal repair of defect of interatrial septum NEC
K13.5 Percutaneous transluminal repair of defect of unspecified septum using prosthesis
K13.8 Other specified transluminal repair of defect of septum
K13.9 Unspecified transluminal repair of defect of septum
K14 Other open operations on septum of heart
K14.1 Open enlargement of defect of atrial septum
K14.2 Open atrial septostomy
K14.3 Atrial septectomy
K14.4 Surgical atrial septation
K14.5 Open enlargement of defect of interventricular septum
K14.8 Other specified other open operations on septum of heart
K14.9 Unspecified other open operations on septum of heart
K15 Closed operations on septum of heart
K15.1 Closed enlargement of defect of atrial septum
K15.2 Closed atrial septostomy
K15.8 Other specified closed operations on septum of heart
K15.9 Unspecified closed operations on septum of heart
K16 Other therapeutic transluminal operations on septum of heart
K16.1 Percutaneous transluminal balloon atrial septostomy
K16.2 Percutaneous transluminal atrial septostomy NEC
K16.3 Percutaneous transluminal atrial septum fenestration closure with prosthesis
K16.4 Percutaneous transluminal atrial septum fenestration
K16.5 Percutaneous transluminal closure of patent oval foramen with prosthesis
K16.6 Percutaneous transluminal chemical mediated septal ablation
K16.8 Other specified other therapeutic transluminal operations on septum of heart
K16.9 Unspecified other therapeutic transluminal operations on septum of heart

Coronary heart disease not otherwise specified

Implementation

Use MODIFIED CALIBER 'Coronary heart disease not otherwise specified' phenotyping algorithm

At the specified date, a patient is considered to have had 'Coronary heart disease not otherwise specified' IF they meet any of the criteria below on or before the specified date. 

The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date. 
1.	No previous records meeting the criteria for stable angina OR unstable angina OR myocardial infarction 
AND {
2.	Primary care:  chd_nos_gprd: category 1, 3
    a)	IF Read code in chd_nos_gprd list, THEN chd_nos_gprd= appropriate category
    b)	OR IF enttype = 16, chd_nos_gprd = 1
OR
3.	Secondary care: chd_nos_hes: category 3 }

Primary care (CPRD_CHD_NOS.csv)

Read code Read Term
14AL.00 H/O: Treatment for ischaemic heart disease
6A2..00 Coronary heart disease annual review
6A4..00 Coronary heart disease review
8B3k.00 Coronary heart disease medication review
8H2V.00 Admit ischaemic heart disease emergency
G3...00 Ischaemic heart disease
G3...11 Arteriosclerotic heart disease
G3...12 Atherosclerotic heart disease
G3...13 IHD - Ischaemic heart disease
G31..00 Other acute and subacute ischaemic heart disease
G311000 Myocardial infarction aborted
G311011 MI - myocardial infarction aborted
G31y.00 Other acute and subacute ischaemic heart disease
G31y200 Subendocardial ischaemia
G31y300 Transient myocardial ischaemia
G31yz00 Other acute and subacute ischaemic heart disease NOS
G34..00 Other chronic ischaemic heart disease
G340.00 Coronary atherosclerosis
G340.12 Coronary artery disease
G343.00 Ischaemic cardiomyopathy
G344.00 Silent myocardial ischaemia
G34y.00 Other specified chronic ischaemic heart disease
G34y100 Chronic myocardial ischaemia
G34yz00 Other specified chronic ischaemic heart disease NOS
G34z.00 Other chronic ischaemic heart disease NOS
G34z000 Asymptomatic coronary heart disease
G3y..00 Other specified ischaemic heart disease
G3z..00 Ischaemic heart disease NOS
Gyu3.00 [X]Ischaemic heart diseases
Gyu3200 [X]Other forms of acute ischaemic heart disease
Gyu3300 [X]Other forms of chronic ischaemic heart disease

Secondary care diagnoses (ICD_CHD_NOS.csv)

ICD-10 code ICD-10 Term
I250 Atherosclerotic cardiovascular disease, so described
I251 Atherosclerotic heart disease
I253 Aneurysm of heart
I254 Coronary artery aneurysm
I255 Ischaemic cardiomyopathy
I256 Silent myocardial ischaemia
I258 Other forms of chronic ischaemic heart disease
I259 Chronic ischaemic heart disease, unspecified

Crohn's disease

Implementation

At the specified date, a patient is defined as having had 'Crohn's disease' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Crohn's disease' diagnosis or history of diagnosis or procedure during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Crohn's disease' or history of diagnosis during a hospitalization

Primary care (CPRD_crohns.csv)

Read code Read Term
J08z900 Orofacial Crohn's disease
J400000 Regional enteritis of the duodenum
J400100 Regional enteritis of the jejunum
J400200 Crohn's disease of the terminal ileum
J400300 Crohn's disease of the ileum unspecified
J400400 Crohn's disease of the ileum NOS
J400500 Exacerbation of Crohn's disease of small intestine
J400.00 Regional enteritis of the small bowel
J400z00 Crohn's disease of the small bowel NOS
J401000 Regional enteritis of the colon
J401100 Regional enteritis of the rectum
J401200 Exacerbation of Crohn's disease of large intestine
J401.00 Regional enteritis of the large bowel
J401z00 Crohn's disease of the large bowel NOS
J401z11 Crohn's colitis
J402.00 Regional ileocolitis
J40..00 Regional enteritis - Crohn's disease
J40..11 Crohn's disease
J40..12 Granulomatous enteritis
J40z.00 Regional enteritis NOS
J40z.11 Crohn's disease NOS
Jyu4000 [X]Other Crohn's disease
N031100 Arthropathy in Crohn's disease
N045300 Juvenile arthritis in Crohn's disease
ZR3S.00 Crohn's disease activity index
ZR3S.11 CDAI - Crohn's disease activity index

Secondary care diagnoses (ICD_crohns.csv)

ICD-10 code ICD-10 Term
K50 Crohn's disease [regional enteritis]

Cystic Fibrosis

Implementation

At the specified date, a patient is defined as having had 'Cystic Fibrosis' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Cystic Fibrosis' diagnosis or history of diagnosis during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of 'Cystic Fibrosis' or history of diagnosis during a hospitalization

Primary care (CPRD_CF.csv)

Read code Read Term
66k0.00 Cystic fibrosis annual review
66k..00 Cystic fibrosis monitoring
C10N100 Cystic fibrosis related diabetes mellitus
C370000 Cystic fibrosis with no meconium ileus
C370100 Cystic fibrosis with meconium ileus
C370111 Meconium ileus in cystic fibrosis
C370200 Cystic fibrosis with pulmonary manifestations
C370300 Cystic fibrosis with intestinal manifestations
C370400 Arthropathy in cystic fibrosis
C370500 Cystic fibrosis with distal intestinal obstruction syndrome
C370700 Liver disease due to cystic fibrosis
C370800 Cystic fibrosis related cirrhosis
C370900 Exacerbation of cystic fibrosis
C370.00 Cystic fibrosis
C370.11 Fibrocystic disease
C370.12 Mucoviscidosis
C370y00 Cystic fibrosis with other manifestations
C370z00 Cystic fibrosis NOS

Secondary care diagnoses (ICD_CF.csv)

ICD-10 code ICD-10 Term
E84 Cystic fibrosis

Delirium, not induced by alcohol and other psychoactive substances

Implementation

At the specified date, a patient is defined as having had 'Delirium, not induced by alcohol and other psychoactive substances', not induced by alcohol and other psychoactive substances IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Delirium, not induced by alcohol and other psychoactive substances', not induced by alcohol and other psychoactive substances diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Delirium, not induced by alcohol and other psychoactive substances', not induced by alcohol and other psychoactive substances or history of diagnosis during a hospitalization

Primary care (CPRD_delirium.csv)

Read code Read Term
2233 O/E - delirious
E001100 Presenile dementia with delirium
E003.00 Senile dementia with delirium
E004100 Arteriosclerotic dementia with delirium
E030000 Acute confusional state, post traumatic
E030100 Acute confusional state, of infective origin
E030200 Acute confusional state, of endocrine origin
E030300 Acute confusional state, of metabolic origin
E030400 Acute confusional state, of cerebrovascular origin
E030.00 Acute confusional state
E030.11 Delirium - acute organic
E031000 Subacute confusional state, post traumatic
E031100 Subacute confusional state, of infective origin
E031300 Subacute confusional state, of metabolic origin
E031400 Subacute confusional state, of cerebrovascular origin
E031.00 Subacute confusional state
E031.11 Delirium - subacute organic
E031z00 Subacute confusional state NOS
Eu04000 [X]Delirium not superimposed on dementia, so described
Eu04100 [X]Delirium superimposed on dementia
Eu04.00 [X]Delirium, not induced by alcohol+other psychoactive subs
Eu04.11 [X]Acute / subacute brain syndrome
Eu04.12 [X]Acute / subacute confusional state, nonalcoholic
Eu04.13 [X]Acute / subacute infective psychosis
Eu04.14 [X]Acute / subacute organic reaction
Eu04.15 [X]Acute / subacute psycho-organic reaction
Eu04y00 [X]Other delirium
Eu04z00 [X]Delirium, unspecified

Secondary care diagnoses (ICD_delirium.csv)

ICD-10 code ICD-10 Term
F05 Delirium, not induced by alcohol and other psychoactive substances

Dementia

Implementation

At the specified date, a patient is defined as having had 'Dementia' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Dementia' diagnosis or history of diagnosis during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of 'Dementia' or history of diagnosis during a hospitalization

Primary care (CPRD_dementia.csv)

Read code Read Term
1461 H/O: dementia
66h..00 Dementia monitoring
6AB..00 Dementia annual review
8CMZ.00 Dementia care plan
9hD0.00 Excepted from dementia quality indicators: Patient unsuitabl
9hD1.00 Excepted from dementia quality indicators: Informed dissent
9hD..00 Exception reporting: dementia quality indicators
9Ou1.00 Dementia monitoring first letter
9Ou2.00 Dementia monitoring second letter
9Ou3.00 Dementia monitoring third letter
9Ou4.00 Dementia monitoring verbal invite
9Ou5.00 Dementia monitoring telephone invite
9Ou..00 Dementia monitoring administration
E000.00 Uncomplicated senile dementia
E001000 Uncomplicated presenile dementia
E001100 Presenile dementia with delirium
E001200 Presenile dementia with paranoia
E001300 Presenile dementia with depression
E001.00 Presenile dementia
E001z00 Presenile dementia NOS
E002000 Senile dementia with paranoia
E002100 Senile dementia with depression
E002.00 Senile dementia with depressive or paranoid features
E002z00 Senile dementia with depressive or paranoid features NOS
E003.00 Senile dementia with delirium
E004000 Uncomplicated arteriosclerotic dementia
E004100 Arteriosclerotic dementia with delirium
E004200 Arteriosclerotic dementia with paranoia
E004300 Arteriosclerotic dementia with depression
E004.00 Arteriosclerotic dementia
E004.11 Multi infarct dementia
E004z00 Arteriosclerotic dementia NOS
E00..00 Senile and presenile organic psychotic conditions
E00..11 Senile dementia
E00..12 Senile/presenile dementia
E00y.00 Other senile and presenile organic psychoses
E00y.11 Presbyophrenic psychosis
E00z.00 Senile or presenile psychoses NOS
E041.00 Dementia in conditions EC
Eu00000 [X]Dementia in Alzheimer's disease with early onset
Eu00011 [X]Presenile dementia,Alzheimer's type
Eu00012 [X]Primary degen dementia, Alzheimer's type, presenile onset
Eu00013 [X]Alzheimer's disease type 2
Eu00100 [X]Dementia in Alzheimer's disease with late onset
Eu00111 [X]Alzheimer's disease type 1
Eu00112 [X]Senile dementia,Alzheimer's type
Eu00113 [X]Primary degen dementia of Alzheimer's type, senile onset
Eu00200 [X]Dementia in Alzheimer's dis, atypical or mixed type
Eu00.00 [X]Dementia in Alzheimer's disease
Eu00z00 [X]Dementia in Alzheimer's disease, unspecified
Eu00z11 [X]Alzheimer's dementia unspec
Eu01000 [X]Vascular dementia of acute onset
Eu01100 [X]Multi-infarct dementia
Eu01111 [X]Predominantly cortical dementia
Eu01200 [X]Subcortical vascular dementia
Eu01300 [X]Mixed cortical and subcortical vascular dementia
Eu01.00 [X]Vascular dementia
Eu01.11 [X]Arteriosclerotic dementia
Eu01y00 [X]Other vascular dementia
Eu01z00 [X]Vascular dementia, unspecified
Eu02z00 [X] Unspecified dementia
Eu02z11 [X] Presenile dementia NOS
Eu02z12 [X] Presenile psychosis NOS
Eu02z13 [X] Primary degenerative dementia NOS
Eu02z14 [X] Senile dementia NOS
Eu02z15 [X] Senile psychosis NOS
Eu02z16 [X] Senile dementia, depressed or paranoid type
Eu04100 [X]Delirium superimposed on dementia
F110000 Alzheimer's disease with early onset
F110100 Alzheimer's disease with late onset
F110.00 Alzheimer's disease
Fyu3000 [X]Other Alzheimer's disease
ZS7C500 Language disorder of dementia

Secondary care diagnoses (ICD_dementia.csv)

ICD-10 code ICD-10 Term
F00 Dementia in Alzheimer's disease
F01 Vascular dementia
F03 Unspecified dementia
F05.1 Delirium superimposed on dementia
G30 Alzheimer's disease

Depression

Implementation

At the specified date, a patient is defined as having had 'Depression' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Depression' diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Depression' or history of diagnosis during a hospitalization

Primary care (CPRD_depression.csv)

Read code Read Term
1465 H/O: depression
212S.00 Depression resolved
8BK0.00 Depression management programme
8CAa.00 Patient given advice about management of depression
8HHq.00 Referral for guided self-help for depression
9H90.00 Depression annual review
9H91.00 Depression medication review
9H92.00 Depression interim review
9HA0.00 On depression register
9k40.00 Depression - enhanced service completed
9k4..00 Depression - enhanced services administration
9kQ..00 On full dose long term treatment depression - enh serv admin
9Ov0.00 Depression monitoring first letter
9Ov1.00 Depression monitoring second letter
9Ov2.00 Depression monitoring third letter
9Ov3.00 Depression monitoring verbal invite
9Ov4.00 Depression monitoring telephone invite
9Ov..00 Depression monitoring administration
E001300 Presenile dementia with depression
E002100 Senile dementia with depression
E004300 Arteriosclerotic dementia with depression
E112000 Single major depressive episode, unspecified
E112100 Single major depressive episode, mild
E112200 Single major depressive episode, moderate
E112300 Single major depressive episode, severe, without psychosis
E112400 Single major depressive episode, severe, with psychosis
E112500 Single major depressive episode, partial or unspec remission
E112600 Single major depressive episode, in full remission
E112.00 Single major depressive episode
E112.11 Agitated depression
E112.12 Endogenous depression first episode
E112.13 Endogenous depression first episode
E112.14 Endogenous depression
E112z00 Single major depressive episode NOS
E113000 Recurrent major depressive episodes, unspecified
E113100 Recurrent major depressive episodes, mild
E113200 Recurrent major depressive episodes, moderate
E113300 Recurrent major depressive episodes, severe, no psychosis
E113400 Recurrent major depressive episodes, severe, with psychosis
E113500 Recurrent major depressive episodes,partial/unspec remission
E113600 Recurrent major depressive episodes, in full remission
E113700 Recurrent depression
E113.00 Recurrent major depressive episode
E113.11 Endogenous depression - recurrent
E113z00 Recurrent major depressive episode NOS
E118.00 Seasonal affective disorder
E11..12 Depressive psychoses
E11y200 Atypical depressive disorder
E11z200 Masked depression
E130.00 Reactive depressive psychosis
E130.11 Psychotic reactive depression
E135.00 Agitated depression
E200300 Anxiety with depression
E291.00 Prolonged depressive reaction
E2B1.00 Chronic depression
E2B..00 Depressive disorder NEC
Eu20400 [X]Post-schizophrenic depression
Eu25100 [X]Schizoaffective disorder, depressive type
Eu25111 [X]Schizoaffective psychosis, depressive type
Eu25112 [X]Schizophreniform psychosis, depressive type
Eu32000 [X]Mild depressive episode
Eu32100 [X]Moderate depressive episode
Eu32200 [X]Severe depressive episode without psychotic symptoms
Eu32211 [X]Single episode agitated depressn w'out psychotic symptoms
Eu32212 [X]Single episode major depression w'out psychotic symptoms
Eu32213 [X]Single episode vital depression w'out psychotic symptoms
Eu32300 [X]Severe depressive episode with psychotic symptoms
Eu32311 [X]Single episode of major depression and psychotic symptoms
Eu32312 [X]Single episode of psychogenic depressive psychosis
Eu32313 [X]Single episode of psychotic depression
Eu32314 [X]Single episode of reactive depressive psychosis
Eu32400 [X]Mild depression
Eu32500 [X]Major depression, mild
Eu32600 [X]Major depression, moderately severe
Eu32700 [X]Major depression, severe without psychotic symptoms
Eu32800 [X]Major depression, severe with psychotic symptoms
Eu32900 [X]Single major depr ep, severe with psych, psych in remiss
Eu32A00 [X]Recurr major depr ep, severe with psych, psych in remiss
Eu32.00 [X]Depressive episode
Eu32.11 [X]Single episode of depressive reaction
Eu32.12 [X]Single episode of psychogenic depression
Eu32.13 [X]Single episode of reactive depression
Eu32y00 [X]Other depressive episodes
Eu32y11 [X]Atypical depression
Eu32y12 [X]Single episode of masked depression NOS
Eu32z00 [X]Depressive episode, unspecified
Eu32z11 [X]Depression NOS
Eu32z12 [X]Depressive disorder NOS
Eu32z13 [X]Prolonged single episode of reactive depression
Eu32z14 [X] Reactive depression NOS
Eu33000 [X]Recurrent depressive disorder, current episode mild
Eu33100 [X]Recurrent depressive disorder, current episode moderate
Eu33200 [X]Recurr depress disorder cur epi severe without psyc sympt
Eu33211 [X]Endogenous depression without psychotic symptoms
Eu33212 [X]Major depression, recurrent without psychotic symptoms
Eu33213 [X]Manic-depress psychosis,depressd,no psychotic symptoms
Eu33214 [X]Vital depression, recurrent without psychotic symptoms
Eu33300 [X]Recurrent depress disorder cur epi severe with psyc symp
Eu33311 [X]Endogenous depression with psychotic symptoms
Eu33312 [X]Manic-depress psychosis,depressed type+psychotic symptoms
Eu33313 [X]Recurr severe episodes/major depression+psychotic symptom
Eu33314 [X]Recurr severe episodes/psychogenic depressive psychosis
Eu33315 [X]Recurrent severe episodes of psychotic depression
Eu33316 [X]Recurrent severe episodes/reactive depressive psychosis
Eu33400 [X]Recurrent depressive disorder, currently in remission
Eu33.00 [X]Recurrent depressive disorder
Eu33.11 [X]Recurrent episodes of depressive reaction
Eu33.12 [X]Recurrent episodes of psychogenic depression
Eu33.13 [X]Recurrent episodes of reactive depression
Eu33.14 [X]Seasonal depressive disorder
Eu33.15 [X]SAD - Seasonal affective disorder
Eu33y00 [X]Other recurrent depressive disorders
Eu33z00 [X]Recurrent depressive disorder, unspecified
Eu33z11 [X]Monopolar depression NOS
Eu34100 [X]Dysthymia
Eu34111 [X]Depressive neurosis
Eu34112 [X]Depressive personality disorder
Eu34113 [X]Neurotic depression
Eu34114 [X]Persistant anxiety depression
Eu41200 [X]Mixed anxiety and depressive disorder
Eu41211 [X]Mild anxiety depression

Secondary care diagnoses (ICD_depression.csv)

ICD-10 code ICD-10 Term
F32 Depressive episode
F33 Recurrent depressive disorder

Dermatitis (atopc/contact/other/unspecified)

Implementation

At the specified date, a patient is defined as having had 'Dermatitis (atopc/contact/other/unspecified)' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Dermatitis (atopc/contact/other/unspecified)' diagnosis or history of diagnosis during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of 'Dermatitis (atopc/contact/other/unspecified)' or history of diagnosis during a hospitalization

Primary care (CPRD_dermatitis.csv)

Read code Read Term
14F1.00 H/O: eczema
26C4.00 Nipple eczema
3355.00 Skin:type 1 immediate reaction
C391211 Thrombocytopenic eczema with immunodeficiency
F4D3000 Eczematous eyelid dermatitis
F4D3100 Contact or allergic eyelid dermatitis
F4D3111 Allergic dermatitis - eyelid
F4D3112 Contact eczema - eyelids
F4D4.00 Infective eyelid dermatitis of types resulting in deformity
F4D5.00 Other eyelid infective dermatitis
F502400 Acute eczematoid otitis extern
F502411 Eczema of external ear
H330.00 Extrinsic (atopic) asthma
M07y.11 Pustular eczema
M07z.14 Infected dermatitis
M102.00 Infectious eczematoid dermatitis
M102.11 Pustular eczema
M104.00 Pityriasis simplex
M11..00 Atopic dermatitis and related conditions
M111.00 Atopic dermatitis/eczema
M1...11 Dermatitis/dermatoses
M112.00 Infantile eczema
M113.00 Flexural eczema
M114.00 Allergic (intrinsic) eczema
M115.00 Besnier's prurigo
M116.00 Neurodermatitis - diffuse
M116.11 Brocq's neurodermatitis
M117.00 Neurodermatitis - atopic
M119.00 Discoid eczema
M11A.00 Asteatotic eczema
M11z.00 Atopic dermatitis NOS
M120.00 Contact dermatitis due to detergents
M12..00 Contact dermatitis and other eczemas
M121.00 Contact dermatitis due to oils and greases
M12..11 Contact dermatitis
M121.11 Grease contact dermatitis
M121.12 Oil contact dermatitis
M12..12 Contact eczema
M12..13 Occupational dermatitis
M122000 Contact dermatitis due to chlorocompound
M122.00 Contact dermatitis due to solvents
M122100 Contact dermatitis due to cyclohexane
M122300 Contact dermatitis due to glycol
M122z00 Contact dermatitis due to solvent NOS
M123000 Contact dermatitis due to arnica
M123.00 Contact dermatitis due to drugs and medicaments
M123100 Contact dermatitis due to fungicides
M123200 Contact dermatitis due to iodine
M123300 Contact dermatitis due to keratolytics
M123400 Contact dermatitis due to mercurials
M123500 Contact dermatitis due to neomycin
M123600 Contact dermatitis due to pediculocides
M123700 Contact dermatitis due to phenols
M123800 Contact dermatitis due to scabicides
M123z00 Contact dermatitis due to medicament NOS
M124000 Contact dermatitis due to acids
M124.00 Contact dermatitis due to other chemical products
M124100 Contact dermatitis due to adhesive plaster
M124111 Elastoplast contact dermatitis
M124200 Contact dermatitis due to alkalis
M124300 Contact dermatitis due to caustics
M124400 Contact dermatitis due to dichromate
M124500 Contact dermatitis due to insecticide
M124600 Contact dermatitis due to nylon
M124700 Contact dermatitis due to plastic
M124800 Contact dermatitis due to rubber
M124z00 Contact dermatitis: other chemicals NOS
M125000 Contact dermatitis due to cereals
M125.00 Contact dermatitis due to food in contact with skin
M125100 Contact dermatitis due to fish
M125200 Contact dermatitis due to flour
M125300 Contact dermatitis due to fruit
M125400 Contact dermatitis due to meat
M125500 Contact dermatitis due to milk
M125z00 Contact dermatitis due to food NOS
M125z11 Egg contact dermatitis
M126000 Contact dermatitis due to lacquer tree
M126.00 Contact dermatitis due to plants
M126100 Contact dermatitis due to poison-ivy
M126200 Contact dermatitis due to poison-oak
M126300 Contact dermatitis due to poison-sumac
M126500 Contact dermatitis due to primrose
M126600 Contact dermatitis due to ragweed
M126z00 Contact dermatitis due to plants NOS
M128000 Allergic contact dermatitis due to adhesives
M128.00 Allergic contact dermatitis
M128100 Allergic contact dermatitis due to cosmetics
M128200 Allergic contact dermatitis due drugs in contact with skin
M128300 Allergic contact dermatitis due to dyes
M128400 Allergic contact dermatitis due to other chemical products
M128500 Allergic contact dermatitis due to food in contact with skin
M128600 Allergic contact dermatitis due to plants, except food
M129000 Irritant contact dermatitis due to cosmetics
M129.00 Irritant contact dermatitis
M129100 Irritant contact dermatitis due drugs in contact with skin
M129200 Irritant contact dermatitis due to other chemical products
M129300 Irritant contact dermatitis due to food in contact with skin
M129400 Irritant contact dermatitis due to plants, except food
M12y000 Contact dermatitis due to cosmetics
M12y.00 Contact dermatitis due to other specified agents
M12y011 Lanolin contact dermatitis
M12y012 Perfume contact dermatitis
M12y100 Contact dermatitis due to cold weather
M12y200 Contact dermatitis due to dyes
M12y300 Contact dermatitis due to furs
M12y400 Contact dermatitis due to hot weather
M12y500 Contact dermatitis due to infra-red rays
M12y600 Contact dermatitis due to jewellery
M12y700 Contact dermatitis due to light (excluding sunlight)
M12y800 Contact dermatitis due to metals
M12y811 Nickel sensitivity
M12y900 Contact dermatitis due to preservatives
M12yA00 Contact dermatitis due to radiation NOS
M12yB00 Contact dermatitis due to ultra-violet rays (excluding sun)
M12yC00 Contact dermatitis due to x-rays
M12yD00 Contact dermatitis due to casting materials
M12yz00 Contact dermatitis: specified agent NOS
M12z000 Dermatitis NOS
M12z.00 Contact dermatitis NOS
M12z100 Eczema NOS
M12z111 Discoid eczema
M12z200 Infected eczema
M12z300 Hand eczema
M12z400 Erythrodermic eczema
M12zz00 Contact dermatitis NOS
M130000 Generalized skin eruption due to drugs and medicaments
M130.00 Ingestion dermatitis due to drugs
M13..00 Ingestion dermatitis
M130100 Localized skin eruption due to drugs and medicaments
M130.11 Drug induced rash
M130200 Drug-induced erythroderma
M131.00 Ingestion dermatitis due to food
M13y.00 Ingestion dermatitis due to other specified substance
M13z.00 Ingestion dermatitis NOS
M15y200 Pityriasis rubra (Hebra)
M165000 Pityriasis alba
M173.00 Lichen simplex
M182000 Prurigo aestivalis
M182.00 Prurigo
M182200 Prurigo mitis
M182300 Prurigo simplex
M182z00 Prurigo NOS
M183000 Prurigo nodularis (Hyde's disease)
M183.00 Lichenification and lichen simplex chronicus
M183100 Neurodermatitis circumscripta
M183200 Lichen simplex
M183z00 Lichenification NOS
M1B..11 Juvenile plantar dermatitis
M1y0.00 Nummular dermatitis
M1y1.00 Cutaneous autosensitization
M252000 Dyshidrosis unspecified
M252.00 Dyshidrosis
M252100 Pompholyx unspecified
M252200 Cheiropompholyx
M252300 Podopompholyx
M252z00 Dyshidrosis NOS
M2y4100 Menstrual dermatosis
M2y4811 Juvenile plantar dermatitis
Myu2.00 [X]Dermatitis and eczema
Myu2100 [X]Allergic contact dermatitis due to oth chemical products
Myu2200 [X]Exacerbation of eczema
Myu2300 [X]Allergic contact dermatitis due to other agents
Myu2400 [X]Irritant contact dermatitis due to oth chemical products
Myu2500 [X]Irritant contact dermatitis due to other agents
Myu2600 [X]Unspcfd contact dermatitis due to other chemical products
Myu2700 [X]Unspecified contact dermatitis due to other agents
Myu2A00 [X]Other prurigo
Myu2C00 [X]Other specified dermatitis

Secondary care diagnoses (ICD_dermatitis.csv)

ICD-10 code ICD-10 Term
L20 Atopic dermatitis
L23 Allergic contact dermatitis
L24 Irritant contact dermatitis
L25 Unspecified contact dermatitis
L27 Dermatitis due to substances taken internally
L26 Exfoliative dermatitis
L28 Lichen simplex chronicus and prurigo
L30.0 Nummular dermatitis
L30.1 Dyshidrosis [pompholyx]
L30.2 Cutaneous autosensitization
L30.5 Pityriasis alba
L30.8 Other specified dermatitis
L30.9 Dermatitis, unspecified

Diabetes

Implementation

Use MODIFIED CALIBER 'Diabetes' phenotyping algorithm for 
1.	T1DM, 
2.	T2DM, 
3.	'Diabetes' other or uncertain type:

IF there is at least one record for code for type 2 'Diabetes' (diabdiag_gprd = 4)
    and no record for type 1 'Diabetes' (no record with diabdiag_gprd = 3)
    then classify the patient as type 2 'Diabetes'

ELSE if there is at least one record for code for type I 'Diabetes' (diabdiag_gprd = 3)
    and no record for type 2 'Diabetes' (no record with diabdiag_gprd = 4)
    then classify the patient as type 1 'Diabetes'

ELSE if there is at least one record of type 1 'Diabetes' (diabdiag_gprd = 3)
    and type 2 'Diabetes' (diabdiag_gprd = 4)
    then classify as 'Diabetes' other or uncertain type

ELSE if there are no diabdiag_gprd records for this patient:

    If there is at least one record for Non-insulin-dependent 'Diabetes' mellitus (NIDDM) (dm_gprd = 4 or dm_hes = 4)
        and no record for IDDM (no record with dm_gprd = 3 or dm_hes = 3)
        then classify the patient as type 2 'Diabetes'

    ELSE if there is at least one record for Insulin-dependent 'Diabetes' mellitus (IDDM) (dm_gprd = 3 or dm_hes = 3)
        and no record for NIDDM (no record with dm_gprd = 4 or dm_hes = 4)
        then classify the patient as type 1 'Diabetes'

    ELSE if there is at least one record of 'Diabetes' (dm_gprd or dm_hes category 3, 4, 5 or 6)
        then classify as 'Diabetes' other or uncertain type

ELSE classify as no 'Diabetes'

NOTE: This algorithm uses components from an existing phenotyping algorithm created by Julie George and Anoop Shah for the CALIBER project: dm_cprd, diabdiag_cprd and dm_hes. More information on the algorithm in the associated publication Lancet Diabetes Endocrinol . 2015 Feb;3(2):105-13. doi: 10.1016/S2213-8587(14)70219-0. Epub 2014 Nov 11.

Primary care (CPRD_diabetes.csv)

Read code Read Term
C108.12 Type 1 diabetes mellitus
C108.13 Type I diabetes mellitus
C108011 Type I diabetes mellitus with renal complications
C108012 Type 1 diabetes mellitus with renal complications
C108211 Type I diabetes mellitus with neurological complications
C108212 Type 1 diabetes mellitus with neurological complications
C108411 Unstable type I diabetes mellitus
C108412 Unstable type 1 diabetes mellitus
C108511 Type I diabetes mellitus with ulcer
C108512 Type 1 diabetes mellitus with ulcer
C108711 Type I diabetes mellitus with retinopathy
C108712 Type 1 diabetes mellitus with retinopathy
C108811 Type I diabetes mellitus - poor control
C108812 Type 1 diabetes mellitus - poor control
C108911 Type I diabetes mellitus maturity onset
C108912 Type 1 diabetes mellitus maturity onset
C108A11 Type I diabetes mellitus without complication
C108D11 Type I diabetes mellitus with nephropathy
C108E11 Type I diabetes mellitus with hypoglycaemic coma
C108E12 Type 1 diabetes mellitus with hypoglycaemic coma
C108F11 Type I diabetes mellitus with diabetic cataract
C108H11 Type I diabetes mellitus with arthropathy
C108J11 Type I diabetes mellitus with neuropathic arthropathy
C108J12 Type 1 diabetes mellitus with neuropathic arthropathy
C10E.00 Type 1 diabetes mellitus
C10E.11 Type I diabetes mellitus
C10E000 Type 1 diabetes mellitus with renal complications
C10E100 Type 1 diabetes mellitus with ophthalmic complications
C10E200 Type 1 diabetes mellitus with neurological complications
C10E300 Type 1 diabetes mellitus with multiple complications
C10E311 Type I diabetes mellitus with multiple complications
C10E400 Unstable type 1 diabetes mellitus
C10E411 Unstable type I diabetes mellitus
C10E500 Type 1 diabetes mellitus with ulcer
C10E511 Type I diabetes mellitus with ulcer
C10E600 Type 1 diabetes mellitus with gangrene
C10E700 Type 1 diabetes mellitus with retinopathy
C10E711 Type I diabetes mellitus with retinopathy
C10E800 Type 1 diabetes mellitus - poor control
C10E900 Type 1 diabetes mellitus maturity onset
C10E911 Type I diabetes mellitus maturity onset
C10EA00 Type 1 diabetes mellitus without complication
C10EA11 Type I diabetes mellitus without complication
C10EB00 Type 1 diabetes mellitus with mononeuropathy
C10EC00 Type 1 diabetes mellitus with polyneuropathy
C10EC11 Type I diabetes mellitus with polyneuropathy
C10ED00 Type 1 diabetes mellitus with nephropathy
C10EE00 Type 1 diabetes mellitus with hypoglycaemic coma
C10EF00 Type 1 diabetes mellitus with diabetic cataract
C10EG00 Type 1 diabetes mellitus with peripheral angiopathy
C10EH00 Type 1 diabetes mellitus with arthropathy
C10EJ00 Type 1 diabetes mellitus with neuropathic arthropathy
C10EK00 Type 1 diabetes mellitus with persistent proteinuria
C10EL00 Type 1 diabetes mellitus with persistent microalbuminuria
C10EM00 Type 1 diabetes mellitus with ketoacidosis
C10EM11 Type I diabetes mellitus with ketoacidosis
C10EN00 Type 1 diabetes mellitus with ketoacidotic coma
C10EN11 Type I diabetes mellitus with ketoacidotic coma
C10EP00 Type 1 diabetes mellitus with exudative maculopathy
C10EP11 Type I diabetes mellitus with exudative maculopathy
C10EQ00 Type 1 diabetes mellitus with gastroparesis
C109.12 Type 2 diabetes mellitus
C109.13 Type II diabetes mellitus
C109011 Type II diabetes mellitus with renal complications
C109012 Type 2 diabetes mellitus with renal complications
C109111 Type II diabetes mellitus with ophthalmic complications
C109112 Type 2 diabetes mellitus with ophthalmic complications
C109211 Type II diabetes mellitus with neurological complications
C109212 Type 2 diabetes mellitus with neurological complications
C109411 Type II diabetes mellitus with ulcer
C109412 Type 2 diabetes mellitus with ulcer
C109511 Type II diabetes mellitus with gangrene
C109512 Type 2 diabetes mellitus with gangrene
C109611 Type II diabetes mellitus with retinopathy
C109612 Type 2 diabetes mellitus with retinopathy
C109711 Type II diabetes mellitus - poor control
C109712 Type 2 diabetes mellitus - poor control
C109A11 Type II diabetes mellitus with mononeuropathy
C109B11 Type II diabetes mellitus with polyneuropathy
C109C11 Type II diabetes mellitus with nephropathy
C109C12 Type 2 diabetes mellitus with nephropathy
C109D11 Type II diabetes mellitus with hypoglycaemic coma
C109D12 Type 2 diabetes mellitus with hypoglycaemic coma
C109E11 Type II diabetes mellitus with diabetic cataract
C109E12 Type 2 diabetes mellitus with diabetic cataract
C109F11 Type II diabetes mellitus with peripheral angiopathy
C109F12 Type 2 diabetes mellitus with peripheral angiopathy
C109G11 Type II diabetes mellitus with arthropathy
C109G12 Type 2 diabetes mellitus with arthropathy
C109H11 Type II diabetes mellitus with neuropathic arthropathy
C109H12 Type 2 diabetes mellitus with neuropathic arthropathy
C109J00 Insulin treated Type 2 diabetes mellitus
C109J12 Insulin treated Type II diabetes mellitus
C109K00 Hyperosmolar non-ketotic state in type 2 diabetes mellitus
C10F.00 Type 2 diabetes mellitus
C10F.11 Type II diabetes mellitus
C10F000 Type 2 diabetes mellitus with renal complications
C10F011 Type II diabetes mellitus with renal complications
C10F100 Type 2 diabetes mellitus with ophthalmic complications
C10F200 Type 2 diabetes mellitus with neurological complications
C10F211 Type II diabetes mellitus with neurological complications
C10F300 Type 2 diabetes mellitus with multiple complications
C10F311 Type II diabetes mellitus with multiple complications
C10F400 Type 2 diabetes mellitus with ulcer
C10F411 Type II diabetes mellitus with ulcer
C10F500 Type 2 diabetes mellitus with gangrene
C10F600 Type 2 diabetes mellitus with retinopathy
C10F611 Type II diabetes mellitus with retinopathy
C10F700 Type 2 diabetes mellitus - poor control
C10F711 Type II diabetes mellitus - poor control
C10F900 Type 2 diabetes mellitus without complication
C10F911 Type II diabetes mellitus without complication
C10FA00 Type 2 diabetes mellitus with mononeuropathy
C10FA11 Type II diabetes mellitus with mononeuropathy
C10FB00 Type 2 diabetes mellitus with polyneuropathy
C10FB11 Type II diabetes mellitus with polyneuropathy
C10FC00 Type 2 diabetes mellitus with nephropathy
C10FD00 Type 2 diabetes mellitus with hypoglycaemic coma
C10FD11 Type II diabetes mellitus with hypoglycaemic coma
C10FE00 Type 2 diabetes mellitus with diabetic cataract
C10FE11 Type II diabetes mellitus with diabetic cataract
C10FF00 Type 2 diabetes mellitus with peripheral angiopathy
C10FG00 Type 2 diabetes mellitus with arthropathy
C10FH00 Type 2 diabetes mellitus with neuropathic arthropathy
C10FJ00 Insulin treated Type 2 diabetes mellitus
C10FJ11 Insulin treated Type II diabetes mellitus
C10FK00 Hyperosmolar non-ketotic state in type 2 diabetes mellitus
C10FL00 Type 2 diabetes mellitus with persistent proteinuria
C10FL11 Type II diabetes mellitus with persistent proteinuria
C10FM00 Type 2 diabetes mellitus with persistent microalbuminuria
C10FM11 Type II diabetes mellitus with persistent microalbuminuria
C10FN00 Type 2 diabetes mellitus with ketoacidosis
C10FP00 Type 2 diabetes mellitus with ketoacidotic coma
C10FQ00 Type 2 diabetes mellitus with exudative maculopathy
C10FR00 Type 2 diabetes mellitus with gastroparesis

Secondary care diagnoses (ICD_diabetes.csv)

ICD-10 code ICD-10 Term
E10 Insulin-dependent diabetes mellitus
E11 Non-insulin-dependent diabetes mellitus
E12 Malnutrition-related diabetes mellitus
O242 Diabetes mellitus in pregnancy: Pre-existing malnutrition-related diabetes mellitus
E13 Other specified diabetes mellitus
E14 Unspecified diabetes mellitus
G590 Diabetic mononeuropathy
G632 Diabetic polyneuropathy
H280 Diabetic cataract
H360 Diabetic retinopathy
M142 Diabetic arthropathy
N083 Glomerular disorders in diabetes mellitus
O240 Diabetes mellitus in pregnancy: Pre-existing diabetes mellitus, insulin-dependent
O241 Diabetes mellitus in pregnancy: Pre-existing diabetes mellitus, non-insulin-dependent
O243 Diabetes mellitus in pregnancy: Pre-existing diabetes mellitus, unspecified

Diabetic neurological complications

Implementation

At the specified date, a patient is defined as having had Diabetic neurological complications IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. Diabetic neurological complications diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of Diabetic neurological complications or history of diagnosis during a hospitalization

Primary care (CPRD_dm_neuro.csv)

Read code Read Term
C106000 Diabetes mellitus, juvenile, + neurological manifestation
C106100 Diabetes mellitus, adult onset, + neurological manifestation
C106.00 Diabetes mellitus with neurological manifestation
C106.11 Diabetic amyotrophy
C106.12 Diabetes mellitus with neuropathy
C106.13 Diabetes mellitus with polyneuropathy
C106y00 Other specified diabetes mellitus with neurological comps
C106z00 Diabetes mellitus NOS with neurological manifestation
C108200 Insulin-dependent diabetes mellitus with neurological comps
C108211 Type I diabetes mellitus with neurological complications
C108212 Type 1 diabetes mellitus with neurological complications
C108B00 Insulin dependent diabetes mellitus with mononeuropathy
C108B11 Type I diabetes mellitus with mononeuropathy
C108C00 Insulin dependent diabetes mellitus with polyneuropathy
C108J00 Insulin dependent diab mell with neuropathic arthropathy
C108J11 Type I diabetes mellitus with neuropathic arthropathy
C108J12 Type 1 diabetes mellitus with neuropathic arthropathy
C109200 Non-insulin-dependent diabetes mellitus with neuro comps
C109211 Type II diabetes mellitus with neurological complications
C109212 Type 2 diabetes mellitus with neurological complications
C109A00 Non-insulin dependent diabetes mellitus with mononeuropathy
C109A11 Type II diabetes mellitus with mononeuropathy
C109B00 Non-insulin dependent diabetes mellitus with polyneuropathy
C109B11 Type II diabetes mellitus with polyneuropathy
C109B12 Type 2 diabetes mellitus with polyneuropathy
C109H00 Non-insulin dependent d m with neuropathic arthropathy
C109H11 Type II diabetes mellitus with neuropathic arthropathy
C109H12 Type 2 diabetes mellitus with neuropathic arthropathy
C10E200 Type 1 diabetes mellitus with neurological complications
C10E212 Insulin-dependent diabetes mellitus with neurological comps
C10EB00 Type 1 diabetes mellitus with mononeuropathy
C10EC00 Type 1 diabetes mellitus with polyneuropathy
C10EC11 Type I diabetes mellitus with polyneuropathy
C10EC12 Insulin dependent diabetes mellitus with polyneuropathy
C10EJ00 Type 1 diabetes mellitus with neuropathic arthropathy
C10F200 Type 2 diabetes mellitus with neurological complications
C10F211 Type II diabetes mellitus with neurological complications
C10FA00 Type 2 diabetes mellitus with mononeuropathy
C10FA11 Type II diabetes mellitus with mononeuropathy
C10FB00 Type 2 diabetes mellitus with polyneuropathy
C10FB11 Type II diabetes mellitus with polyneuropathy
C10FH00 Type 2 diabetes mellitus with neuropathic arthropathy
C10FH11 Type II diabetes mellitus with neuropathic arthropathy
F171100 Autonomic neuropathy due to diabetes
F345000 Diabetic mononeuritis multiplex
F35z000 Diabetic mononeuritis NOS
F372000 Acute painful diabetic neuropathy
F372100 Chronic painful diabetic neuropathy
F372200 Asymptomatic diabetic neuropathy
F372.00 Polyneuropathy in diabetes
F372.11 Diabetic polyneuropathy
F372.12 Diabetic neuropathy
F381300 Myasthenic syndrome due to diabetic amyotrophy
F381311 Diabetic amyotrophy
F3y0.00 Diabetic mononeuropathy
M271100 Neuropathic diabetic ulcer - foot

Secondary care diagnoses (ICD_dm_neuro.csv)

ICD-10 code ICD-10 Term
E10.4 Insulin-dependent diabetes mellitus - With neurological complications
E11.4 Non-insulin-dependent diabetes mellitus - With neurological complications
E12.4 Malnutrition-related diabetes mellitus - With neurological complications
E13.4 Other specified diabetes mellitus - With neurological complications
E14.4 Unspecified diabetes mellitus - With neurological complications
G59.0 Diabetic mononeuropathy
G63.2 Diabetic polyneuropathy

Diabetic ophthalmic complications

Implementation

At the specified date, a patient is defined as having had Diabetic ophthalmic complications IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. Diabetic ophthalmic complications diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of Diabetic ophthalmic complications or history of diagnosis during a hospitalization

Primary care (CPRD_diab_eye.csv)

Read code Read Term
2BBk.00 O/E - right eye stable treated prolif diabetic retinopathy
2BBl.00 O/E - left eye stable treated prolif diabetic retinopathy
2BBL.00 O/E - diabetic maculopathy present both eyes
2BBM.00 O/E - diabetic maculopathy absent both eyes
2BBo.00 O/E - sight threatening diabetic retinopathy
2BBP.00 O/E - right eye background diabetic retinopathy
2BBQ.00 O/E - left eye background diabetic retinopathy
2BBr.00 Impaired vision due to diabetic retinopathy
2BBR.00 O/E - right eye preproliferative diabetic retinopathy
2BBS.00 O/E - left eye preproliferative diabetic retinopathy
2BBT.00 O/E - right eye proliferative diabetic retinopathy
2BBV.00 O/E - left eye proliferative diabetic retinopathy
2BBW.00 O/E - right eye diabetic maculopathy
2BBX.00 O/E - left eye diabetic maculopathy
7276.00 Pan retinal photocoagulation for diabetes
C105000 Diabetes mellitus, juvenile type, + ophthalmic manifestation
C105100 Diabetes mellitus, adult onset, + ophthalmic manifestation
C105.00 Diabetes mellitus with ophthalmic manifestation
C105y00 Other specified diabetes mellitus with ophthalmic complicatn
C105z00 Diabetes mellitus NOS with ophthalmic manifestation
C108100 Insulin-dependent diabetes mellitus with ophthalmic comps
C108112 Type 1 diabetes mellitus with ophthalmic complications
C108700 Insulin dependent diabetes mellitus with retinopathy
C108711 Type I diabetes mellitus with retinopathy
C108712 Type 1 diabetes mellitus with retinopathy
C108F00 Insulin dependent diabetes mellitus with diabetic cataract
C108F11 Type I diabetes mellitus with diabetic cataract
C108F12 Type 1 diabetes mellitus with diabetic cataract
C109100 Non-insulin-dependent diabetes mellitus with ophthalm comps
C109111 Type II diabetes mellitus with ophthalmic complications
C109112 Type 2 diabetes mellitus with ophthalmic complications
C109600 Non-insulin-dependent diabetes mellitus with retinopathy
C109611 Type II diabetes mellitus with retinopathy
C109612 Type 2 diabetes mellitus with retinopathy
C109E00 Non-insulin depend diabetes mellitus with diabetic cataract
C109E11 Type II diabetes mellitus with diabetic cataract
C109E12 Type 2 diabetes mellitus with diabetic cataract
C10E100 Type 1 diabetes mellitus with ophthalmic complications
C10E111 Type I diabetes mellitus with ophthalmic complications
C10E112 Insulin-dependent diabetes mellitus with ophthalmic comps
C10E700 Type 1 diabetes mellitus with retinopathy
C10E711 Type I diabetes mellitus with retinopathy
C10E712 Insulin dependent diabetes mellitus with retinopathy
C10EF00 Type 1 diabetes mellitus with diabetic cataract
C10EF12 Insulin dependent diabetes mellitus with diabetic cataract
C10EP00 Type 1 diabetes mellitus with exudative maculopathy
C10EP11 Type I diabetes mellitus with exudative maculopathy
C10F100 Type 2 diabetes mellitus with ophthalmic complications
C10F111 Type II diabetes mellitus with ophthalmic complications
C10F600 Type 2 diabetes mellitus with retinopathy
C10F611 Type II diabetes mellitus with retinopathy
C10FE00 Type 2 diabetes mellitus with diabetic cataract
C10FE11 Type II diabetes mellitus with diabetic cataract
C10FQ00 Type 2 diabetes mellitus with exudative maculopathy
F420000 Background diabetic retinopathy
F420100 Proliferative diabetic retinopathy
F420200 Preproliferative diabetic retinopathy
F420300 Advanced diabetic maculopathy
F420400 Diabetic maculopathy
F420500 Advanced diabetic retinal disease
F420600 Non proliferative diabetic retinopathy
F420700 High risk proliferative diabetic retinopathy
F420800 High risk non proliferative diabetic retinopathy
F420.00 Diabetic retinopathy
F420z00 Diabetic retinopathy NOS
F440700 Diabetic iritis
F464000 Diabetic cataract

Secondary care diagnoses (ICD_diab_eye.csv)

ICD-10 code ICD-10 Term
H35.0 Background retinopathy and retinal vascular changes
H35.2 Other proliferative retinopathy
E10.3 Insulin-dependent diabetes mellitus - With ophthalmic complications
E11.3 Non-insulin-dependent diabetes mellitus - With ophthalmic complications
E12.3 Malnutrition-related diabetes mellitus - With ophthalmic complications
E13.3 Other specified diabetes mellitus - With ophthalmic complications
E14.3 Unspecified diabetes mellitus - With ophthalmic complications
H28.0 Diabetic cataract
H36.0 Diabetic retinopathy

Diaphragmatic hernia

Implementation

At the specified date, a patient is defined as having had 'Diaphragmatic hernia' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Diaphragmatic hernia' diagnosis or history of diagnosis or procedure during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Diaphragmatic hernia' or history of diagnosis during a hospitalization
OR
Secondary care (OPCS4)
1. ALL procedures for 'Diaphragmatic hernia' during a hospitalization
Read code Read Term
760K011 Allison repair of oesophageal hiatus hernia
760K012 Mason repair of oesophageal hiatus hernia
760K100 Repair of diaphragmatic hernia using thoracic approach NEC
760K300 Repair of diaphragmatic hernia using abdominal approach NEC
760K400 Boerema repair of hiatus hernia
760K500 Laparoscopic repair of hiatus hernia
760K.00 Repair of diaphragmatic hernia
760K.11 Repair of oesophageal hiatus hernia
760K.12 Repair of hiatus hernia
760Ky00 Other specified repair of diaphragmatic hernia
760Kz00 Repair of diaphragmatic hernia NOS
760L312 Hill repair of hiatus hernia and gastropexy
J340.00 Diaphragmatic hernia with gangrene
J341.00 Diaphragmatic hernia with obstruction
J342.00 Diaphragmatic hernia - irreducible
J343.00 Simple diaphragmatic hernia
J344.00 Hiatus hernia with gangrene
J345.00 Hiatus hernia with obstruction
J346.00 Hiatus hernia - irreducible
J347.00 Simple hiatus hernia
J348.00 Sliding hiatus hernia
J34..00 Diaphragmatic hernia
J34..11 Hiatus hernia
J34..12 Parasternal hernia
J34..13 Retrosternal hernia
J34y.00 Unspecified diaphragmatic hernia

Secondary care diagnoses (ICD_hernia_diaphragm.csv)

ICD-10 code ICD-10 Term
K44 Diaphragmatic hernia

Secondary care procedures (OPCS_hernia_diaphragm.csv)

OPCS-4 code OPCS-4 Term
G23 Repair of diaphragmatic hernia
G23.1 Repair of oesophageal hiatus using thoracic approach
G23.2 Repair of diaphragmatic hernia using thoracic approach NEC
G23.3 Repair of oesophageal hiatus using abdominal approach
G23.4 Repair of diaphragmatic hernia using abdominal approach NEC
G23.8 Other specified repair of diaphragmatic hernia
G23.9 Unspecified repair of diaphragmatic hernia

Dilated cardiomyopathy

Implementation

At the specified date, a patient is defined as having had 'Dilated cardiomyopathy' IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Dilated cardiomyopathy' diagnosis or history of diagnosis during a consultation 
OR
Secondary care (ICD10)
1. ALL diagnoses of 'Dilated cardiomyopathy' or history of diagnosis during a hospitalization

Primary care (CPRD_dcm.csv)

Read code Read Term
G554000 Congestive cardiomyopathy
G554400 Primary dilated cardiomyopathy
G555.00 Alcoholic cardiomyopathy
G55y.11 Secondary dilated cardiomyopathy

Secondary care diagnoses (ICD_dcm.csv)

ICD-10 code ICD-10 Term
I42.0 Dilated cardiomyopathy
I42.6 Alcoholic cardiomyopathy

Disorders of autonomic nervous system

Implementation

At the specified date, a patient is defined as having had a Disorder of the autonomic nervous system IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. Disorder of the autonomic nervous system diagnosis or history of diagnosis during a consultation 
OR
Secondary care
1. ALL diagnoses of Disorder of the autonomic nervous system or history of diagnosis during a hospitalization
Read code Read Term
2BE3.00 O/E - Horner's syndrome
F170000 Carotid sinus syndrome
F170100 Cervical sympathetic paralysis
F170.00 Idiopathic peripheral autonomic neuropathy
F170z00 Idiopathic peripheral autonomic neuropathy NOS
F171000 Autonomic neuropathy due to amyloid
F171100 Autonomic neuropathy due to diabetes
F171.00 Peripheral autonomic neuropathy disease EC
F171z00 Peripheral autonomic neuropathy due to disease NOS
F172.00 [X] Horners syndrome
F173.00 Shoulder-hand syndrome
F175.00 Autonomic dysreflexia
F17..00 Autonomic nervous system disorders
F17z.00 Autonomic nervous system disorder NOS
F17z.11 Horner's syndrome
F17z.12 Autonomic failure
F347.00 Complex regional pain syndrome type II
F369.00 Complex regional pain syndrome
FyuAC00 [X]Autonomic neuropathy/endocrine+metabolic diseases CE
FyuAD00 [X]Other disordrs/autonomic nervous system/other diseases CE
N337100 Sudek's atrophy
N337111 Reflex sympathetic dystrophy
N337200 Algodystrophy of hand
N337300 Algodystrophy of knee
N337400 Algodystrophy of foot
N337.00 Algoneurodystrophy
N337.11 Algodystrophy
N337.12 Reflex sympathetic dystrophy
N337z00 Algoneurodystrophy NOS
N33C.00 Complex regional pain syndrome type I
P2x2.00 Familial dysautonomia
P2x5.00 Riley - Day syndrome

Secondary care diagnoses (ICD_autonomic_neuro.csv)

ICD-10 code ICD-10 Term
G90 Disorders of autonomic nervous system
G99.0 Autonomic neuropathy in endocrine and metabolic diseases
G99.1 Other disorders of autonomic nervous system in other diseases classified elsewhere
M89.0 Algoneurodystrophy

Diverticular disease of intestine (acute and chronic)

Implementation

At the specified date, a patient is defined as having had 'Diverticular disease of intestine (acute and chronic)' of intestine (acute and chronic) IF they meet the criteria for any of the following on or before the specified date. The earliest date on which the individual meets any of the following criteria on or before the specified date is defined as the first event date:

Primary care
1. 'Diverticular disease of intestine (acute and chronic)' of intestine (acute and chronic) diagnosis or history of diagnosis or procedure during a consultation 
OR
Secondary care
1. ALL diagnoses of 'Diverticular disease of intestine (acute and chronic)' of intestine (acute and chronic) or history of diagnosis during a hospitalization
OR
Secondary care (OPCS4)
1. ALL procedures for 'Diverticular disease of intestine (acute and chronic)' of intestine (acute and chronic) during a hospitalization

Primary care (CPRD_diverticuli.csv)

Read code Read Term
7718000 Excision of diverticulum of colon
J23z300 Appendicular diverticulum
J510000 Diverticulosis of the duodenum
J510100 Diverticulosis of the jejunum
J510200 Diverticulosis of the ileum
J510300 Diverticulosis of the small intestine unspecified
J510400 Diverticulosis of the small intestine NOS
J510500 Diverticulosis of the colon
J510600 Diverticulosis of the large intestine unspecified
J510700 Diverticulosis of the large intestine NOS