Error 403 - Provided ODS code has no pointers within requesting app

What does this error mean?

I’m currently working on the sandbox environment, my example is currently

p.s. I need to work the conversion from our DocumentReference to NRL’s - I suspect the error may related to DocumentReference.context.related but I’ve tried it with and without ASID entry.

{
  "resourceType": "DocumentReference",
  "author": [
    {
      "identifier": {
        "system": "https://fhir.nhs.uk/Id/ods-organization-code",
        "value": "699X0"
      }
    }
  ],
  "content": [
    {
      "attachment": {
        "contentType": "application/pdf",
        "url": "urn:uuid:c86ca7ef-ee7b-4060-9c4e-b9e82c3a3c7f"
      }
    }
  ],
  "context": {
    "related": [
      {
        "reference": "urn:uuid:14bd791e-a6cc-4eb1-b09f-def850805fae",
        "type": "ServiceRequest"
      }
    ]
  },
  "custodian": {
    "identifier": {
      "system": "https://fhir.nhs.uk/Id/ods-organization-code",
      "value": "699X0"
    },
    "type": "Organization"
  },
  "date": "2025-12-06T13:37:35+00:00",
  "id": "810",
  "identifier": [
    {
      "assigner": {
        "identifier": {
          "system": "https://fhir.nhs.uk/Id/ods-organization-code",
          "value": "699X0"
        }
      },
      "system": "https://fhir.nwgenomics.nhs.uk/Id/ResourceIdentifier",
      "value": "699X0-T25-02E6-CCP19v1_R112-IGENE"
    }
  ],
  "status": "current",
  "subject": {
    "identifier": {
      "system": "https://fhir.nhs.uk/Id/nhs-number",
      "type": {
        "coding": [
          {
            "code": "NH",
            "system": "http://terminology.hl7.org/CodeSystem/v2-0203"
          }
        ]
      },
      "value": "9999999522"
    },
    "reference": "Patient/805"
  },
  "type": {
    "coding": [
      {
        "code": "1054161000000101",
        "display": "Genetic report",
        "system": "http://snomed.info/sct"
      }
    ]
  }
}

Do you have a FHIR profile e.g. DocumentReference - NHS North West Genomics v0.1.0 I can use to test our payload?

Hi Kevin,

Please find our FHIR profile here: NRLF/resources/fhir/NRLF-DocumentReference.json at develop · NHSDigital/NRLF

This directory contains other useful information like our value sets.

You are getting this error as the organisation code you are using (699X0) doesn’t have the required permissions. If you use the ODS code provided in our examples (Y05868) you will be able to interact with all pointer types in the sandbox environment.

2 Likes

Many thanks, that’s working.