This page is part of the Specialty Medication Enrollment (v2.0.0-ballot: STU2 Ballot 1) based on FHIR R4. . For a full list of available versions, see the Directory of published versions
If a Data Source system…
is unable to execute an individual search included in a Query message
or
encounters a non-fatal exception when executing an individual search
the system SHALL include a searchset Bundle entry containing the search string and an OperationOutcome describing the issue as a query-result
parameter in the Query Response message. The search.mode
of this entry SHALL be set to the value, outcome
.
{ "fullUrl" : "http://example.org/MyEHR/Bundle/987654", "resource" : { "resourceType" : "Bundle", "id" : "987654", "meta" : { "profile" : [ "http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-search-result" ] }, "type" : "searchset", "timestamp" : "2020-03-11T13:10:17-05:00", "total" : 0, "link" : [ { "relation" : "self", "url" : "AllergyIn?patient=patientEHR" } ], "entry" : [ { "fullUrl" : "http://example.org/MyEHR/OperationOutcome/100", "resource" : { "resourceType" : "OperationOutcome", "id" : "100", "issue" : [ { "severity" : "error", "code" : "processing", "diagnostics" : "Unknown resource type 'AllergyIn'" } ] }, "search" : { "mode" : "outcome" } } ] } }
Full Query Response example containing a failed search
When a Data Source system encounters an error that prevents it from responding to a Query message with a Query Response, it SHALL respond by returning a Error message containing an OperationOutcome resource that describes the nature of the failure.
The OperationOutcome:
OperationOutcome.issue.severity
field.OperationOutcome.issue.code
element.OperationOutcome.diagnostics
propertyOperationOutcome.issue.details.coding.display
field.OperationOutcome.issue.details.coding.code
value.