Identification of Diabetes Type 2 status of subject
This phenotype identifies cases of Type 2 diabetes at a specified date in primary care records using curated SNOMED CT codelists for positive and negative disease-status events. For each patient, the most recent qualifying event on or before the specified date defines status: a positive code indicates case status, while a negative code indicates non-case status. If no qualifying event exists, the patient is classified as non-case. Applied across populations, the phenotype supports prevalence estimation, cohort construction, and derivation of a patient-level variable for downstream analysis.
This phenotype applies template phenotype RSC-PH4 (Binary condition status [T]).
See the template for details of the algorithm.
The template requires these parameters to be specified:
| Parameter | Value |
|---|---|
patient_record |
To be specified on execution |
status_date |
To be specified on execution |
positive_codelist |
RSC-C2048 (Diabetes Type 2) |
negative_codelist |
RSC-C7230 (Diabetes Resolved) |
See the codelists for further information on the definition of this condition.