[
  {
    "phenotype_id": "PH2527",
    "phenotype_version_id": 6158,
    "name": "Epilepsy diagnosis codes",
    "definition": "This codelist was taken from [OpenCodelists](https://www.opencodelists.org/), created by [OpenSAFELY](https://www.opensafely.org/). We recommend viewing this Phenotype on the OpenCodelist website to view the most recent version.\n\n\nTaken from the `EPIL_COD` refset published by NHSD. Contains public sector information licensed under the UK Open Government Licence v3\\.0 (https://www.nationalarchives.gov.uk/doc/open\\-government\\-licence/version/3/).\n\n\n© University of Oxford for the Bennett Institute for Applied Data Science 2025\\. This work may be copied freely for non\\-commercial research and study.\n\n",
    "implementation": null,
    "publications": null,
    "validation": null,
    "citation_requirements": null,
    "created": "2026-01-26T22:21:20.367683Z",
    "author": "NHSD Primary Care Domain Refsets",
    "collections": [
      {
        "name": "OpenCodelist",
        "value": 31
      },
      {
        "name": "Phenotype Library",
        "value": 18
      }
    ],
    "tags": null,
    "organisation": {
      "id": 1,
      "slug": "opensafely",
      "name": "OpenSAFELY"
    },
    "world_access": 1,
    "updated": "2026-01-26T22:21:20.361399Z",
    "references": [
      {
        "url": "https://digital.nhs.uk/data-and-information/data-collections-and-data-sets/data-collections/quality-and-outcomes-framework-qof/quality-and-outcome-framework-qof-business-rules/primary-care-domain-reference-set-portal",
        "title": "Primary Care Domain Reference Set Portal"
      }
    ],
    "signed_off": [],
    "methodology": "",
    "coding_system": [
      {
        "name": "SNOMED  CT codes",
        "value": 9
      }
    ],
    "open_codelist_id": "nhsd-primary-care-domain-refsets/epil_cod",
    "source_reference": "https://www.opencodelists.org/codelist/nhsd-primary-care-domain-refsets/epil_cod/20200812",
    "concept_information": [
      {
        "concept_id": 6335,
        "concept_version_id": 13820,
        "concept_name": "nhsd-primary-care-domain-refsets/epil_cod/20200812",
        "coding_system": {
          "id": 9,
          "name": "SNOMED  CT codes",
          "description": "SNOMED CT codes"
        },
        "phenotype_id": "PH2527",
        "phenotype_version_id": 6158,
        "phenotype_name": "Epilepsy diagnosis codes",
        "code_attribute_header": [],
        "codes": [
          {
            "code": "116401000119105",
            "description": "Recurrent complex partial epilepsy",
            "attributes": null
          },
          {
            "code": "13973009",
            "description": "Grand mal status",
            "attributes": null
          },
          {
            "code": "16873003",
            "description": "Musicogenic seizure",
            "attributes": null
          },
          {
            "code": "189198006",
            "description": "Epileptic drop attack",
            "attributes": null
          },
          {
            "code": "192845009",
            "description": "Myoclonic encephalopathy",
            "attributes": null
          },
          {
            "code": "192979009",
            "description": "Generalized non-convulsive epilepsy",
            "attributes": null
          },
          {
            "code": "192981006",
            "description": "Epileptic seizures - atonic",
            "attributes": null
          },
          {
            "code": "192982004",
            "description": "Epileptic seizures - akinetic",
            "attributes": null
          },
          {
            "code": "192991000",
            "description": "Epileptic seizures - clonic",
            "attributes": null
          },
          {
            "code": "192992007",
            "description": "Epileptic seizures - myoclonic",
            "attributes": null
          },
          {
            "code": "192993002",
            "description": "Epileptic seizures - tonic",
            "attributes": null
          },
          {
            "code": "192999003",
            "description": "Partial epilepsy with impairment of consciousness",
            "attributes": null
          },
          {
            "code": "193000002",
            "description": "Temporal lobe epilepsy",
            "attributes": null
          },
          {
            "code": "193002005",
            "description": "Psychosensory epilepsy",
            "attributes": null
          },
          {
            "code": "193003000",
            "description": "Mesiobasal limbic epilepsy",
            "attributes": null
          },
          {
            "code": "193004006",
            "description": "Epileptic automatism",
            "attributes": null
          },
          {
            "code": "193008009",
            "description": "Somatosensory epilepsy",
            "attributes": null
          },
          {
            "code": "193009001",
            "description": "Partial epilepsy with autonomic symptoms",
            "attributes": null
          },
          {
            "code": "193010006",
            "description": "Visual reflex epilepsy",
            "attributes": null
          },
          {
            "code": "193011005",
            "description": "Unilateral epilepsy",
            "attributes": null
          },
          {
            "code": "193021002",
            "description": "Cursive (running) epilepsy",
            "attributes": null
          },
          {
            "code": "193022009",
            "description": "Localization-related(focal)(partial)idiopathic epilepsy and epileptic syndromes with seizures of localized onset",
            "attributes": null
          },
          {
            "code": "19598007",
            "description": "Generalized epilepsy",
            "attributes": null
          },
          {
            "code": "199451000000106",
            "description": "Simple partial epileptic seizure",
            "attributes": null
          },
          {
            "code": "230191005",
            "description": "Rasmussen syndrome",
            "attributes": null
          },
          {
            "code": "230381009",
            "description": "Localization-related epilepsy",
            "attributes": null
          },
          {
            "code": "230387008",
            "description": "Benign occipital epilepsy of childhood - early onset variant",
            "attributes": null
          },
          {
            "code": "230390002",
            "description": "Localization-related symptomatic epilepsy",
            "attributes": null
          },
          {
            "code": "230391003",
            "description": "Amygdalo-hippocampal epilepsy",
            "attributes": null
          },
          {
            "code": "230392005",
            "description": "Rhinencephalic epilepsy",
            "attributes": null
          },
          {
            "code": "230393000",
            "description": "Lateral temporal epilepsy",
            "attributes": null
          },
          {
            "code": "230394006",
            "description": "Frontal lobe epilepsy",
            "attributes": null
          },
          {
            "code": "230395007",
            "description": "Supplementary motor epilepsy",
            "attributes": null
          },
          {
            "code": "230396008",
            "description": "Cingulate epilepsy",
            "attributes": null
          },
          {
            "code": "230397004",
            "description": "Anterior frontopolar epilepsy",
            "attributes": null
          },
          {
            "code": "230398009",
            "description": "Orbitofrontal epilepsy",
            "attributes": null
          },
          {
            "code": "230399001",
            "description": "Dorsolateral epilepsy",
            "attributes": null
          },
          {
            "code": "230400008",
            "description": "Opercular epilepsy",
            "attributes": null
          },
          {
            "code": "230401007",
            "description": "Non-progressive Kozhevnikow syndrome",
            "attributes": null
          },
          {
            "code": "230403005",
            "description": "Parietal lobe epilepsy",
            "attributes": null
          },
          {
            "code": "230404004",
            "description": "Occipital lobe epilepsy",
            "attributes": null
          },
          {
            "code": "230405003",
            "description": "Chronic progressive epilepsia partialis continua of childhood",
            "attributes": null
          },
          {
            "code": "230406002",
            "description": "Localization-related symptomatic epilepsy with specific precipitant",
            "attributes": null
          },
          {
            "code": "230407006",
            "description": "Hemiplegia-hemiconvulsion-epilepsy syndrome",
            "attributes": null
          },
          {
            "code": "230408001",
            "description": "Localization-related cryptogenic epilepsy",
            "attributes": null
          },
          {
            "code": "230415009",
            "description": "Cryptogenic generalized epilepsy",
            "attributes": null
          },
          {
            "code": "230416005",
            "description": "Cryptogenic West syndrome",
            "attributes": null
          },
          {
            "code": "230417001",
            "description": "Symptomatic West syndrome",
            "attributes": null
          },
          {
            "code": "230418006",
            "description": "Lennox-Gastaut syndrome",
            "attributes": null
          },
          {
            "code": "230419003",
            "description": "Cryptogenic Lennox-Gastaut syndrome",
            "attributes": null
          },
          {
            "code": "230420009",
            "description": "Symptomatic Lennox-Gastaut syndrome",
            "attributes": null
          },
          {
            "code": "230421008",
            "description": "Myoclonic astatic epilepsy",
            "attributes": null
          },
          {
            "code": "230422001",
            "description": "Myoclonic absence epilepsy",
            "attributes": null
          },
          {
            "code": "230423006",
            "description": "Unverricht-Lundborg syndrome",
            "attributes": null
          },
          {
            "code": "230425004",
            "description": "Lafora disease",
            "attributes": null
          },
          {
            "code": "230426003",
            "description": "Myoclonic epilepsy with ragged red fibers",
            "attributes": null
          },
          {
            "code": "230427007",
            "description": "Cryptogenic myoclonic epilepsy",
            "attributes": null
          },
          {
            "code": "230428002",
            "description": "Idiopathic myoclonic epilepsy",
            "attributes": null
          },
          {
            "code": "230429005",
            "description": "Early infantile epileptic encephalopathy with suppression bursts",
            "attributes": null
          },
          {
            "code": "230430000",
            "description": "Symptomatic myoclonic epilepsy",
            "attributes": null
          },
          {
            "code": "230435005",
            "description": "Epilepsy undetermined whether focal or generalized",
            "attributes": null
          },
          {
            "code": "230439004",
            "description": "Epilepsy with continuous spike wave during slow-wave sleep",
            "attributes": null
          },
          {
            "code": "230440002",
            "description": "Secondary reading epilepsy",
            "attributes": null
          },
          {
            "code": "230441003",
            "description": "Drug-induced epilepsy",
            "attributes": null
          },
          {
            "code": "230443000",
            "description": "Narcotic withdrawal epilepsy",
            "attributes": null
          },
          {
            "code": "230444006",
            "description": "Menstrual epilepsy",
            "attributes": null
          },
          {
            "code": "230445007",
            "description": "Nocturnal epilepsy",
            "attributes": null
          },
          {
            "code": "230447004",
            "description": "Eyelid myoclonus with absences",
            "attributes": null
          },
          {
            "code": "230448009",
            "description": "Writing epilepsy",
            "attributes": null
          },
          {
            "code": "230450001",
            "description": "Eating epilepsy",
            "attributes": null
          },
          {
            "code": "230452009",
            "description": "Toothbrushing epilepsy",
            "attributes": null
          },
          {
            "code": "230453004",
            "description": "Decision-making epilepsy",
            "attributes": null
          },
          {
            "code": "230454005",
            "description": "Aquagenic epilepsy",
            "attributes": null
          },
          {
            "code": "230455006",
            "description": "Self-induced non-photosensitive epilepsy",
            "attributes": null
          },
          {
            "code": "230456007",
            "description": "Status epilepticus",
            "attributes": null
          },
          {
            "code": "230457003",
            "description": "Non-convulsive status epilepticus with three per second spike wave",
            "attributes": null
          },
          {
            "code": "230458008",
            "description": "Non-convulsive status epilepticus without three per second spike wave",
            "attributes": null
          },
          {
            "code": "230459000",
            "description": "Non-convulsive simple partial status epilepticus",
            "attributes": null
          },
          {
            "code": "230460005",
            "description": "Complex partial status epilepticus",
            "attributes": null
          },
          {
            "code": "241006",
            "description": "Epilepsia partialis continua",
            "attributes": null
          },
          {
            "code": "267581004",
            "description": "Progressive myoclonic epilepsy",
            "attributes": null
          },
          {
            "code": "267592003",
            "description": "Motor cortex epilepsy",
            "attributes": null
          },
          {
            "code": "28055006",
            "description": "West syndrome",
            "attributes": null
          },
          {
            "code": "290741000119102",
            "description": "Intractable idiopathic partial epilepsy",
            "attributes": null
          },
          {
            "code": "307356008",
            "description": "Motor epilepsy",
            "attributes": null
          },
          {
            "code": "307357004",
            "description": "Jacksonian, focal or motor epilepsy",
            "attributes": null
          },
          {
            "code": "313307000",
            "description": "Epileptic seizure",
            "attributes": null
          },
          {
            "code": "352818000",
            "description": "Tonic-clonic epilepsy",
            "attributes": null
          },
          {
            "code": "361123003",
            "description": "Psychomotor epilepsy",
            "attributes": null
          },
          {
            "code": "361268000",
            "description": "Alcohol-induced epilepsy",
            "attributes": null
          },
          {
            "code": "37356005",
            "description": "Myoclonic seizure",
            "attributes": null
          },
          {
            "code": "407675009",
            "description": "Complex partial epileptic seizure",
            "attributes": null
          },
          {
            "code": "413101007",
            "description": "Stress-induced epilepsy",
            "attributes": null
          },
          {
            "code": "434541000124109",
            "description": "Benign childhood epilepsy with centrotemporal spikes, refractory",
            "attributes": null
          },
          {
            "code": "434551000124106",
            "description": "Benign childhood epilepsy with centrotemporal spikes, non-refractory",
            "attributes": null
          },
          {
            "code": "44423001",
            "description": "Early myoclonic encephalopathy",
            "attributes": null
          },
          {
            "code": "509341000000107",
            "description": "Petit-mal epilepsy",
            "attributes": null
          },
          {
            "code": "65120008",
            "description": "Generalized convulsive epilepsy",
            "attributes": null
          },
          {
            "code": "7033004",
            "description": "Petit mal status",
            "attributes": null
          },
          {
            "code": "716278005",
            "description": "Jeavons syndrome",
            "attributes": null
          },
          {
            "code": "71831005",
            "description": "Symptomatic generalized epilepsy",
            "attributes": null
          },
          {
            "code": "725163002",
            "description": "X-linked spasticity, intellectual disability, epilepsy syndrome",
            "attributes": null
          },
          {
            "code": "734434007",
            "description": "Pyridoxine-dependent epilepsy",
            "attributes": null
          },
          {
            "code": "75023009",
            "description": "Post-traumatic epilepsy",
            "attributes": null
          },
          {
            "code": "763349002",
            "description": "Progressive myoclonic epilepsy with dystonia",
            "attributes": null
          },
          {
            "code": "763534009",
            "description": "Hot water reflex epilepsy",
            "attributes": null
          },
          {
            "code": "763622006",
            "description": "Thinking epilepsy",
            "attributes": null
          },
          {
            "code": "763632004",
            "description": "Startle epilepsy",
            "attributes": null
          },
          {
            "code": "763802009",
            "description": "Micturition induced epilepsy",
            "attributes": null
          },
          {
            "code": "763827002",
            "description": "Orgasm induced epilepsy",
            "attributes": null
          },
          {
            "code": "764522009",
            "description": "Familial focal epilepsy with variable foci",
            "attributes": null
          },
          {
            "code": "765089003",
            "description": "Focal epilepsy, intellectual disability, cerebro-cerebellar malformation syndrome",
            "attributes": null
          },
          {
            "code": "765093009",
            "description": "Rolandic epilepsy, speech dyspraxia syndrome",
            "attributes": null
          },
          {
            "code": "765170001",
            "description": "Sodium voltage-gated channel alpha subunit 8-related epilepsy with encephalopathy",
            "attributes": null
          },
          {
            "code": "765216006",
            "description": "Audiogenic epilepsy",
            "attributes": null
          },
          {
            "code": "766815007",
            "description": "Perioral myoclonia with absences",
            "attributes": null
          },
          {
            "code": "766932005",
            "description": "Hypothalamic hamartoma with gelastic seizure",
            "attributes": null
          },
          {
            "code": "768666006",
            "description": "Syntaxin binding protein 1 encephalopathy with epilepsy",
            "attributes": null
          },
          {
            "code": "7689009",
            "description": "Reading seizure",
            "attributes": null
          },
          {
            "code": "770405003",
            "description": "Benign familial mesial temporal lobe epilepsy",
            "attributes": null
          },
          {
            "code": "770431001",
            "description": "Early-onset epileptic encephalopathy and intellectual disability due to glutamate receptor, ionotropic, N-methyl-D-aspartate, subunit 2A mutation",
            "attributes": null
          },
          {
            "code": "770560008",
            "description": "Lissencephaly due to LIS1 mutation",
            "attributes": null
          },
          {
            "code": "770622009",
            "description": "Benign infantile focal epilepsy with midline spikes and waves during sleep",
            "attributes": null
          },
          {
            "code": "770623004",
            "description": "Benign occipital lobe epilepsy",
            "attributes": null
          },
          {
            "code": "770624005",
            "description": "Benign partial epilepsy of infancy with complex partial seizures",
            "attributes": null
          },
          {
            "code": "770643005",
            "description": "Mesial temporal lobe epilepsy with hippocampal sclerosis",
            "attributes": null
          },
          {
            "code": "770758009",
            "description": "New-onset refractory status epilepticus",
            "attributes": null
          },
          {
            "code": "771141002",
            "description": "Benign partial epilepsy with secondarily generalized seizures in infancy",
            "attributes": null
          },
          {
            "code": "771142009",
            "description": "Cortical dysplasia with focal epilepsy syndrome",
            "attributes": null
          },
          {
            "code": "771223000",
            "description": "Infantile epileptic dyskinetic encephalopathy",
            "attributes": null
          },
          {
            "code": "771303004",
            "description": "Severe neonatal onset encephalopathy with microcephaly",
            "attributes": null
          },
          {
            "code": "771469002",
            "description": "Early-onset spastic ataxia, myoclonic epilepsy, neuropathy syndrome",
            "attributes": null
          },
          {
            "code": "773230003",
            "description": "Cyclin-dependent kinase-like 5 deficiency",
            "attributes": null
          },
          {
            "code": "773421009",
            "description": "Infantile-onset mesial temporal lobe epilepsy with severe cognitive regression",
            "attributes": null
          },
          {
            "code": "773497001",
            "description": "Partial corpus callosum agenesis, cerebellar vermis hypoplasia with posterior fossa cysts syndrome",
            "attributes": null
          },
          {
            "code": "773548008",
            "description": "Early-onset epileptic encephalopathy, cortical blindness, intellectual disability, facial dysmorphism syndrome",
            "attributes": null
          },
          {
            "code": "773643006",
            "description": "Multiple congenital anomalies, hypotonia, seizures syndrome type 2",
            "attributes": null
          },
          {
            "code": "778001003",
            "description": "Potassium voltage-gated channel subfamily Q member 2 related epileptic encephalopathy",
            "attributes": null
          },
          {
            "code": "778047006",
            "description": "Myoclonic epilepsy in non-progressive encephalopathy",
            "attributes": null
          },
          {
            "code": "778063003",
            "description": "Cryptogenic late-onset epileptic spasms",
            "attributes": null
          },
          {
            "code": "782737003",
            "description": "Diffuse cerebral and cerebellar atrophy, intractable seizures, progressive microcephaly syndrome",
            "attributes": null
          },
          {
            "code": "782744007",
            "description": "Lipoic acid synthetase deficiency",
            "attributes": null
          },
          {
            "code": "783055005",
            "description": "Progressive myoclonic epilepsy type 5",
            "attributes": null
          },
          {
            "code": "783062001",
            "description": "Progressive myoclonic epilepsy type 6",
            "attributes": null
          },
          {
            "code": "783064000",
            "description": "Progressive myoclonic epilepsy type 3",
            "attributes": null
          },
          {
            "code": "783139000",
            "description": "Progressive myoclonic epilepsy type 8",
            "attributes": null
          },
          {
            "code": "783739005",
            "description": "Familial temporal lobe epilepsy",
            "attributes": null
          },
          {
            "code": "784342008",
            "description": "Familial infantile myoclonic epilepsy",
            "attributes": null
          },
          {
            "code": "784345005",
            "description": "Malignant migrating partial seizures of infancy",
            "attributes": null
          },
          {
            "code": "784372002",
            "description": "Familial mesial temporal lobe epilepsy with febrile seizures",
            "attributes": null
          },
          {
            "code": "784377008",
            "description": "Autosomal dominant epilepsy with auditory features",
            "attributes": null
          },
          {
            "code": "785303004",
            "description": "Multiple congenital anomalies, hypotonia, seizures syndrome",
            "attributes": null
          },
          {
            "code": "79745005",
            "description": "Reflex epilepsy",
            "attributes": null
          },
          {
            "code": "84201000119105",
            "description": "Intractable partial temporal lobe epilepsy with impairment of consciousness",
            "attributes": null
          },
          {
            "code": "84757009",
            "description": "Epilepsy",
            "attributes": null
          },
          {
            "code": "89525009",
            "description": "Gelastic seizure",
            "attributes": null
          },
          {
            "code": "95208000",
            "description": "Photogenic epilepsy",
            "attributes": null
          }
        ]
      }
    ],
    "coding_system_release": "",
    "open_codelist_version_id": "39a97412",
    "open_codelist_version_tag": "20200812",
    "status": 1,
    "doi": "https://doi.org/10.48533/1ff6-eg26",
    "is_deleted": false,
    "publish_status": 2,
    "owner": "ieuan.scanlon",
    "template": {
      "id": 3,
      "name": "OpenCodelists Phenotype",
      "description": "OpenSafely's OpenCodelist Phenotype, visit https://www.opencodelists.org/ to learn more",
      "version_id": 1
    },
    "versions": [
      {
        "version_id": 6162,
        "version_name": "Epilepsy diagnosis codes",
        "version_date": "2026-01-26T22:21:28.586698Z",
        "is_published": true,
        "is_latest": true
      },
      {
        "version_id": 6161,
        "version_name": "Epilepsy diagnosis codes",
        "version_date": "2026-01-26T22:21:26.039172Z",
        "is_published": true,
        "is_latest": false
      },
      {
        "version_id": 6160,
        "version_name": "Epilepsy diagnosis codes",
        "version_date": "2026-01-26T22:21:23.593202Z",
        "is_published": true,
        "is_latest": false
      },
      {
        "version_id": 6159,
        "version_name": "Epilepsy diagnosis codes",
        "version_date": "2026-01-26T22:21:21.936962Z",
        "is_published": true,
        "is_latest": false
      },
      {
        "version_id": 6158,
        "version_name": "Epilepsy diagnosis codes",
        "version_date": "2026-01-26T22:21:20.378428Z",
        "is_published": true,
        "is_latest": false
      }
    ]
  }
]