Angiogram Study – Data Dictionary

All variables are coded as integers or ISO dates (YYYY-MM-DD). No free text is stored.

Convention: 9 = Not applicable / Unknown across the entire dataset.

Study_ID

Auto-assigned sequential integer starting at 1. Primary key.

DOB

Date of birth. Format: YYYY-MM-DD (ISO 8601).

Sex

CodeMeaning
1Male
2Female

Procedure_Date

Date the diagnostic angiogram was performed. Format: YYYY-MM-DD.

Age_at_Procedure

Auto-calculated integer: years between DOB and Procedure_Date.

Setting

CodeMeaning
0Outpatient
1Inpatient
Rules driven by Setting:
  • If Outpatient (0): Troponin_Positive is set to 9 (N/A). NSTEMI is not available as an Indication_Type. OP_Referral_Route is asked.
  • If Inpatient (1): Troponin_Positive must be 0 or 1. OP_Referral_Route / Non_Invasive_Test fields are set to 9 (N/A).

Troponin_Positive

CodeMeaning
0No
1Yes
9N/A (auto-set when Setting = 0 Outpatient)

OP_Referral_Route (Outpatient only)

CodeMeaning
1Direct referral
2After non-invasive testing
9N/A (auto-set when Setting = 1 Inpatient)
If After non-invasive testing (2): Non_Invasive_Test_Type and Non_Invasive_Test_Result are asked.
If Direct (1) or Inpatient: both test fields are set to 9.

Non_Invasive_Test_Type (OP + after testing)

CodeMeaning
1CTCA
2DSE (Dobutamine Stress Echo)
3Exercise Echo
4MPS (Myocardial Perfusion Scan)
9N/A (Inpatient, or direct OP referral)

Non_Invasive_Test_Result (OP + after testing)

CodeMeaning
1Positive / Abnormal
2Negative / Normal
3Equivocal / Inconclusive
9N/A (Inpatient, or direct OP referral)

Indication_Type

CodeMeaning
1Stable chest pain
2NSTEMI (Inpatient only)
3Unstable angina
4Heart failure / LV dysfunction assessment
5Pre-operative / valve procedural work-up
6Cardiomyopathy assessment
7Other
NSTEMI (2) is not available when Setting = 0 (Outpatient).

Hypertension

CodeMeaning
0No
1Yes
9Unknown

Diabetes

CodeMeaning
0No
1Yes
9Unknown

Hyperlipidaemia

CodeMeaning
0No
1Yes
9Unknown

Smoking_Status

CodeMeaning
0Never smoker
1Ex-smoker
2Current smoker
9Unknown

Family_Hx_Premature_CAD

CodeMeaning
0No
1Yes
9Unknown

Hx_CAD

Prior history of coronary artery disease (MI, PCI, or CABG).

CodeMeaning
0No
1Yes
9Unknown

Angio_Outcome

CodeMeaning
0Normal (<50% stenosis)
1Non-obstructive (50–69% stenosis)
2Obstructive (≥70% stenosis, or LM ≥50%)

Management_Strategy

CodeMeaning
1Medical therapy only
2PCI referral
3CABG referral
4Further cardiac investigation required
5Diagnostic only / no change in management
If PCI referral (2): PCI_Outcome is asked.
Otherwise PCI_Outcome is set to 9 (N/A).

PCI_Outcome (PCI referral only)

CodeMeaning
1Stented
2Not stented (PCI done, no stent placed)
3Not done
9N/A (Management_Strategy ≠ 2)

Coding Convention Summary

CodeMeaningUsed In
9Not applicable / UnknownAll conditional & yes/no/unknown fields
0No (or Outpatient, or Normal)Binary fields, Setting, Angio_Outcome
1Yes (or first option)All coded fields
2+Additional categoriesSee individual field tables above

No cell in the dataset is ever empty. Every field always contains a coded integer or an ISO date.

Conditional Logic Summary

ConditionFields affectedAction
Setting = 0 (OP)Troponin_PositiveAuto-set to 9
Setting = 0 (OP)Indication_TypeNSTEMI (2) hidden
Setting = 1 (IP)OP_Referral_Route, Non_Invasive_Test_Type, Non_Invasive_Test_ResultAuto-set to 9
OP_Referral_Route = 1 (Direct)Non_Invasive_Test_Type, Non_Invasive_Test_ResultAuto-set to 9
Management_Strategy ≠ 2PCI_OutcomeAuto-set to 9