Profiles & Operations Index > Profile: OperationOutcome
Profile: OperationOutcome
Simplifier project page: OperationOutcome
Derived from: OperationOutcome (R4)
Canonical_URL | Profile_Status | Profile_Version | FHIR_Version |
---|---|---|---|
http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-OperationOutcome | active | 4.0.1 | 4.0.1 |
Formal Views of Profile Content
Description of Profiles, Differentials, Snapshots and how the different presentations work
Differential View
OperationOutcome | S I | OperationOutcome | |
id | S Σ | 0..1 | System.String |
meta | S Σ | 1..1 | Meta |
versionId | Σ | 0..1 | id |
lastUpdated | Σ | 0..1 | instant |
source | S Σ | 0..1 | uri |
profile | S Σ | 1..* | canonical(StructureDefinition) |
security | Σ | 0..* | CodingBinding |
tag | Σ | 0..* | Coding |
issue | S Σ | 1..* | BackboneElement |
severity | S Σ | 1..1 | codeBinding |
code | S Σ | 1..1 | codeBinding |
details | S Σ | 0..1 | CodeableConcept |
coding | S Σ | 0..1 | Coding |
system | S Σ | 0..1 | uri |
version | Σ | 0..1 | string |
code | S Σ | 0..1 | code |
display | S Σ | 0..1 | string |
userSelected | Σ | 0..1 | boolean |
text | S Σ | 0..1 | string |
diagnostics | S Σ | 0..1 | string |
location | Σ | 0..* | string |
expression | S Σ | 0..* | string |
Hybrid View
OperationOutcome | S I | OperationOutcome | |
id | S Σ | 0..1 | System.String |
meta | S Σ | 1..1 | Meta |
versionId | Σ | 0..1 | id |
lastUpdated | Σ | 0..1 | instant |
source | S Σ | 0..1 | uri |
profile | S Σ | 1..* | canonical(StructureDefinition) |
security | Σ | 0..* | CodingBinding |
tag | Σ | 0..* | Coding |
issue | S Σ | 1..* | BackboneElement |
severity | S Σ | 1..1 | codeBinding |
code | S Σ | 1..1 | codeBinding |
details | S Σ | 0..1 | CodeableConcept |
coding | S Σ | 0..1 | Coding |
system | S Σ | 0..1 | uri |
version | Σ | 0..1 | string |
code | S Σ | 0..1 | code |
display | S Σ | 0..1 | string |
userSelected | Σ | 0..1 | boolean |
text | S Σ | 0..1 | string |
diagnostics | S Σ | 0..1 | string |
location | Σ | 0..* | string |
expression | S Σ | 0..* | string |
Snapshot View
OperationOutcome | S I | OperationOutcome | |
id | S Σ | 0..1 | System.String |
meta | S Σ | 1..1 | Meta |
versionId | Σ | 0..1 | id |
lastUpdated | Σ | 0..1 | instant |
source | S Σ | 0..1 | uri |
profile | S Σ | 1..* | canonical(StructureDefinition) |
security | Σ | 0..* | CodingBinding |
tag | Σ | 0..* | Coding |
issue | S Σ | 1..* | BackboneElement |
severity | S Σ | 1..1 | codeBinding |
code | S Σ | 1..1 | codeBinding |
details | S Σ | 0..1 | CodeableConcept |
coding | S Σ | 0..1 | Coding |
system | S Σ | 0..1 | uri |
version | Σ | 0..1 | string |
code | S Σ | 0..1 | code |
display | S Σ | 0..1 | string |
userSelected | Σ | 0..1 | boolean |
text | S Σ | 0..1 | string |
diagnostics | S Σ | 0..1 | string |
location | Σ | 0..* | string |
expression | S Σ | 0..* | string |
Table View
OperationOutcome | .. | |
OperationOutcome.id | .. | |
OperationOutcome.meta | 1.. | |
OperationOutcome.meta.source | .. | |
OperationOutcome.meta.profile | 1.. | |
OperationOutcome.issue | .. | |
OperationOutcome.issue.severity | .. | |
OperationOutcome.issue.code | .. | |
OperationOutcome.issue.details | .. | |
OperationOutcome.issue.details.coding | ..1 | |
OperationOutcome.issue.details.coding.system | .. | |
OperationOutcome.issue.details.coding.code | .. | |
OperationOutcome.issue.details.coding.display | .. | |
OperationOutcome.issue.details.text | .. | |
OperationOutcome.issue.diagnostics | .. | |
OperationOutcome.issue.expression | .. |
JSON View
{ "resourceType": "StructureDefinition", "id": "54492531-8f28-4f33-b716-27b4120275bb", "meta": { "lastUpdated": "2023-12-14T20:19:49.8011614+00:00" }, "text": { "status": "empty", --- We have skipped the narrative for better readability of the resource --- }, "url": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-OperationOutcome", "version": "4.0.1", "name": "OperationOutcome", "title": "OperationOutcome", "status": "active", "date": "2021-11-24T18:55:56.0619708Z", "description": "Operation Outcomes are sets of error, warning and information messages that provide detailed information about the outcome of some attempted system operation.", "fhirVersion": "4.0.1", "kind": "resource", "abstract": false, "type": "OperationOutcome", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/OperationOutcome", "derivation": "constraint", "differential": { "element": [ { "id": "OperationOutcome", "path": "OperationOutcome", "mustSupport": true }, { "id": "OperationOutcome.id", "path": "OperationOutcome.id", "mustSupport": true }, { "id": "OperationOutcome.meta", "path": "OperationOutcome.meta", "min": 1, "mustSupport": true }, { "id": "OperationOutcome.meta.source", "path": "OperationOutcome.meta.source", "mustSupport": true }, { "id": "OperationOutcome.meta.profile", "path": "OperationOutcome.meta.profile", "min": 1, "mustSupport": true }, { "id": "OperationOutcome.issue", "path": "OperationOutcome.issue", "mustSupport": true }, { "id": "OperationOutcome.issue.severity", "path": "OperationOutcome.issue.severity", "mustSupport": true, "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/issue-severity|4.0.0" } }, { "id": "OperationOutcome.issue.code", "path": "OperationOutcome.issue.code", "mustSupport": true, "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/issue-type|4.0.0" } }, { "id": "OperationOutcome.issue.details", "path": "OperationOutcome.issue.details", "mustSupport": true }, { "id": "OperationOutcome.issue.details.coding", "path": "OperationOutcome.issue.details.coding", "max": "1", "mustSupport": true }, { "id": "OperationOutcome.issue.details.coding.system", "path": "OperationOutcome.issue.details.coding.system", "mustSupport": true }, { "id": "OperationOutcome.issue.details.coding.code", "path": "OperationOutcome.issue.details.coding.code", "mustSupport": true }, { "id": "OperationOutcome.issue.details.coding.display", "path": "OperationOutcome.issue.details.coding.display", "mustSupport": true }, { "id": "OperationOutcome.issue.details.text", "path": "OperationOutcome.issue.details.text", "mustSupport": true }, { "id": "OperationOutcome.issue.diagnostics", "path": "OperationOutcome.issue.diagnostics", "mustSupport": true }, { "id": "OperationOutcome.issue.expression", "path": "OperationOutcome.issue.expression", "mustSupport": true } ] } }
Note:
Operation Outcomes are sets of error, warning and information messages that provide detailed information about the outcome of some attempted system operation. They are provided as a direct system response, or component of one, where they provide information about the outcome of the operation.
OperationOutcomes are used in the following circumstances:
- When an RESTful operation fails
- As the response on a validation operation, to provide information about the outcomes
- As part of a message response, usually when the message has not been processed correctly
Using Operation Outcome Resources
On the RESTful interface, operation outcome resources are only relevant when a level of computable detail is required that is more granular than that provided by the HTTP response codes. This granularity could include:
- more detail about the location of an issue
- the ability to identify multiple distinct issues
- provision of finer error codes that connect to known business failure states
Consent Indicator in OperationOutcome
The OperationOutcome resource may be included in the DHDR response bundle, in response to a MedicationDispense search request. This may indicate that MedicationDispense records were not included due to a patient privacy consent directive. The OperationOutcome resource will have the following values:
- severity = warning
- code = suppressed
OperationOutcome.issue.code ValueSet for a consent directive
Code | Display | Definition |
---|---|---|
suppressed | Information Suppressed | Some information was not or may not have been returned due to business rules, consent or privacy rules, or access permission constraints. This information may be accessible through alternate processes. |
Temporary Consent Unblock Indicator in OperationOutcome
The OperationOutcome resource may be included in the DHDR response bundle, in response to a MedicationDispense search request. This may indicate that there is a patient privacy consent directive, but MedicationDispense records were included due to a patient's temporary unblock directive. The OperationOutcome resource will have the following values:
- severity = informational
- code = information
OperationOutcome ValueSet.issue.code for a temporaily unblocked consent directive
Code | Display | Definition |
---|---|---|
information | Informational Note | Patient has temporarily unblocked access to view and use dispense information. |
Reporting Errors in the HTTP Headers
Server may also need to report errors in the HTTP headers - especially query parameters when processing searches. Errors are reported using a case sensitive location that has two parts, a fixed "http" and the header or query parameter name separated by a ".". Some examples:
HTTP Header Parameters.
Location | Description |
---|---|
http.name:exact | A reference to the search parameter "name" with the modifier ":exact" |
http.Authorization | A reference to the Authorization header - perhaps to indicate that it is missing, and some form of authentication is required. |