[
  {
    "phenotype_id": "PH211",
    "phenotype_version_id": 422,
    "name": "Migraine",
    "definition": "At the specified date, a patient is defined as having had 'Migraine' 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. 'Migraine' diagnosis or history of diagnosis during a consultation \n\nOR\nSecondary care\n\n\n1. ALL diagnoses of 'Migraine' 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:07:57.885868Z",
    "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:07:57.885895Z",
    "sex": [
      {
        "name": "Both",
        "value": "3"
      }
    ],
    "type": [
      {
        "name": "Disease or syndrome",
        "value": "2"
      }
    ],
    "ontology": null,
    "phenoflowid": "https://kclhi.org/phenoflow/workflows/github.com/phenoflow/Migraine---612de0d0-1794-11ef-9de4-4d4ea830ad16/blob/read-potential-cases-fhir/Migraine.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": 1286,
        "concept_version_id": 3711,
        "concept_name": "Migraine - Primary care",
        "coding_system": {
          "id": 5,
          "name": "Read codes v2",
          "description": "Read codes v2"
        },
        "phenotype_id": "PH211",
        "phenotype_version_id": 422,
        "phenotype_name": "Migraine",
        "code_attribute_header": [
          "Disease",
          "Medcode",
          "Category"
        ],
        "codes": [
          {
            "code": "1474.00",
            "description": "H/O: migraine",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "5029.0",
              "Category": "History of Migraine"
            }
          },
          {
            "code": "1474000.0",
            "description": "H/O migraine with aura",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "103451.0",
              "Category": "History of Migraine"
            }
          },
          {
            "code": "8B6N.00",
            "description": "Migraine prophylaxis",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "11389.0",
              "Category": "History of Migraine"
            }
          },
          {
            "code": "F26..00",
            "description": "Migraine",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "161.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "F260.00",
            "description": "Classical migraine",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "3220.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "F260.11",
            "description": "Migraine with aura",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "103502.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "F261.00",
            "description": "Common migraine",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "2424.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "F261000",
            "description": "Atypical migraine",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "9633.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "F261.11",
            "description": "Migraine without aura",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "103602.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "F261z00",
            "description": "Common migraine NOS",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "41497.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "F262.00",
            "description": "Migraine variants",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "5509.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "F262200",
            "description": "Abdominal migraine",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "2861.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "F262300",
            "description": "Basilar migraine",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "9004.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "F262400",
            "description": "Ophthalmic migraine",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "10583.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "F262800",
            "description": "Migraine induced by oestrogen contraceptive",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "103973.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "F262z00",
            "description": "Migraine variant NOS",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "23621.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "F26y.00",
            "description": "Other forms of migraine",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "28031.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "F26y000",
            "description": "Hemiplegic migraine",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "3658.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "F26y100",
            "description": "Ophthalmoplegic migraine",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "12511.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "F26y111",
            "description": "Moebius' ophthalmoplegic migraine",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "65262.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "F26y200",
            "description": "Status migrainosus",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "22685.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "F26y300",
            "description": "Complicated migraine",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "27930.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "F26yz00",
            "description": "Other forms of migraine NOS",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "28092.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "F26z.00",
            "description": "Migraine NOS",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "14700.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "Fyu5300",
            "description": "[X]Other migraine",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "53813.0",
              "Category": "Diagnosis of Migraine"
            }
          },
          {
            "code": "K584.11",
            "description": "Migraine - menstrual",
            "attributes": {
              "Disease": "Migraine",
              "Medcode": "11138.0",
              "Category": "Diagnosis of Migraine"
            }
          }
        ]
      },
      {
        "concept_id": 1287,
        "concept_version_id": 3713,
        "concept_name": "Migraine - Primary care",
        "coding_system": {
          "id": 8,
          "name": "Med codes",
          "description": "Med codes"
        },
        "phenotype_id": "PH211",
        "phenotype_version_id": 422,
        "phenotype_name": "Migraine",
        "code_attribute_header": [
          "Disease",
          "ReadcodeDescr",
          "Readcode"
        ],
        "codes": [
          {
            "code": "103451.0",
            "description": "History of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "H/O migraine with aura",
              "Readcode": "1474000.0"
            }
          },
          {
            "code": "103502.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Migraine with aura",
              "Readcode": "F260.11"
            }
          },
          {
            "code": "103602.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Migraine without aura",
              "Readcode": "F261.11"
            }
          },
          {
            "code": "103973.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Migraine induced by oestrogen contraceptive",
              "Readcode": "F262800"
            }
          },
          {
            "code": "10583.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Ophthalmic migraine",
              "Readcode": "F262400"
            }
          },
          {
            "code": "11138.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Migraine - menstrual",
              "Readcode": "K584.11"
            }
          },
          {
            "code": "11389.0",
            "description": "History of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Migraine prophylaxis",
              "Readcode": "8B6N.00"
            }
          },
          {
            "code": "12511.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Ophthalmoplegic migraine",
              "Readcode": "F26y100"
            }
          },
          {
            "code": "14700.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Migraine NOS",
              "Readcode": "F26z.00"
            }
          },
          {
            "code": "161.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Migraine",
              "Readcode": "F26..00"
            }
          },
          {
            "code": "22685.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Status migrainosus",
              "Readcode": "F26y200"
            }
          },
          {
            "code": "23621.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Migraine variant NOS",
              "Readcode": "F262z00"
            }
          },
          {
            "code": "2424.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Common migraine",
              "Readcode": "F261.00"
            }
          },
          {
            "code": "27930.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Complicated migraine",
              "Readcode": "F26y300"
            }
          },
          {
            "code": "28031.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Other forms of migraine",
              "Readcode": "F26y.00"
            }
          },
          {
            "code": "28092.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Other forms of migraine NOS",
              "Readcode": "F26yz00"
            }
          },
          {
            "code": "2861.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Abdominal migraine",
              "Readcode": "F262200"
            }
          },
          {
            "code": "3220.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Classical migraine",
              "Readcode": "F260.00"
            }
          },
          {
            "code": "3658.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Hemiplegic migraine",
              "Readcode": "F26y000"
            }
          },
          {
            "code": "41497.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Common migraine NOS",
              "Readcode": "F261z00"
            }
          },
          {
            "code": "5029.0",
            "description": "History of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "H/O: migraine",
              "Readcode": "1474.00"
            }
          },
          {
            "code": "53813.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "[X]Other migraine",
              "Readcode": "Fyu5300"
            }
          },
          {
            "code": "5509.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Migraine variants",
              "Readcode": "F262.00"
            }
          },
          {
            "code": "65262.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Moebius' ophthalmoplegic migraine",
              "Readcode": "F26y111"
            }
          },
          {
            "code": "9004.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Basilar migraine",
              "Readcode": "F262300"
            }
          },
          {
            "code": "9633.0",
            "description": "Diagnosis of Migraine",
            "attributes": {
              "Disease": "Migraine",
              "ReadcodeDescr": "Atypical migraine",
              "Readcode": "F261000"
            }
          }
        ]
      },
      {
        "concept_id": 1288,
        "concept_version_id": 3715,
        "concept_name": "Migraine - Secondary care - Diagnoses",
        "coding_system": {
          "id": 4,
          "name": "ICD10 codes",
          "description": "ICD10 Codes"
        },
        "phenotype_id": "PH211",
        "phenotype_version_id": 422,
        "phenotype_name": "Migraine",
        "code_attribute_header": [
          "Disease",
          "Category"
        ],
        "codes": [
          {
            "code": "G43",
            "description": "Migraine",
            "attributes": {
              "Disease": "Migraine",
              "Category": "Diagnosis of Migraine"
            }
          }
        ]
      }
    ],
    "status": 2,
    "doi": "https://doi.org/10.48533/sjsf-tz38",
    "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": 422,
        "version_name": "Migraine",
        "version_date": "2021-10-06T16:07:57.914838Z",
        "is_published": true,
        "is_latest": true
      }
    ]
  }
]