[
  {
    "phenotype_id": "PH334",
    "phenotype_version_id": 668,
    "name": "Oesophageal varices",
    "definition": "At the specified date, a patient is defined as having had 'Oesophageal varices' 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:\n\n\nPrimary care\n\n\n1. 'Oesophageal varices' diagnosis or history of diagnosis or procedure during a consultation \n\nOR\nSecondary care\n\n\n1. ALL diagnoses of 'Oesophageal varices' or history of diagnosis during a hospitalization\nOR\nSecondary care (OPCS4)\n\n\n1. ALL procedures for 'Oesophageal varices' during a hospitalization\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
    "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": "",
    "citation_requirements": "",
    "created": "2021-10-06T16:13:19.624348Z",
    "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": "CALIBER",
        "value": 21
      },
      {
        "name": "Phenotype Library",
        "value": 18
      }
    ],
    "tags": null,
    "organisation": null,
    "world_access": 1,
    "updated": "2021-10-06T16:13:19.624376Z",
    "sex": [
      {
        "name": "Both",
        "value": "3"
      }
    ],
    "type": [
      {
        "name": "Disease or syndrome",
        "value": "2"
      }
    ],
    "ontology": null,
    "phenoflowid": "https://kclhi.org/phenoflow/workflows/github.com/phenoflow/Oesophageal-varices---949db500-17ce-11ef-9de4-4d4ea830ad16/blob/read-potential-cases-fhir/Oesophageal-varices.cwl",
    "data_sources": [
      {
        "name": "CPRD GOLD",
        "value": 5,
        "uid": "a29feafa-7bdd-44e9-b977-c9d26425e67f",
        "url": "https://healthdatagateway.org/en/dataset/694",
        "datasource_id": 694
      },
      {
        "name": "HES Admitted Patient Care data for CPRD GOLD",
        "value": 9,
        "uid": "4bcf64a6-f404-4ef4-ae6e-172512ab5f43",
        "url": "https://healthdatagateway.org/en/dataset/674",
        "datasource_id": 674
      }
    ],
    "coding_system": [
      {
        "name": "ICD10 codes",
        "value": 4
      },
      {
        "name": "Read codes v2",
        "value": 5
      },
      {
        "name": "OPCS4 codes",
        "value": 7
      },
      {
        "name": "Med codes",
        "value": 8
      }
    ],
    "event_date_range": "01/01/1999 - 01/07/2016",
    "concept_information": [
      {
        "concept_id": 1645,
        "concept_version_id": 4429,
        "concept_name": "Oesophageal varices - Primary care",
        "coding_system": {
          "id": 5,
          "name": "Read codes v2",
          "description": "Read codes v2"
        },
        "phenotype_id": "PH334",
        "phenotype_version_id": 668,
        "phenotype_name": "Oesophageal varices",
        "code_attribute_header": [
          "Disease",
          "Medcode",
          "Category"
        ],
        "codes": [
          {
            "code": "7609.00",
            "description": "Open operations on oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "24220.0",
              "Category": "Procedure for Oesophageal varices"
            }
          },
          {
            "code": "7609300.0",
            "description": "Local ligation of oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "43404.0",
              "Category": "Procedure for Oesophageal varices"
            }
          },
          {
            "code": "7609400.0",
            "description": "Open injection sclerotherapy to oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "20912.0",
              "Category": "Procedure for Oesophageal varices"
            }
          },
          {
            "code": "7609y00",
            "description": "Other specified open operation on oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "107975.0",
              "Category": "Procedure for Oesophageal varices"
            }
          },
          {
            "code": "7609y11",
            "description": "Tanner devascularisation for bleeding varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "62038.0",
              "Category": "Procedure for Oesophageal varices"
            }
          },
          {
            "code": "7609z00",
            "description": "Open operation on oesophageal varices NOS",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "20233.0",
              "Category": "Procedure for Oesophageal varices"
            }
          },
          {
            "code": "760C300",
            "description": "Fibreoptic endoscopic injection sclerotherapy oesoph varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "11960.0",
              "Category": "Procedure for Oesophageal varices"
            }
          },
          {
            "code": "760C500",
            "description": "Fibreoptic endoscopic banding of oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "16759.0",
              "Category": "Procedure for Oesophageal varices"
            }
          },
          {
            "code": "760F300",
            "description": "Rigid oesophagoscopic injection sclerotherapy oesoph varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "47214.0",
              "Category": "Procedure for Oesophageal varices"
            }
          },
          {
            "code": "760F400",
            "description": "Rigid oesophagoscopic banding of oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "46647.0",
              "Category": "Procedure for Oesophageal varices"
            }
          },
          {
            "code": "761D800",
            "description": "Fibreopt endoscop rubber band ligation of upper GIT varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "89717.0",
              "Category": "Procedure for Oesophageal varices"
            }
          },
          {
            "code": "G850.00",
            "description": "Oesophageal varices with bleeding",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "24989.0",
              "Category": "Diagnosis of Oesophageal varices"
            }
          },
          {
            "code": "G851.00",
            "description": "Oesophageal varices without bleeding",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "30655.0",
              "Category": "Diagnosis of Oesophageal varices"
            }
          },
          {
            "code": "G85..11",
            "description": "Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "1641.0",
              "Category": "Diagnosis of Oesophageal varices"
            }
          },
          {
            "code": "G852.00",
            "description": "Oesophageal varices in diseases EC",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "44424.0",
              "Category": "Diagnosis of Oesophageal varices"
            }
          },
          {
            "code": "G852000",
            "description": "Oesophageal varices with bleeding in diseases EC",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "96756.0",
              "Category": "Diagnosis of Oesophageal varices"
            }
          },
          {
            "code": "G852100",
            "description": "Oesophageal varices without bleeding in diseases EC",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "73139.0",
              "Category": "Diagnosis of Oesophageal varices"
            }
          },
          {
            "code": "G852200",
            "description": "Oesophageal varices in cirrhosis of the liver",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "26319.0",
              "Category": "Diagnosis of Oesophageal varices"
            }
          },
          {
            "code": "G852300",
            "description": "Oesophageal varices in alcoholic cirrhosis of the liver",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "8363.0",
              "Category": "Diagnosis of Oesophageal varices"
            }
          },
          {
            "code": "G852z00",
            "description": "Oesophageal varices in diseases EC NOS",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "62582.0",
              "Category": "Diagnosis of Oesophageal varices"
            }
          },
          {
            "code": "G858.00",
            "description": "Oesophageal varices NOS",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "10797.0",
              "Category": "Diagnosis of Oesophageal varices"
            }
          },
          {
            "code": "Gyu9400",
            "description": "[X]Oesophageal varices in diseases classified elsewhere",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Medcode": "105611.0",
              "Category": "Diagnosis of Oesophageal varices"
            }
          }
        ]
      },
      {
        "concept_id": 1646,
        "concept_version_id": 4431,
        "concept_name": "Oesophageal varices - Primary care",
        "coding_system": {
          "id": 8,
          "name": "Med codes",
          "description": "Med codes"
        },
        "phenotype_id": "PH334",
        "phenotype_version_id": 668,
        "phenotype_name": "Oesophageal varices",
        "code_attribute_header": [
          "Disease",
          "ReadcodeDescr",
          "Readcode"
        ],
        "codes": [
          {
            "code": "105611.0",
            "description": "Diagnosis of Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "[X]Oesophageal varices in diseases classified elsewhere",
              "Readcode": "Gyu9400"
            }
          },
          {
            "code": "10797.0",
            "description": "Diagnosis of Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "Oesophageal varices NOS",
              "Readcode": "G858.00"
            }
          },
          {
            "code": "107975.0",
            "description": "Procedure for Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "Other specified open operation on oesophageal varices",
              "Readcode": "7609y00"
            }
          },
          {
            "code": "11960.0",
            "description": "Procedure for Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "Fibreoptic endoscopic injection sclerotherapy oesoph varices",
              "Readcode": "760C300"
            }
          },
          {
            "code": "1641.0",
            "description": "Diagnosis of Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "Oesophageal varices",
              "Readcode": "G85..11"
            }
          },
          {
            "code": "16759.0",
            "description": "Procedure for Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "Fibreoptic endoscopic banding of oesophageal varices",
              "Readcode": "760C500"
            }
          },
          {
            "code": "20233.0",
            "description": "Procedure for Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "Open operation on oesophageal varices NOS",
              "Readcode": "7609z00"
            }
          },
          {
            "code": "20912.0",
            "description": "Procedure for Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "Open injection sclerotherapy to oesophageal varices",
              "Readcode": "7609400.0"
            }
          },
          {
            "code": "24220.0",
            "description": "Procedure for Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "Open operations on oesophageal varices",
              "Readcode": "7609.00"
            }
          },
          {
            "code": "24989.0",
            "description": "Diagnosis of Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "Oesophageal varices with bleeding",
              "Readcode": "G850.00"
            }
          },
          {
            "code": "26319.0",
            "description": "Diagnosis of Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "Oesophageal varices in cirrhosis of the liver",
              "Readcode": "G852200"
            }
          },
          {
            "code": "30655.0",
            "description": "Diagnosis of Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "Oesophageal varices without bleeding",
              "Readcode": "G851.00"
            }
          },
          {
            "code": "43404.0",
            "description": "Procedure for Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "Local ligation of oesophageal varices",
              "Readcode": "7609300.0"
            }
          },
          {
            "code": "44424.0",
            "description": "Diagnosis of Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "Oesophageal varices in diseases EC",
              "Readcode": "G852.00"
            }
          },
          {
            "code": "46647.0",
            "description": "Procedure for Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "Rigid oesophagoscopic banding of oesophageal varices",
              "Readcode": "760F400"
            }
          },
          {
            "code": "47214.0",
            "description": "Procedure for Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "Rigid oesophagoscopic injection sclerotherapy oesoph varices",
              "Readcode": "760F300"
            }
          },
          {
            "code": "62038.0",
            "description": "Procedure for Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "Tanner devascularisation for bleeding varices",
              "Readcode": "7609y11"
            }
          },
          {
            "code": "62582.0",
            "description": "Diagnosis of Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "Oesophageal varices in diseases EC NOS",
              "Readcode": "G852z00"
            }
          },
          {
            "code": "73139.0",
            "description": "Diagnosis of Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "Oesophageal varices without bleeding in diseases EC",
              "Readcode": "G852100"
            }
          },
          {
            "code": "8363.0",
            "description": "Diagnosis of Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "Oesophageal varices in alcoholic cirrhosis of the liver",
              "Readcode": "G852300"
            }
          },
          {
            "code": "89717.0",
            "description": "Procedure for Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "Fibreopt endoscop rubber band ligation of upper GIT varices",
              "Readcode": "761D800"
            }
          },
          {
            "code": "96756.0",
            "description": "Diagnosis of Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "ReadcodeDescr": "Oesophageal varices with bleeding in diseases EC",
              "Readcode": "G852000"
            }
          }
        ]
      },
      {
        "concept_id": 1647,
        "concept_version_id": 4433,
        "concept_name": "Oesophageal varices - Secondary care - Diagnoses",
        "coding_system": {
          "id": 4,
          "name": "ICD10 codes",
          "description": "ICD10 Codes"
        },
        "phenotype_id": "PH334",
        "phenotype_version_id": 668,
        "phenotype_name": "Oesophageal varices",
        "code_attribute_header": [
          "Disease",
          "Category"
        ],
        "codes": [
          {
            "code": "I85",
            "description": "Oesophageal varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Category": "Diagnosis of Oesophageal varices"
            }
          },
          {
            "code": "I98.2",
            "description": "Oesophageal varices without bleeding in diseases classified elsewhere",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Category": "Diagnosis of Oesophageal varices"
            }
          },
          {
            "code": "I98.3",
            "description": "Oesophageal varices with bleeding in diseases classified elsewhere",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Category": "Diagnosis of Oesophageal varices"
            }
          }
        ]
      },
      {
        "concept_id": 1648,
        "concept_version_id": 4435,
        "concept_name": "Oesophageal varices - Secondary care - Procedures",
        "coding_system": {
          "id": 7,
          "name": "OPCS4 codes",
          "description": "OPCS4 codes"
        },
        "phenotype_id": "PH334",
        "phenotype_version_id": 668,
        "phenotype_name": "Oesophageal varices",
        "code_attribute_header": [
          "Disease",
          "Category"
        ],
        "codes": [
          {
            "code": "G10",
            "description": "Open operations on varices of oesophagus",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Category": "Procedure for Oesophageal varices"
            }
          },
          {
            "code": "G10.1",
            "description": "Disconnection of azygos vein",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Category": "Procedure for Oesophageal varices"
            }
          },
          {
            "code": "G10.2",
            "description": "Transection of oesophagus using staple gun",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Category": "Procedure for Oesophageal varices"
            }
          },
          {
            "code": "G10.3",
            "description": "Transection of oesophagus NEC",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Category": "Procedure for Oesophageal varices"
            }
          },
          {
            "code": "G10.4",
            "description": "Local ligation of varices of oesophagus",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Category": "Procedure for Oesophageal varices"
            }
          },
          {
            "code": "G10.5",
            "description": "Open injection sclerotherapy to varices of oesophagus",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Category": "Procedure for Oesophageal varices"
            }
          },
          {
            "code": "G10.8",
            "description": "Other specified open operations on varices of oesophagus",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Category": "Procedure for Oesophageal varices"
            }
          },
          {
            "code": "G10.9",
            "description": "Unspecified open operations on varices of oesophagus",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Category": "Procedure for Oesophageal varices"
            }
          },
          {
            "code": "G17.4",
            "description": "Endoscopic injection sclerotherapy to varices of oesophagus using rigid oesophagoscope",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Category": "Procedure for Oesophageal varices"
            }
          },
          {
            "code": "G43.7",
            "description": "Fibreoptic endoscopic rubber band ligation of upper gastrointestinal tract varices",
            "attributes": {
              "Disease": "Oesophageal varices",
              "Category": "Procedure for Oesophageal varices"
            }
          }
        ]
      }
    ],
    "status": 2,
    "doi": "https://doi.org/10.48533/8gk2-zx19",
    "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": 668,
        "version_name": "Oesophageal varices",
        "version_date": "2021-10-06T16:13:19.656153Z",
        "is_published": true,
        "is_latest": true
      }
    ]
  }
]