Notice
- Important: This guidance is under active development by NHS England and content may be added or updated on a regular basis.
- This Implementation Guide is currently in Draft and SHOULD NOT be used for development or active implementation without express direction from the NHS England Genomics Unit.
Bundle-TransactionResponseError-Example
Example of a transaction-response bundle logging an error with a resource.
Bundle |
id : Bundle-TransactionResponseError-Example |
meta |
lastUpdated : 2024-01-30T12:01:24Z |
type : transaction-response |
entry |
response |
status : 422 Unprocessable Entity |
outcome |
meta |
lastUpdated : 2024-01-30T12:01:24Z |
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) |
entry |
response |
status : 200 OK |
lastModified : 2024-01-30T12:01:24Z |
outcome |
meta |
lastUpdated : 2024-01-30T12:01:24Z |
issue |
severity : information |
code : informational |
diagnostics : No issues detected during validation. Resource not created as request transaction contains an error |
location : Bundle.entry[1].resource.ofType(Patient) |
{ "resourceType": "Bundle", "id": "Bundle-TransactionResponseError-Example", "meta": { "lastUpdated": "2024-01-30T12:01:24Z" }, "type": "transaction-response", "entry": [ { "response": { "status": "422 Unprocessable Entity", "outcome": { "resourceType": "OperationOutcome", "meta": { "lastUpdated": "2024-01-30T12:01:24Z" }, "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)" ] } ] } } }, { "response": { "status": "200 OK", "lastModified": "2024-01-30T12:01:24Z", "outcome": { "resourceType": "OperationOutcome", "meta": { "lastUpdated": "2024-01-30T12:01:24Z" }, "issue": [ { "severity": "information", "code": "informational", "diagnostics": "No issues detected during validation. Resource not created as request transaction contains an error", "location": [ "Bundle.entry[1].resource.ofType(Patient)" ] } ] } } } ] }
<Bundle xmlns="http://hl7.org/fhir"> <id value="Bundle-TransactionResponseError-Example" /> <meta> <lastUpdated value="2024-01-30T12:01:24Z" /> </meta> <type value="transaction-response" /> <entry> <response> <status value="422 Unprocessable Entity" /> <outcome> <OperationOutcome> <meta> <lastUpdated value="2024-01-30T12:01:24Z" /> </meta> <issue> <severity value="error" /> <code value="processing" /> <details> <coding> <system value="http://terminology.hl7.org/CodeSystem/operation-outcome" /> <code value="MSG_LOCAL_FAIL" /> <display value="Unable to resolve local reference to resource Patient/Patient-MeirLieberman-Example" /> </coding> </details> <diagnostics value="Validation errors occurred during processing" /> <location value="Bundle.entry[1].resource.ofType(ServiceRequest)" /> </issue> </OperationOutcome> </outcome> </response> </entry> <entry> <response> <status value="200 OK" /> <lastModified value="2024-01-30T12:01:24Z" /> <outcome> <OperationOutcome> <meta> <lastUpdated value="2024-01-30T12:01:24Z" /> </meta> <issue> <severity value="information" /> <code value="informational" /> <diagnostics value="No issues detected during validation. Resource not created as request transaction contains an error" /> <location value="Bundle.entry[1].resource.ofType(Patient)" /> </issue> </OperationOutcome> </outcome> </response> </entry> </Bundle>