Immigration status

PH3490 / 8537

OpenSAFELY

Jan 26, 2026

REGISTERING DOI...

OpenCodelists Phenotype
  1. Overview

    Codelist ID
    opensafely/immigration-status
    Version ID
    5008e054
    Coding System
    SNOMED CT codes
    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.

    This codelist represents a list of codes indicative of a specific immigration status (e.g. indefinite leave to remain, asylum seeker awaiting decision).

    © 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

    Search strategy This codelist was created by searching for the following terms and then selecting codes that were relevant to this aspect of migration status:

    • asylum
    • citizenship
    • dependant visa
    • immigra
    • indefinite leave
    • refugee
    • spouse visa
    • visa
    • work permit
    • overseas

    Updated to include codes related to the Immigration Removal Centre Assessment Toolkit, based on discussions with two GPs and the rationale that individuals held in IRCs are likely to be either seeking asylum or undocumented. GP review: 5/02/25

  4. References

  5. Clinical Codelist

  6. API

    To Export Phenotype Details:

    FormatAPI
    JSON site_root/api/v1/phenotypes/PH3490/version/8537/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(
     'PH3490',
     version_id=8537
    )

    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(
     'PH3490',
     version_id=8537
    )

    To Export Phenotype Code List:

    FormatAPI
    JSON site_root/api/v1/phenotypes/PH3490/version/8537/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(
     'PH3490',
     version_id=8537
    )

    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(
     'PH3490',
     version_id=8537
    )

  7. Version History

    Version IDNameOwnerPublish date
    Immigration status ieuan.scanlon2026-01-26 23:19
    8536 Immigration status ieuan.scanlon2026-01-26 23:19
    8535 Immigration status ieuan.scanlon2026-01-26 23:19
    8534 Immigration status ieuan.scanlon2026-01-26 23:19
    8533 Immigration status ieuan.scanlon2026-01-26 23:19