[
  {
    "phenotype_id": "PH3606",
    "phenotype_version_id": 8696,
    "name": "Opioid-containing medicines (rectal - excluding drugs for substance misuse) - Pseudo BNF",
    "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\nAll opioid\\-containing products which are given via rectal route of administration, EXCLUDING products listed in section 4\\.10 (substance misuse) of the legacy BNF code structure. Drugs outside of this, but not included in \"opioid analgesics\" in the BNF ARE included (e.g. co\\-codamol, alfentanil)\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-26T23:26:00.974066Z",
    "author": "OpenSAFELY",
    "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-26T23:26:00.965973Z",
    "references": [
      {
        "url": "https://github.com/ebmdatalab/openprescribing/pull/2907",
        "title": "Opioid OME measure definition pull request"
      },
      {
        "url": "https://github.com/opensafely/codelist-development/issues/237",
        "title": "Codelist Github issue containing SQL"
      }
    ],
    "signed_off": [],
    "methodology": "A modified version of the SQL used to create the measure definition for the opioid OME measure on OpenPrescribing was created. \n\n\nThe prescribing data table was replaced with the BNF hierarchy table, and code that related to calculating the OME was removed, leaving only identification of products containing opioids, as defined in the measure definition.\n\n\nThe SQL can be found on the Github issue for this codelist (listed in the references).\n\n\nThese codes were then filtered to only include rectal route of administration.\n\n",
    "coding_system": [
      {
        "name": "BNF codes",
        "value": 11
      }
    ],
    "open_codelist_id": "opensafely/opioid-containing-medicines-rectal-excluding-drugs-for-substance-misuse",
    "source_reference": "https://www.opencodelists.org/codelist/opensafely/opioid-containing-medicines-rectal-excluding-drugs-for-substance-misuse/17fe0325",
    "concept_information": [
      {
        "concept_id": 8873,
        "concept_version_id": 16358,
        "concept_name": "opensafely/opioid-containing-medicines-rectal-excluding-drugs-for-substance-misuse/17fe0325",
        "coding_system": {
          "id": 11,
          "name": "BNF codes",
          "description": "BNF codes"
        },
        "phenotype_id": "PH3606",
        "phenotype_version_id": 8696,
        "phenotype_name": "Opioid-containing medicines (rectal - excluding drugs for substance misuse) - Pseudo BNF",
        "code_attribute_header": [],
        "codes": [
          {
            "code": "0407020C0AAAKAK",
            "description": "Codeine 5mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020C0AAALAL",
            "description": "Codeine 10mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020C0AAAMAM",
            "description": "Codeine 6mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020C0AAAQAQ",
            "description": "Codeine 15mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020C0AAASAS",
            "description": "Codeine 30mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020C0AABBBB",
            "description": "Codeine 20mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020C0AABCBC",
            "description": "Codeine 1mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020K0AACUCU",
            "description": "Diamorphine 5mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020P0AAABAB",
            "description": "Morphine hydrochloride 15mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020P0AAACAC",
            "description": "Morphine hydrochloride 30mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020P0AAAQAQ",
            "description": "Morphine hydrochloride 10mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020Q0AABJBJ",
            "description": "Morphine sulfate 5mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020Q0AABNBN",
            "description": "Morphine sulfate 60mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020Q0AABPBP",
            "description": "Morphine sulfate 100mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020Q0AABVBV",
            "description": "Morphine sulfate 50mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020Q0AACQCQ",
            "description": "Morphine sulfate 10mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020Q0AACRCR",
            "description": "Morphine sulfate 20mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020Q0AAEEEE",
            "description": "Morphine sulfate 2.5mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020Q0AAEPEP",
            "description": "Morphine sulfate 750mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020Q0AAGCGC",
            "description": "Morphine sulfate 30mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020Q0AAGDGD",
            "description": "Morphine sulfate 15mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020U0AAABAB",
            "description": "Pentazocine 50mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020U0BBACAB",
            "description": "Fortral 50mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020Z0AAAAAA",
            "description": "Oxycodone 30mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020Z0AAABAB",
            "description": "Oxycodone hydrochloride 60mg suppositories",
            "attributes": null
          },
          {
            "code": "0407020Z0BBAAAA",
            "description": "Proladone 30mg suppositories",
            "attributes": null
          }
        ]
      }
    ],
    "coding_system_release": "",
    "open_codelist_version_id": "17fe0325",
    "open_codelist_version_tag": "",
    "status": 1,
    "doi": "https://doi.org/10.48533/m7gj-9668",
    "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": 8696,
        "version_name": "Opioid-containing medicines (rectal - excluding drugs for substance misuse) - Pseudo BNF",
        "version_date": "2026-01-26T23:26:00.984591Z",
        "is_published": true,
        "is_latest": true
      }
    ]
  }
]