{ "description": null, "_filename": "NHSDigital-OperationOutcome.StructureDefinition.json", "package_name": "uk.nhsdigital.r4.test", "date": "2020-08-05", "derivation": "constraint", "publisher": "NHS Digital", "fhirVersion": "4.0.1", "name": "NHSDigitalOperationOutcome", "abstract": false, "type": "OperationOutcome", "experimental": null, "resourceType": "StructureDefinition", "title": null, "package_version": "2.8.7-prerelease", "status": "draft", "id": "2cd2e611-ea5c-40ef-89a6-22df34203357", "kind": "resource", "url": "https://fhir.nhs.uk/StructureDefinition/NHSDigital-OperationOutcome", "version": "1.1.1", "differential": { "element": [ { "id": "OperationOutcome.id", "path": "OperationOutcome.id", "short": "uniqueRequestID", "definition": "Internal Apigee messageID" }, { "id": "OperationOutcome.meta", "min": 1, "path": "OperationOutcome.meta", "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.\r\n\r\n```json\r\n \"meta\" : {\r\n \"lastUpdated\": \"2021-04-21T16:58:00+00:00\"\r\n }\r\n```", "mustSupport": true }, { "id": "OperationOutcome.meta.lastUpdated", "min": 1, "path": "OperationOutcome.meta.lastUpdated" }, { "id": "OperationOutcome.extension", "min": 0, "path": "OperationOutcome.extension", "slicing": { "rules": "open", "discriminator": [ { "path": "url", "type": "value" } ] } }, { "id": "OperationOutcome.extension:supportingInfo", "min": 0, "path": "OperationOutcome.extension", "type": [ { "code": "Extension", "profile": [ "https://fhir.nhs.uk/StructureDefinition/Extension-Spine-supportingInfo" ] } ], "sliceName": "supportingInfo", "definition": "Information relevant to this OperationOutcome. For EPS release rejections this may be the pharmacy which is currently owns the prescription task/order." }, { "id": "OperationOutcome.issue", "path": "OperationOutcome.issue", "constraint": [ { "key": "nhsd-errrorcode", "human": "An NHS Digital error or warning code is required", "source": "https://fhir.nhs.uk/StructureDefinition/NHSDigital-OperationOutcome", "severity": "error", "expression": "(severity = 'information') or ((severity != 'information') and details.empty().not())" } ], "mustSupport": true }, { "id": "OperationOutcome.issue.severity", "path": "OperationOutcome.issue.severity", "definition": "Indicates whether the issue indicates a variation from successful processing.\r\n\r\n```json\r\n \"severity\": \"error\",\r\n```", "mustSupport": true }, { "id": "OperationOutcome.issue.code", "path": "OperationOutcome.issue.code", "definition": "Describes the type of the issue. The system that creates an OperationOutcome SHALL choose the most applicable code from the IssueType value set, and may additional provide its own code for the error in the details element.\r\n\r\n```json\r\n \"code\": \"processing\",\r\n```", "mustSupport": true }, { "id": "OperationOutcome.issue.details", "path": "OperationOutcome.issue.details", "binding": { "strength": "preferred", "valueSet": "https://fhir.nhs.uk/ValueSet/NHSDigital-OperationOutcome-Codes" }, "definition": "Additional details about the error. This may be a text description of the error or a system code that identifies the error.\r\n\r\n```json\r\n\"details\": {\r\n \"coding\": [\r\n {\r\n \"system\": \"https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode\",\r\n \"code\": \"INVALID_VALUE\",\r\n \"display\": \"Invalid value\"\r\n }\r\n ]\r\n }\r\n```", "mustSupport": true }, { "id": "OperationOutcome.issue.details.coding", "max": "1", "min": 1, "path": "OperationOutcome.issue.details.coding", "binding": { "strength": "extensible", "valueSet": "https://fhir.nhs.uk/ValueSet/NHSDigital-OperationOutcome-Codes" }, "mustSupport": true }, { "id": "OperationOutcome.issue.details.coding.system", "min": 1, "path": "OperationOutcome.issue.details.coding.system" }, { "id": "OperationOutcome.issue.details.coding.code", "min": 1, "path": "OperationOutcome.issue.details.coding.code" }, { "id": "OperationOutcome.issue.diagnostics", "path": "OperationOutcome.issue.diagnostics", "definition": "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.", "mustSupport": true }, { "id": "OperationOutcome.issue.location", "path": "OperationOutcome.issue.location", "definition": "Use the JSON Pointer standard to describe the source of the error - e.g. parameter, or payload value.\r\n\r\n```json\r\n\"location\": [\r\n \"Patient\",\r\n \"Line 1, Col 37\"\r\n ]```", "mustSupport": true }, { "id": "OperationOutcome.issue.expression", "path": "OperationOutcome.issue.expression", "definition": "FHIRPath of element(s) related to issue", "mustSupport": true } ] }, "baseDefinition": "https://fhir.hl7.org.uk/StructureDefinition/UKCore-OperationOutcome" }