Multiple sclerosis v2

PH3578 / 8665

OpenSAFELY

Jan 26, 2026

REGISTERING DOI...

OpenCodelists Phenotype
  1. Overview

    Codelist ID
    opensafely/multiple-sclerosis-v2
    Version ID
    063627df
    Coding System
    Read codes v3
    Collections
    OpenCodelistPhenotype Library
    Tags
    No data
  2. Definition

    This codelist was taken from OpenCodelists, created by OpenSAFELY. We recommend viewing this Phenotype on the OpenCodelist website to view the most recent version.

    Codelist for multiple sclerosis including Y codes not mapped previously, Balo disease, Schilder's disease Also includes clinically isolated syndrome and optic neuromyelitis

    © University of Oxford for the Bennett Institute for Applied Data Science 2025. This work may be copied freely for non-commercial research and study.

  3. Methodology

    Codelist designed to identify people who may not have a discrete episode of acute transverse myelitis recorded, due to a diagnosis of MS

    This list includes all codes in https://www.opencodelists.org/codelist/opensafely/multiple-sclerosis/2020-05-12/ It additionally includes: - Y codes (Y1015 Multiple Sclerosis; Y1f23 Multiple sclerosis monitoring invitation) - Balo and Schilder's disease (X005l Balo concentric sclerosis; F211. Schilder's disease or Balo's concentric sclerosis)

    This codelist also includes two related conditions which could be removed for a codelist solely of MS: - Clinically isolated syndrome, on the basis that a person with clinically isolated syndrome who experiences acute transverse myelitis may be diagnosed directly with MS rather than coded as acute transverse myelitis - Optic neuromyelitis, as this condition also includes recurrent episodes of acute transverse myelitis

    The codelist was developed with advice from Arina Tamborska, University of Liverpool

  4. References

  5. Clinical Codelist

  6. API

    To Export Phenotype Details:

    FormatAPI
    JSON site_root/api/v1/phenotypes/PH3578/version/8665/detail/?format=json
    R Package

    # Download here

    library(ConceptLibraryClient)


    # Connect to API

    client = ConceptLibraryClient::Connection$new(public=TRUE)


    # Get details of Phenotype

    phenotype_details = client$phenotypes$get_detail(
     'PH3578',
     version_id=8665
    )

    Py Package

    # Download here

    from pyconceptlibraryclient import Client


    # Connect to API

    client = Client(public=True)


    # Get details of Phenotype

    phenotype_detail = client.phenotypes.get_detail(
     'PH3578',
     version_id=8665
    )

    To Export Phenotype Code List:

    FormatAPI
    JSON site_root/api/v1/phenotypes/PH3578/version/8665/export/codes/?format=json
    R Package

    # Download here

    library(ConceptLibraryClient)


    # Connect to API

    client = ConceptLibraryClient::Connection$new(public=TRUE)


    # Get codelist of Phenotype

    phenotype_codelist = client$phenotypes$get_codelist(
     'PH3578',
     version_id=8665
    )

    Py Package

    # Download here

    from pyconceptlibraryclient import Client


    # Connect to API

    client = Client(public=True)


    # Get codelist of Phenotype

    phenotype_codelist = client.phenotypes.get_codelist(
     'PH3578',
     version_id=8665
    )

  7. Version History

    Version IDNameOwnerPublish date
    Multiple sclerosis v2 ieuan.scanlon2026-01-26 23:24