[
  {
    "phenotype_id": "PH280",
    "phenotype_version_id": 560,
    "name": "Retinal detachments and breaks",
    "definition": "At the specified date, a patient is defined as having had 'Retinal detachments and breaks's and breaks 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. 'Retinal detachments and breaks's and breaks diagnosis or history of diagnosis during a consultation \n\nOR\nSecondary care\n\n\n1. ALL diagnoses of 'Retinal detachments and breaks's and breaks or history of diagnosis during a hospitalization\nOR\nSecondary care (OPCS4)\n\n\n1. ALL procedures for 'Retinal detachments and breaks's 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:11:01.013500Z",
    "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:11:01.013527Z",
    "sex": [
      {
        "name": "Both",
        "value": "3"
      }
    ],
    "type": [
      {
        "name": "Disease or syndrome",
        "value": "2"
      }
    ],
    "ontology": null,
    "phenoflowid": "https://kclhi.org/phenoflow/workflows/github.com/phenoflow/Retinal-detachments-and-breaks---6d326d10-17b7-11ef-9de4-4d4ea830ad16/blob/read-potential-cases-fhir/Retinal-detachments-and-breaks.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": 1485,
        "concept_version_id": 4109,
        "concept_name": "Retinal detachments and breaks - Primary care",
        "coding_system": {
          "id": 5,
          "name": "Read codes v2",
          "description": "Read codes v2"
        },
        "phenotype_id": "PH280",
        "phenotype_version_id": 560,
        "phenotype_name": "Retinal detachments and breaks",
        "code_attribute_header": [
          "Disease",
          "Medcode",
          "Category"
        ],
        "codes": [
          {
            "code": "1481.00",
            "description": "H/O: retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "8691.0",
              "Category": "History of retinal detachment"
            }
          },
          {
            "code": "7271.00",
            "description": "Photocoagulation of retina for detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "2484.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "7271000.0",
            "description": "Xenon photocoagulation of retina for detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "50694.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "7271100.0",
            "description": "Laser photocoagulation of retina for detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "6836.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "7271y00",
            "description": "Other specified photocoagulation of retina for detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "1551.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "7271z00",
            "description": "Photocoagulation of retina for detachment NOS",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "1552.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F41..00",
            "description": "Retinal detachments and defects",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "4232.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F410.00",
            "description": "Retinal detachment with retinal defect",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "32028.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F410000",
            "description": "Unspecified retinal detachment with retinal defect",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "29800.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F410100",
            "description": "New partial retinal detachment with single defect",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "62901.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F410200",
            "description": "New partial retinal detachment with multiple defects",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "62773.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F410300",
            "description": "New partial retinal detachment with giant tear defect",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "24347.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F410400",
            "description": "New partial retinal detachment with retinal dialysis",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "71651.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F410500",
            "description": "Recent total retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "24440.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F410600",
            "description": "Recent subtotal retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "53020.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F410700",
            "description": "Old partial retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "55469.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F410800",
            "description": "Old total retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "53021.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F410900",
            "description": "Old subtotal retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "61965.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F410z00",
            "description": "Retinal detachment with defect NOS",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "38463.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F41..11",
            "description": "Retinal tears",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "2496.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F413.00",
            "description": "Retinal defects without detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "34183.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F413100",
            "description": "Retinal round hole without detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "8506.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F413200",
            "description": "Horseshoe retinal tear without detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "21067.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F413300",
            "description": "Multiple retinal defects without detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "45509.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F413400",
            "description": "Retinal break",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "38407.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F413z00",
            "description": "Retinal defects without detachment NOS",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "34373.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F41y.00",
            "description": "Other forms of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "47730.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F41y000",
            "description": "Traction retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "30514.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F41yz00",
            "description": "Other retinal detachments NOS",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "35250.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "F41z.00",
            "description": "Retinal detachment NOS",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "1202.0",
              "Category": "Diagnosis of retinal detachment"
            }
          },
          {
            "code": "FyuF400",
            "description": "[X]Other retinal detachments",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Medcode": "72901.0",
              "Category": "Diagnosis of retinal detachment"
            }
          }
        ]
      },
      {
        "concept_id": 1486,
        "concept_version_id": 4111,
        "concept_name": "Retinal detachments and breaks - Primary care",
        "coding_system": {
          "id": 8,
          "name": "Med codes",
          "description": "Med codes"
        },
        "phenotype_id": "PH280",
        "phenotype_version_id": 560,
        "phenotype_name": "Retinal detachments and breaks",
        "code_attribute_header": [
          "Disease",
          "ReadcodeDescr",
          "Readcode"
        ],
        "codes": [
          {
            "code": "1202.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Retinal detachment NOS",
              "Readcode": "F41z.00"
            }
          },
          {
            "code": "1551.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Other specified photocoagulation of retina for detachment",
              "Readcode": "7271y00"
            }
          },
          {
            "code": "1552.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Photocoagulation of retina for detachment NOS",
              "Readcode": "7271z00"
            }
          },
          {
            "code": "21067.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Horseshoe retinal tear without detachment",
              "Readcode": "F413200"
            }
          },
          {
            "code": "24347.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "New partial retinal detachment with giant tear defect",
              "Readcode": "F410300"
            }
          },
          {
            "code": "24440.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Recent total retinal detachment",
              "Readcode": "F410500"
            }
          },
          {
            "code": "2484.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Photocoagulation of retina for detachment",
              "Readcode": "7271.00"
            }
          },
          {
            "code": "2496.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Retinal tears",
              "Readcode": "F41..11"
            }
          },
          {
            "code": "29800.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Unspecified retinal detachment with retinal defect",
              "Readcode": "F410000"
            }
          },
          {
            "code": "30514.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Traction retinal detachment",
              "Readcode": "F41y000"
            }
          },
          {
            "code": "32028.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Retinal detachment with retinal defect",
              "Readcode": "F410.00"
            }
          },
          {
            "code": "34183.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Retinal defects without detachment",
              "Readcode": "F413.00"
            }
          },
          {
            "code": "34373.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Retinal defects without detachment NOS",
              "Readcode": "F413z00"
            }
          },
          {
            "code": "35250.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Other retinal detachments NOS",
              "Readcode": "F41yz00"
            }
          },
          {
            "code": "38407.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Retinal break",
              "Readcode": "F413400"
            }
          },
          {
            "code": "38463.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Retinal detachment with defect NOS",
              "Readcode": "F410z00"
            }
          },
          {
            "code": "4232.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Retinal detachments and defects",
              "Readcode": "F41..00"
            }
          },
          {
            "code": "45509.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Multiple retinal defects without detachment",
              "Readcode": "F413300"
            }
          },
          {
            "code": "47730.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Other forms of retinal detachment",
              "Readcode": "F41y.00"
            }
          },
          {
            "code": "50694.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Xenon photocoagulation of retina for detachment",
              "Readcode": "7271000.0"
            }
          },
          {
            "code": "53020.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Recent subtotal retinal detachment",
              "Readcode": "F410600"
            }
          },
          {
            "code": "53021.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Old total retinal detachment",
              "Readcode": "F410800"
            }
          },
          {
            "code": "55469.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Old partial retinal detachment",
              "Readcode": "F410700"
            }
          },
          {
            "code": "61965.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Old subtotal retinal detachment",
              "Readcode": "F410900"
            }
          },
          {
            "code": "62773.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "New partial retinal detachment with multiple defects",
              "Readcode": "F410200"
            }
          },
          {
            "code": "62901.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "New partial retinal detachment with single defect",
              "Readcode": "F410100"
            }
          },
          {
            "code": "6836.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Laser photocoagulation of retina for detachment",
              "Readcode": "7271100.0"
            }
          },
          {
            "code": "71651.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "New partial retinal detachment with retinal dialysis",
              "Readcode": "F410400"
            }
          },
          {
            "code": "72901.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "[X]Other retinal detachments",
              "Readcode": "FyuF400"
            }
          },
          {
            "code": "8506.0",
            "description": "Diagnosis of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "Retinal round hole without detachment",
              "Readcode": "F413100"
            }
          },
          {
            "code": "8691.0",
            "description": "History of retinal detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "ReadcodeDescr": "H/O: retinal detachment",
              "Readcode": "1481.00"
            }
          }
        ]
      },
      {
        "concept_id": 1487,
        "concept_version_id": 4113,
        "concept_name": "Retinal detachments and breaks - Secondary care - Diagnoses",
        "coding_system": {
          "id": 4,
          "name": "ICD10 codes",
          "description": "ICD10 Codes"
        },
        "phenotype_id": "PH280",
        "phenotype_version_id": 560,
        "phenotype_name": "Retinal detachments and breaks",
        "code_attribute_header": [
          "Disease",
          "Category"
        ],
        "codes": [
          {
            "code": "H33.0",
            "description": "Retinal detachment with retinal break",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Category": "Diagnosis of Retinal detachments and breaks"
            }
          },
          {
            "code": "H33.3",
            "description": "Retinal breaks without detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Category": "Diagnosis of Retinal detachments and breaks"
            }
          },
          {
            "code": "H33.4",
            "description": "Traction detachment of retina",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Category": "Diagnosis of Retinal detachments and breaks"
            }
          },
          {
            "code": "H33.5",
            "description": "Other retinal detachments",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Category": "Diagnosis of Retinal detachments and breaks"
            }
          }
        ]
      },
      {
        "concept_id": 1488,
        "concept_version_id": 4115,
        "concept_name": "Retinal detachments and breaks - Secondary care - Procedures",
        "coding_system": {
          "id": 7,
          "name": "OPCS4 codes",
          "description": "OPCS4 codes"
        },
        "phenotype_id": "PH280",
        "phenotype_version_id": 560,
        "phenotype_name": "Retinal detachments and breaks",
        "code_attribute_header": [
          "Disease",
          "Category"
        ],
        "codes": [
          {
            "code": "C81",
            "description": "Photocoagulation of retina for detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Category": "Procedure for Retinal detachment"
            }
          },
          {
            "code": "C81.1",
            "description": "Xenon photocoagulation of retina for detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Category": "Procedure for Retinal detachment"
            }
          },
          {
            "code": "C81.2",
            "description": "Laser photocoagulation of retina for detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Category": "Procedure for Retinal detachment"
            }
          },
          {
            "code": "C81.8",
            "description": "Other specified photocoagulation of retina for detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Category": "Procedure for Retinal detachment"
            }
          },
          {
            "code": "C81.9",
            "description": "Unspecified photocoagulation of retina for detachment",
            "attributes": {
              "Disease": "Retinal detachments and breaks",
              "Category": "Procedure for Retinal detachment"
            }
          }
        ]
      }
    ],
    "status": 2,
    "doi": "https://doi.org/10.48533/rsq8-r635",
    "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": 560,
        "version_name": "Retinal detachments and breaks",
        "version_date": "2021-10-06T16:11:01.041077Z",
        "is_published": true,
        "is_latest": true
      }
    ]
  }
]