[
  {
    "phenotype_id": "PH224",
    "phenotype_version_id": 448,
    "name": "Oesophagitis and oesophageal ulcer",
    "definition": "At the specified date, a patient is defined as having had Oesophagitis and 'Oesophagitis and oesophageal ulcer' 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. Oesophagitis and 'Oesophagitis and oesophageal ulcer' diagnosis or history of diagnosis during a consultation \n\nOR\nSecondary care\n\n\n1. ALL diagnoses of Oesophagitis and 'Oesophagitis and oesophageal ulcer' or history of diagnosis during a hospitalization\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:08:29.343967Z",
    "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:08:29.343995Z",
    "sex": [
      {
        "name": "Both",
        "value": "3"
      }
    ],
    "type": [
      {
        "name": "Disease or syndrome",
        "value": "2"
      }
    ],
    "ontology": null,
    "phenoflowid": "https://kclhi.org/phenoflow/workflows/github.com/phenoflow/Oesophagitis-and-oesophageal-ulcer---8a3a5ad0-1799-11ef-9de4-4d4ea830ad16/blob/read-potential-cases-fhir/Oesophagitis-and-oesophageal-ulcer.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": "Med codes",
        "value": 8
      }
    ],
    "event_date_range": "01/01/1999 - 01/07/2016",
    "concept_information": [
      {
        "concept_id": 1323,
        "concept_version_id": 3785,
        "concept_name": "Oesophagitis and oesophageal ulcer - Primary care",
        "coding_system": {
          "id": 5,
          "name": "Read codes v2",
          "description": "Read codes v2"
        },
        "phenotype_id": "PH224",
        "phenotype_version_id": 448,
        "phenotype_name": "Oesophagitis and oesophageal ulcer",
        "code_attribute_header": [
          "Disease",
          "Medcode",
          "Category"
        ],
        "codes": [
          {
            "code": "J101.00",
            "description": "Oesophagitis",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "592.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "J101000",
            "description": "Abscess of oesophagus",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "57039.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "J101100",
            "description": "Reflux oesophagitis",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "2535.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "J101112",
            "description": "Gastro-oesophageal reflux with oesophagitis",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "7104.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "J101113",
            "description": "Oesophageal reflux with oesophagitis",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "16605.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "J101114",
            "description": "Peptic oesophagitis",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "15579.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "J101115",
            "description": "Regurgitant oesophagitis",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "16450.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "J101200",
            "description": "Chemical oesophagitis",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "34836.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "J101300",
            "description": "Postoperative oesophagitis",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "47694.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "J101400",
            "description": "Gangrenous oesophagitis",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "98929.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "J101500",
            "description": "Phlegmonous oesophagitis",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "39323.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "J101600",
            "description": "Ulcerative oesophagitis",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "5283.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "J101y00",
            "description": "Other specified oesophagitis",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "35037.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "J101z00",
            "description": "Oesophagitis NOS",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "14760.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "J102.00",
            "description": "Ulcer of oesophagus",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "2489.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "J102000",
            "description": "Peptic ulcer of oesophagus",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "24021.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "J102100",
            "description": "Fungal ulcer of oesophagus",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "49926.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "J102200",
            "description": "Oesophageal ulcer due to aspirin",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "51013.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "J102300",
            "description": "Oesophageal ulcer due to chemicals",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "94752.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "J102400",
            "description": "Oesophageal ulcer due to medicines",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "58603.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "J102z00",
            "description": "Ulcer of oesophagus NOS",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "42150.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "J10y300",
            "description": "Oesophageal erosions",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Medcode": "10060.0",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          }
        ]
      },
      {
        "concept_id": 1324,
        "concept_version_id": 3787,
        "concept_name": "Oesophagitis and oesophageal ulcer - Primary care",
        "coding_system": {
          "id": 8,
          "name": "Med codes",
          "description": "Med codes"
        },
        "phenotype_id": "PH224",
        "phenotype_version_id": 448,
        "phenotype_name": "Oesophagitis and oesophageal ulcer",
        "code_attribute_header": [
          "Disease",
          "ReadcodeDescr",
          "Readcode"
        ],
        "codes": [
          {
            "code": "10060.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Oesophageal erosions",
              "Readcode": "J10y300"
            }
          },
          {
            "code": "14760.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Oesophagitis NOS",
              "Readcode": "J101z00"
            }
          },
          {
            "code": "15579.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Peptic oesophagitis",
              "Readcode": "J101114"
            }
          },
          {
            "code": "16450.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Regurgitant oesophagitis",
              "Readcode": "J101115"
            }
          },
          {
            "code": "16605.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Oesophageal reflux with oesophagitis",
              "Readcode": "J101113"
            }
          },
          {
            "code": "24021.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Peptic ulcer of oesophagus",
              "Readcode": "J102000"
            }
          },
          {
            "code": "2489.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Ulcer of oesophagus",
              "Readcode": "J102.00"
            }
          },
          {
            "code": "2535.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Reflux oesophagitis",
              "Readcode": "J101100"
            }
          },
          {
            "code": "34836.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Chemical oesophagitis",
              "Readcode": "J101200"
            }
          },
          {
            "code": "35037.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Other specified oesophagitis",
              "Readcode": "J101y00"
            }
          },
          {
            "code": "39323.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Phlegmonous oesophagitis",
              "Readcode": "J101500"
            }
          },
          {
            "code": "42150.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Ulcer of oesophagus NOS",
              "Readcode": "J102z00"
            }
          },
          {
            "code": "47694.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Postoperative oesophagitis",
              "Readcode": "J101300"
            }
          },
          {
            "code": "49926.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Fungal ulcer of oesophagus",
              "Readcode": "J102100"
            }
          },
          {
            "code": "51013.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Oesophageal ulcer due to aspirin",
              "Readcode": "J102200"
            }
          },
          {
            "code": "5283.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Ulcerative oesophagitis",
              "Readcode": "J101600"
            }
          },
          {
            "code": "57039.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Abscess of oesophagus",
              "Readcode": "J101000"
            }
          },
          {
            "code": "58603.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Oesophageal ulcer due to medicines",
              "Readcode": "J102400"
            }
          },
          {
            "code": "592.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Oesophagitis",
              "Readcode": "J101.00"
            }
          },
          {
            "code": "7104.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Gastro-oesophageal reflux with oesophagitis",
              "Readcode": "J101112"
            }
          },
          {
            "code": "94752.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Oesophageal ulcer due to chemicals",
              "Readcode": "J102300"
            }
          },
          {
            "code": "98929.0",
            "description": "Diagnosis of Oesophagitis and oesophageal ulcer",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "ReadcodeDescr": "Gangrenous oesophagitis",
              "Readcode": "J101400"
            }
          }
        ]
      },
      {
        "concept_id": 1325,
        "concept_version_id": 3789,
        "concept_name": "Oesophagitis and oesophageal ulcer - Secondary care - Diagnoses",
        "coding_system": {
          "id": 4,
          "name": "ICD10 codes",
          "description": "ICD10 Codes"
        },
        "phenotype_id": "PH224",
        "phenotype_version_id": 448,
        "phenotype_name": "Oesophagitis and oesophageal ulcer",
        "code_attribute_header": [
          "Disease",
          "Category"
        ],
        "codes": [
          {
            "code": "K20",
            "description": "Oesophagitis",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "K21.0",
            "description": "Gastro-oesophageal reflux disease with oesophagitis",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          },
          {
            "code": "K22.1",
            "description": "Ulcer of oesophagus",
            "attributes": {
              "Disease": "Oesophagitis and oesophageal ulcer",
              "Category": "Diagnosis of Oesophagitis and oesophageal ulcer"
            }
          }
        ]
      }
    ],
    "status": 2,
    "doi": "https://doi.org/10.48533/6jkb-9n67",
    "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": 448,
        "version_name": "Oesophagitis and oesophageal ulcer",
        "version_date": "2021-10-06T16:08:29.374636Z",
        "is_published": true,
        "is_latest": true
      }
    ]
  }
]