[
  {
    "phenotype_id": "PH42",
    "phenotype_version_id": 2933,
    "name": "Chronic Kidney Disease",
    "definition": "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",
    "implementation": "",
    "publications": [
      {
        "doi": "10.1016/S2589-7500(19)30012-3",
        "details": "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. The Lancet Digital Health - DOI 10.1016/S2589-7500(19)30012-3"
      }
    ],
    "validation": "cross-sour",
    "citation_requirements": "",
    "created": "2021-10-06T16:00:45.504193Z",
    "author": "Kuan V,Denaxas S,Gonzalez-Izquierdo A,Direk K,Bhatti O,Husain S,Sutaria S,Hingorani M,Nitsch D,Parisinos C,Lumbers T,Mathur R,Sofat R,Casas JP,Wong I,Hemingway H,Hingorani A",
    "collections": [
      {
        "name": "Phenotype Library",
        "value": 18
      }
    ],
    "tags": null,
    "organisation": null,
    "world_access": 2,
    "updated": "2023-10-11T15:30:57.521499Z",
    "sex": [
      {
        "name": "Both",
        "value": "3"
      }
    ],
    "type": [
      {
        "name": "Disease or syndrome",
        "value": "2"
      }
    ],
    "ontology": null,
    "phenoflowid": null,
    "data_sources": [
      {
        "name": "CPRD GOLD",
        "value": 5,
        "uid": "a29feafa-7bdd-44e9-b977-c9d26425e67f",
        "url": "https://healthdatagateway.org/en/dataset/694",
        "datasource_id": 694
      }
    ],
    "coding_system": [],
    "event_date_range": "1999/01/01 - 2016/07/01",
    "status": 1,
    "doi": "https://doi.org/10.48533/437b-5v43",
    "is_deleted": null,
    "publish_status": 2,
    "owner": "ieuan.scanlon",
    "template": {
      "id": 1,
      "name": "Clinical-Coded Phenotype",
      "description": "Phenotype definitions that are based on lists of clinical codes, or algorithms using clinical codes.",
      "version_id": 1
    },
    "versions": [
      {
        "version_id": 2933,
        "version_name": "Chronic Kidney Disease",
        "version_date": "2023-10-11T15:30:57.534982Z",
        "is_published": true,
        "is_latest": true
      },
      {
        "version_id": 1527,
        "version_name": "Chronic Kidney Disease",
        "version_date": "2021-10-27T14:20:05.058221Z",
        "is_published": true,
        "is_latest": false
      }
    ]
  }
]