[
  {
    "phenotype_id": "PH44",
    "phenotype_version_id": 88,
    "name": "Erectile dysfunction",
    "definition": "At the specified date, a patient is defined as having had 'Erectile dysfunction' 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. 'Erectile dysfunction' diagnosis or history of diagnosis during or procedure a consultation \n\nOR\n\n\n2. 'Erectile dysfunction' possible diagnosis during a consultation IF patient = male\nOR\nSecondary care\n\n\n1. ALL diagnoses of 'Erectile dysfunction' or history of diagnosis during a hospitalization\nOR\n\n\n2. ALL possible diagnosis of 'Erectile dysfunction' during a hospitalization IF patient = male\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:00:50.775034Z",
    "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:00:50.775066Z",
    "sex": [
      {
        "name": "Both",
        "value": "3"
      }
    ],
    "type": [
      {
        "name": "Disease or syndrome",
        "value": "2"
      }
    ],
    "ontology": null,
    "phenoflowid": "https://kclhi.org/phenoflow/workflows/github.com/phenoflow/Erectile-dysfunction---a6d5f1a0-170c-11ef-9de4-4d4ea830ad16/blob/read-potential-cases-fhir/Erectile-dysfunction.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": 808,
        "concept_version_id": 2755,
        "concept_name": "Erectile dysfunction - Primary care",
        "coding_system": {
          "id": 5,
          "name": "Read codes v2",
          "description": "Read codes v2"
        },
        "phenotype_id": "PH44",
        "phenotype_version_id": 88,
        "phenotype_name": "Erectile dysfunction",
        "code_attribute_header": [
          "Disease",
          "Medcode",
          "Category"
        ],
        "codes": [
          {
            "code": "1ABB.00",
            "description": "Cannot get an erection",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "Medcode": "94821.0",
              "Category": "Diagnosis of erectile dysfunction"
            }
          },
          {
            "code": "1ABC.00",
            "description": "Cannot sustain an erection",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "Medcode": "94343.0",
              "Category": "Diagnosis of erectile dysfunction"
            }
          },
          {
            "code": "1D1B.00",
            "description": "C/O erectile dysfunction",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "Medcode": "102274.0",
              "Category": "Diagnosis of erectile dysfunction"
            }
          },
          {
            "code": "7A6G000",
            "description": "Revascularisation for impotence",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "Medcode": "37391.0",
              "Category": "Procedure for erectile dysfunction"
            }
          },
          {
            "code": "7A6G500",
            "description": "Ligation of penile veins for impotence",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "Medcode": "41382.0",
              "Category": "Procedure for erectile dysfunction"
            }
          },
          {
            "code": "7C25B00",
            "description": "Penile injection to produce erection",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "Medcode": "20833.0",
              "Category": "Procedure for erectile dysfunction"
            }
          },
          {
            "code": "7C25E00",
            "description": "Treatment of erectile dysfunction NEC",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "Medcode": "12867.0",
              "Category": "Diagnosis of erectile dysfunction"
            }
          },
          {
            "code": "7C25F00",
            "description": "Operations on penis for erectile dysfunction NEC",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "Medcode": "81439.0",
              "Category": "Procedure for erectile dysfunction"
            }
          },
          {
            "code": "8BB4.00",
            "description": "Erect dysf unresponsiv to phosphodiesterase-5 inhibitor",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "Medcode": "103966.0",
              "Category": "Diagnosis of erectile dysfunction"
            }
          },
          {
            "code": "8HTj.00",
            "description": "Referral to erectile dysfunction clinic",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "Medcode": "12790.0",
              "Category": "Diagnosis of erectile dysfunction"
            }
          },
          {
            "code": "E227300",
            "description": "Impotence",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "Medcode": "710.0",
              "Category": "Diagnosis of erectile dysfunction"
            }
          },
          {
            "code": "E227311",
            "description": "Erectile dysfunction",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "Medcode": "3838.0",
              "Category": "Diagnosis of erectile dysfunction"
            }
          },
          {
            "code": "Eu52200",
            "description": "[X]Failure of genital response",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "Medcode": "33494.0",
              "Category": "Possible diagnosis of erectile dysfunction"
            }
          },
          {
            "code": "Eu52212",
            "description": "[X]Male erectile disorder",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "Medcode": "12066.0",
              "Category": "Diagnosis of erectile dysfunction"
            }
          },
          {
            "code": "Eu52213",
            "description": "[X]Psychogenic impotence",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "Medcode": "17639.0",
              "Category": "Diagnosis of erectile dysfunction"
            }
          },
          {
            "code": "K27y100",
            "description": "Impotence of organic origin",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "Medcode": "17894.0",
              "Category": "Diagnosis of erectile dysfunction"
            }
          },
          {
            "code": "K27y700",
            "description": "Erectile dysfunction due to diabetes mellitus",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "Medcode": "106360.0",
              "Category": "Diagnosis of erectile dysfunction"
            }
          },
          {
            "code": "Z9E9.00",
            "description": "Provision of device for impotence",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "Medcode": "92310.0",
              "Category": "Procedure for erectile dysfunction"
            }
          },
          {
            "code": "ZG43600",
            "description": "Advice on technique for impotence",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "Medcode": "40725.0",
              "Category": "Procedure for erectile dysfunction"
            }
          }
        ]
      },
      {
        "concept_id": 809,
        "concept_version_id": 2757,
        "concept_name": "Erectile dysfunction - Primary care",
        "coding_system": {
          "id": 8,
          "name": "Med codes",
          "description": "Med codes"
        },
        "phenotype_id": "PH44",
        "phenotype_version_id": 88,
        "phenotype_name": "Erectile dysfunction",
        "code_attribute_header": [
          "Disease",
          "ReadcodeDescr",
          "Readcode"
        ],
        "codes": [
          {
            "code": "102274.0",
            "description": "Diagnosis of erectile dysfunction",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "ReadcodeDescr": "C/O erectile dysfunction",
              "Readcode": "1D1B.00"
            }
          },
          {
            "code": "103966.0",
            "description": "Diagnosis of erectile dysfunction",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "ReadcodeDescr": "Erect dysf unresponsiv to phosphodiesterase-5 inhibitor",
              "Readcode": "8BB4.00"
            }
          },
          {
            "code": "106360.0",
            "description": "Diagnosis of erectile dysfunction",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "ReadcodeDescr": "Erectile dysfunction due to diabetes mellitus",
              "Readcode": "K27y700"
            }
          },
          {
            "code": "12066.0",
            "description": "Diagnosis of erectile dysfunction",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "ReadcodeDescr": "[X]Male erectile disorder",
              "Readcode": "Eu52212"
            }
          },
          {
            "code": "12790.0",
            "description": "Diagnosis of erectile dysfunction",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "ReadcodeDescr": "Referral to erectile dysfunction clinic",
              "Readcode": "8HTj.00"
            }
          },
          {
            "code": "12867.0",
            "description": "Diagnosis of erectile dysfunction",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "ReadcodeDescr": "Treatment of erectile dysfunction NEC",
              "Readcode": "7C25E00"
            }
          },
          {
            "code": "17639.0",
            "description": "Diagnosis of erectile dysfunction",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "ReadcodeDescr": "[X]Psychogenic impotence",
              "Readcode": "Eu52213"
            }
          },
          {
            "code": "17894.0",
            "description": "Diagnosis of erectile dysfunction",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "ReadcodeDescr": "Impotence of organic origin",
              "Readcode": "K27y100"
            }
          },
          {
            "code": "20833.0",
            "description": "Procedure for erectile dysfunction",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "ReadcodeDescr": "Penile injection to produce erection",
              "Readcode": "7C25B00"
            }
          },
          {
            "code": "33494.0",
            "description": "Possible diagnosis of erectile dysfunction",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "ReadcodeDescr": "[X]Failure of genital response",
              "Readcode": "Eu52200"
            }
          },
          {
            "code": "37391.0",
            "description": "Procedure for erectile dysfunction",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "ReadcodeDescr": "Revascularisation for impotence",
              "Readcode": "7A6G000"
            }
          },
          {
            "code": "3838.0",
            "description": "Diagnosis of erectile dysfunction",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "ReadcodeDescr": "Erectile dysfunction",
              "Readcode": "E227311"
            }
          },
          {
            "code": "40725.0",
            "description": "Procedure for erectile dysfunction",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "ReadcodeDescr": "Advice on technique for impotence",
              "Readcode": "ZG43600"
            }
          },
          {
            "code": "41382.0",
            "description": "Procedure for erectile dysfunction",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "ReadcodeDescr": "Ligation of penile veins for impotence",
              "Readcode": "7A6G500"
            }
          },
          {
            "code": "710.0",
            "description": "Diagnosis of erectile dysfunction",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "ReadcodeDescr": "Impotence",
              "Readcode": "E227300"
            }
          },
          {
            "code": "81439.0",
            "description": "Procedure for erectile dysfunction",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "ReadcodeDescr": "Operations on penis for erectile dysfunction NEC",
              "Readcode": "7C25F00"
            }
          },
          {
            "code": "92310.0",
            "description": "Procedure for erectile dysfunction",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "ReadcodeDescr": "Provision of device for impotence",
              "Readcode": "Z9E9.00"
            }
          },
          {
            "code": "94343.0",
            "description": "Diagnosis of erectile dysfunction",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "ReadcodeDescr": "Cannot sustain an erection",
              "Readcode": "1ABC.00"
            }
          },
          {
            "code": "94821.0",
            "description": "Diagnosis of erectile dysfunction",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "ReadcodeDescr": "Cannot get an erection",
              "Readcode": "1ABB.00"
            }
          }
        ]
      },
      {
        "concept_id": 810,
        "concept_version_id": 2759,
        "concept_name": "Erectile dysfunction - Secondary care - Diagnoses",
        "coding_system": {
          "id": 4,
          "name": "ICD10 codes",
          "description": "ICD10 Codes"
        },
        "phenotype_id": "PH44",
        "phenotype_version_id": 88,
        "phenotype_name": "Erectile dysfunction",
        "code_attribute_header": [
          "Disease",
          "Category"
        ],
        "codes": [
          {
            "code": "F52.2",
            "description": "Failure of genital response",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "Category": "Possible diagnosis of erectile dysfunction"
            }
          },
          {
            "code": "N48.4",
            "description": "Impotence of organic origin",
            "attributes": {
              "Disease": "Erectile dysfunction",
              "Category": "Diagnosis of erectile dysfunction"
            }
          }
        ]
      }
    ],
    "status": 2,
    "doi": "https://doi.org/10.48533/xvck-6466",
    "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": 88,
        "version_name": "Erectile dysfunction",
        "version_date": "2021-10-06T16:00:50.805425Z",
        "is_published": true,
        "is_latest": true
      }
    ]
  }
]