StructureDefinition OperationOutcome

The Genomics OperationOutcome is the same as provided within FHIR R4. The FHIR R4 OperationOutcome is provided below for completeness.

OperationOutcomes are expected for any create or update operations made on the server resulting in validation messages (or any create or update operations made within a transaction bundle). It is not expected that connecting systems would need to construct OperationOutcome resources or submit these to the server, though key elements within the resource are detailed here for receiving systems.

It is expected that all issue codes raised by the Genomic Medicine Service will fall under existing codes bound in the below resource. If further codes are needed, these will be promoted to UK Core for release in a future ballot/sprint.

Profile url FHIR Module Normative Status
http://hl7.org/fhir/StructureDefinition/OperationOutcome HL7 International trial-use

idΣ0..1string
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..*Resource
extensionI0..*Extension
modifierExtension?! I0..*Extension
id0..1string
extensionI0..*Extension
modifierExtensionΣ ?! I0..*Extension
severityΣ1..1codeBinding
codeΣ1..1codeBinding
detailsΣ0..1CodeableConcept
diagnosticsΣ0..1string
locationΣ0..*string
expressionΣ0..*string

Additional Guidance

issue

An issue element will be included within the OperationOutcome for each issue that needs to be communicated to the requesting system, e.g. errors, warnings or informational messages. Appropriate 'severity' and 'code' codes will be assigned to help categorization of an messages returned, using the standard HL7 bound ValueSets.

The diagnostics field will be used to present a human readable version of the message and location will be used to detail the location within the request payload that resulted in the associated issue/message.

If an error or warning is returned, the 'details' element will be populated with any validation specific messages. Details of the systems and codes used for these messages will be determined by the validation package used by the central order management broker (this is still to be determined at the time of publication).

"issue":[
            {
              "severity":"error",
              "code":"processing",
              "details":{
                "coding":[
                  {
                    "system": "http://terminology.hl7.org/CodeSystem/operation-outcome",
                    "code": "MSG_LOCAL_FAIL",
                    "display": "Unable to resolve local reference to resource Patient/Patient-MeirLieberman-Example"
                  }
                ]
              },
              "diagnostics": "Validation errors occurred during processing",
              "location": [
                  "Bundle.entry[1].resource.ofType(ServiceRequest)"
              ]
            }
          ]