NHS Digital FHIR Implementation Guide (Retired - 2.1.50)

This guidance is under active development by NHS Digital and content may be added or updated on a regular basis.

NHSDigital-OperationOutcome

Conformance url
https://fhir.nhs.uk/StructureDefinition/NHSDigital-OperationOutcome

Conformance Rules



with OperationOutcome

idΣ0..1string
id0..1string
extensionI0..*Extension
versionIdΣ0..1id
lastUpdatedΣ1..1instant
sourceΣ0..1uri
profileΣ0..*canonical(StructureDefinition)
securityΣ0..*CodingBinding
tagΣ0..*Coding
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..*Resource
supportingInfoI0..*Extension(Reference(Resource))
modifierExtension?! I0..*Extension
id0..1string
extensionI0..*Extension
modifierExtensionΣ ?! I0..*Extension
severityS Σ1..1codeBinding
codeS Σ1..1codeBinding
id0..1string
extensionI0..*Extension
id0..1string
extensionI0..*Extension
systemΣ1..1uri
versionΣ0..1string
codeΣ1..1code
displayΣ0..1string
userSelectedΣ0..1boolean
textΣ0..1string
diagnosticsS Σ0..1string
locationS Σ0..*string
expressionS Σ0..*string

from OperationOutcome

idΣ0..1string
id0..1string
extensionI0..*Extension
versionIdΣ0..1id
lastUpdatedΣ1..1instant
sourceΣ0..1uri
profileΣ0..*canonical(StructureDefinition)
securityΣ0..*CodingBinding
tagΣ0..*Coding
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..*Resource
supportingInfoI0..*Extension(Reference(Resource))
modifierExtension?! I0..*Extension
id0..1string
extensionI0..*Extension
modifierExtensionΣ ?! I0..*Extension
severityS Σ1..1codeBinding
codeS Σ1..1codeBinding
id0..1string
extensionI0..*Extension
id0..1string
extensionI0..*Extension
systemΣ1..1uri
versionΣ0..1string
codeΣ1..1code
displayΣ0..1string
userSelectedΣ0..1boolean
textΣ0..1string
diagnosticsS Σ0..1string
locationS Σ0..*string
expressionS Σ0..*string

issue

field Mandatory Description
meta.lastUpdated Y UTC date and time stamp when the error occured
id Y uniqueRequestID - Internal Apigee messageID
severity Y code from IssueSeverity
code Y code from IssueType
details Not yet code from NHSDigital-OperationOutcome-Codes
diagnostics Additional diagnostic information about the issue. User readable version of the message. Include url's for further information or other information helpful for the user to understand the error.
location Use the JSON Pointer standard to describe the source of the error - e.g. parameter, or payload value.
expression FHIRPath of element(s) related to issue

Example 1

{
    "resourceType": "OperationOutcome",
    "id": "1a388581-dbbe-43e3-9054-f5976c0245e5",
    "meta": {
        "lastUpdated": "2021-04-21T16:58:00+00:00"
    },
    "issue":  [
        {
            "severity": "information",
            "code": "processing",
            "diagnostics": "This element does not match any known slice defined in the profile https://fhir.nhs.uk/StructureDefinition/NHSDigital-Patient",
            "location":  [
                "Patient.identifier[1]",
                "Line 1, Col 651"
            ]
        },
        {
            "severity": "error",
            "code": "processing",
            "details": {
                "coding":  [
                    {
                        "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode",
                        "code": "INVALID_VALUE",
                        "display": "Invalid value"
                    }
                ]
            },
            "diagnostics": "Patient.gender: minimum required = 1, but only found 0 (from https://fhir.nhs.uk/StructureDefinition/NHSDigital-Patient)",
            "location":  [
                "Patient",
                "Line 1, Col 37"
            ]
        }
    ]
}

Example 2

Command 'json' could not render: File was not found for 4a8617c7-a50c-4f83-b410-13d4cf3555a7
back to top