FHIR Artifacts > Structure Definition: OperationOutcome Profile
Structure Definition: OperationOutcome Profile
Canonical URL:http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-OperationOutcome
Simplifier project page: OperationOutcome
Derived from: OperationOutcome (R4)
Formal Views of Profile Content
Description of Profiles, Differentials, Snapshots and how the different presentations work
Differential View
OperationOutcome | I | OperationOutcome | There are no (further) constraints on this element Element IdOperationOutcome Information about the success/failure of an action DefinitionA collection of error, warning, or information messages that result from a system action. Can result from the failure of a REST call or be part of the response message returned from a request message.
| |
meta | S Σ | 1..1 | Meta | There are no (further) constraints on this element Element IdOperationOutcome.meta Metadata about the resource DefinitionThe 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.
|
versionId | Σ | 0..1 | id | There are no (further) constraints on this element Element IdOperationOutcome.meta.versionId Version specific identifier DefinitionThe version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted. The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.
|
lastUpdated | Σ | 0..1 | instant | There are no (further) constraints on this element Element IdOperationOutcome.meta.lastUpdated When the resource version last changed DefinitionWhen the resource last changed - e.g. when the version changed. This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a read interaction.
|
source | Σ | 0..1 | uri | There are no (further) constraints on this element Element IdOperationOutcome.meta.source Identifies where the resource comes from DefinitionA uri that identifies the source system of the resource. This provides a minimal amount of Provenance information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc. In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.
|
profile | S Σ | 1..* | canonical(StructureDefinition) | Element IdOperationOutcome.meta.profile Profiles this resource claims to conform to DefinitionA list of profiles (references to StructureDefinition resources) that this resource claims to conform to. The URL is a reference to StructureDefinition.url.
|
security | Σ | 0..* | CodingBinding | There are no (further) constraints on this element Element IdOperationOutcome.meta.security Security Labels applied to this resource DefinitionSecurity labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure. The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored. Security Labels from the Healthcare Privacy and Security Classification System. All Security Labels (extensible)Constraints
|
tag | Σ | 0..* | Coding | There are no (further) constraints on this element Element IdOperationOutcome.meta.tag Tags applied to this resource DefinitionTags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource. The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored. Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones". CommonTags (example)Constraints
|
issue | S Σ | 1..* | BackboneElement | There are no (further) constraints on this element Element IdOperationOutcome.issue A single issue associated with the action DefinitionAn error, warning, or information message that results from a system action.
|
severity | S Σ | 1..1 | codeBinding | There are no (further) constraints on this element Element IdOperationOutcome.issue.severity fatal | error | warning | information DefinitionIndicates whether the issue indicates a variation from successful processing. Indicates how relevant the issue is to the overall success of the action. This is labeled as "Is Modifier" because applications should not confuse hints and warnings with errors. How the issue affects the success of the action. IssueSeverity (required)Constraints
|
code | S Σ | 1..1 | codeBinding | Element IdOperationOutcome.issue.code Error or warning code DefinitionDescribes 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. Expresses the issue in a human and computer-friendly way, allowing the requesting system to behave differently based on the type of issue. The required element provides a base level of computable interoperability across all systems for processing an outcome, allowing systems to respond appropriately regardless of the internal system error codes returned. Note that FHIR strings SHALL NOT exceed 1MB in size A code that describes the type of issue. IssueType (required)Constraints
|
details | S Σ | 0..1 | CodeableConcept | There are no (further) constraints on this element Element IdOperationOutcome.issue.details Additional details about the error DefinitionAdditional details about the error. This may be a text description of the error or a system code that identifies the error. A human readable description of the error issue SHOULD be placed in details.text. A code that provides details as the exact issue. OperationOutcomeCodes (example)Constraints
|
coding | S Σ | 0..* | Coding | There are no (further) constraints on this element Element IdOperationOutcome.issue.details.coding Code defined by a terminology system DefinitionA reference to a code defined by a terminology system. Allows for alternative encodings within a code system, and translations to other code systems. Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.
|
system | S Σ | 0..1 | uri | There are no (further) constraints on this element Element IdOperationOutcome.issue.details.coding.system Identity of the terminology system DefinitionThe identification of the code system that defines the meaning of the symbol in the code. Need to be unambiguous about the source of the definition of the symbol. The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.
|
version | Σ | 0..1 | string | There are no (further) constraints on this element Element IdOperationOutcome.issue.details.coding.version Version of the system - if relevant DefinitionThe version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged. Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.
|
code | S Σ | 0..1 | code | There are no (further) constraints on this element Element IdOperationOutcome.issue.details.coding.code Symbol in syntax defined by the system DefinitionA symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination). Need to refer to a particular code in the system. Note that FHIR strings SHALL NOT exceed 1MB in size
|
display | S Σ | 0..1 | string | There are no (further) constraints on this element Element IdOperationOutcome.issue.details.coding.display Representation defined by the system DefinitionA representation of the meaning of the code in the system, following the rules of the system. Need to be able to carry a human-readable meaning of the code for readers that do not know the system. Note that FHIR strings SHALL NOT exceed 1MB in size
|
userSelected | Σ | 0..1 | boolean | There are no (further) constraints on this element Element IdOperationOutcome.issue.details.coding.userSelected If this coding was chosen directly by the user DefinitionIndicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays). This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing. Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.
|
text | S Σ | 0..1 | string | There are no (further) constraints on this element Element IdOperationOutcome.issue.details.text Plain text representation of the concept DefinitionA human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user. The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source. Very often the text is the same as a displayName of one of the codings.
|
diagnostics | S Σ | 0..1 | string | There are no (further) constraints on this element Element IdOperationOutcome.issue.diagnostics Additional diagnostic information about the issue DefinitionAdditional diagnostic information about the issue. This may be a description of how a value is erroneous, a stack dump to help trace the issue or other troubleshooting information.
|
location | S Σ | 0..* | string | There are no (further) constraints on this element Element IdOperationOutcome.issue.location Deprecated: Path of element(s) related to issue DefinitionThis element is deprecated because it is XML specific. It is replaced by issue.expression, which is format independent, and simpler to parse. For resource issues, this will be a simple XPath limited to element names, repetition indicators and the default child accessor that identifies one of the elements in the resource that caused this issue to be raised. For HTTP errors, will be "http." + the parameter name. Allows systems to highlight or otherwise guide users to elements implicated in issues to allow them to be fixed more easily. The root of the XPath is the resource or bundle that generated OperationOutcome. Each XPath SHALL resolve to a single node. This element is deprecated, and is being replaced by expression.
|
expression | S Σ | 0..* | string | There are no (further) constraints on this element Element IdOperationOutcome.issue.expression FHIRPath of element(s) related to issue DefinitionA simple subset of FHIRPath limited to element names, repetition indicators and the default child accessor that identifies one of the elements in the resource that caused this issue to be raised. Allows systems to highlight or otherwise guide users to elements implicated in issues to allow them to be fixed more easily. The root of the FHIRPath is the resource or bundle that generated OperationOutcome. Each FHIRPath SHALL resolve to a single node.
|
Hybrid View
OperationOutcome | I | OperationOutcome | There are no (further) constraints on this element Element IdOperationOutcome Information about the success/failure of an action DefinitionA collection of error, warning, or information messages that result from a system action. Can result from the failure of a REST call or be part of the response message returned from a request message.
| |
meta | S Σ | 1..1 | Meta | There are no (further) constraints on this element Element IdOperationOutcome.meta Metadata about the resource DefinitionThe 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.
|
versionId | Σ | 0..1 | id | There are no (further) constraints on this element Element IdOperationOutcome.meta.versionId Version specific identifier DefinitionThe version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted. The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.
|
lastUpdated | Σ | 0..1 | instant | There are no (further) constraints on this element Element IdOperationOutcome.meta.lastUpdated When the resource version last changed DefinitionWhen the resource last changed - e.g. when the version changed. This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a read interaction.
|
source | Σ | 0..1 | uri | There are no (further) constraints on this element Element IdOperationOutcome.meta.source Identifies where the resource comes from DefinitionA uri that identifies the source system of the resource. This provides a minimal amount of Provenance information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc. In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.
|
profile | S Σ | 1..* | canonical(StructureDefinition) | Element IdOperationOutcome.meta.profile Profiles this resource claims to conform to DefinitionA list of profiles (references to StructureDefinition resources) that this resource claims to conform to. The URL is a reference to StructureDefinition.url.
|
security | Σ | 0..* | CodingBinding | There are no (further) constraints on this element Element IdOperationOutcome.meta.security Security Labels applied to this resource DefinitionSecurity labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure. The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored. Security Labels from the Healthcare Privacy and Security Classification System. All Security Labels (extensible)Constraints
|
tag | Σ | 0..* | Coding | There are no (further) constraints on this element Element IdOperationOutcome.meta.tag Tags applied to this resource DefinitionTags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource. The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored. Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones". CommonTags (example)Constraints
|
issue | S Σ | 1..* | BackboneElement | There are no (further) constraints on this element Element IdOperationOutcome.issue A single issue associated with the action DefinitionAn error, warning, or information message that results from a system action.
|
severity | S Σ | 1..1 | codeBinding | There are no (further) constraints on this element Element IdOperationOutcome.issue.severity fatal | error | warning | information DefinitionIndicates whether the issue indicates a variation from successful processing. Indicates how relevant the issue is to the overall success of the action. This is labeled as "Is Modifier" because applications should not confuse hints and warnings with errors. How the issue affects the success of the action. IssueSeverity (required)Constraints
|
code | S Σ | 1..1 | codeBinding | Element IdOperationOutcome.issue.code Error or warning code DefinitionDescribes 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. Expresses the issue in a human and computer-friendly way, allowing the requesting system to behave differently based on the type of issue. The required element provides a base level of computable interoperability across all systems for processing an outcome, allowing systems to respond appropriately regardless of the internal system error codes returned. Note that FHIR strings SHALL NOT exceed 1MB in size A code that describes the type of issue. IssueType (required)Constraints
|
details | S Σ | 0..1 | CodeableConcept | There are no (further) constraints on this element Element IdOperationOutcome.issue.details Additional details about the error DefinitionAdditional details about the error. This may be a text description of the error or a system code that identifies the error. A human readable description of the error issue SHOULD be placed in details.text. A code that provides details as the exact issue. OperationOutcomeCodes (example)Constraints
|
coding | S Σ | 0..* | Coding | There are no (further) constraints on this element Element IdOperationOutcome.issue.details.coding Code defined by a terminology system DefinitionA reference to a code defined by a terminology system. Allows for alternative encodings within a code system, and translations to other code systems. Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.
|
system | S Σ | 0..1 | uri | There are no (further) constraints on this element Element IdOperationOutcome.issue.details.coding.system Identity of the terminology system DefinitionThe identification of the code system that defines the meaning of the symbol in the code. Need to be unambiguous about the source of the definition of the symbol. The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.
|
version | Σ | 0..1 | string | There are no (further) constraints on this element Element IdOperationOutcome.issue.details.coding.version Version of the system - if relevant DefinitionThe version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged. Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.
|
code | S Σ | 0..1 | code | There are no (further) constraints on this element Element IdOperationOutcome.issue.details.coding.code Symbol in syntax defined by the system DefinitionA symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination). Need to refer to a particular code in the system. Note that FHIR strings SHALL NOT exceed 1MB in size
|
display | S Σ | 0..1 | string | There are no (further) constraints on this element Element IdOperationOutcome.issue.details.coding.display Representation defined by the system DefinitionA representation of the meaning of the code in the system, following the rules of the system. Need to be able to carry a human-readable meaning of the code for readers that do not know the system. Note that FHIR strings SHALL NOT exceed 1MB in size
|
userSelected | Σ | 0..1 | boolean | There are no (further) constraints on this element Element IdOperationOutcome.issue.details.coding.userSelected If this coding was chosen directly by the user DefinitionIndicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays). This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing. Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.
|
text | S Σ | 0..1 | string | There are no (further) constraints on this element Element IdOperationOutcome.issue.details.text Plain text representation of the concept DefinitionA human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user. The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source. Very often the text is the same as a displayName of one of the codings.
|
diagnostics | S Σ | 0..1 | string | There are no (further) constraints on this element Element IdOperationOutcome.issue.diagnostics Additional diagnostic information about the issue DefinitionAdditional diagnostic information about the issue. This may be a description of how a value is erroneous, a stack dump to help trace the issue or other troubleshooting information.
|
location | S Σ | 0..* | string | There are no (further) constraints on this element Element IdOperationOutcome.issue.location Deprecated: Path of element(s) related to issue DefinitionThis element is deprecated because it is XML specific. It is replaced by issue.expression, which is format independent, and simpler to parse. For resource issues, this will be a simple XPath limited to element names, repetition indicators and the default child accessor that identifies one of the elements in the resource that caused this issue to be raised. For HTTP errors, will be "http." + the parameter name. Allows systems to highlight or otherwise guide users to elements implicated in issues to allow them to be fixed more easily. The root of the XPath is the resource or bundle that generated OperationOutcome. Each XPath SHALL resolve to a single node. This element is deprecated, and is being replaced by expression.
|
expression | S Σ | 0..* | string | There are no (further) constraints on this element Element IdOperationOutcome.issue.expression FHIRPath of element(s) related to issue DefinitionA simple subset of FHIRPath limited to element names, repetition indicators and the default child accessor that identifies one of the elements in the resource that caused this issue to be raised. Allows systems to highlight or otherwise guide users to elements implicated in issues to allow them to be fixed more easily. The root of the FHIRPath is the resource or bundle that generated OperationOutcome. Each FHIRPath SHALL resolve to a single node.
|
Snapshot View
OperationOutcome | I | OperationOutcome | There are no (further) constraints on this element Element IdOperationOutcome Information about the success/failure of an action DefinitionA collection of error, warning, or information messages that result from a system action. Can result from the failure of a REST call or be part of the response message returned from a request message.
| |
meta | S Σ | 1..1 | Meta | There are no (further) constraints on this element Element IdOperationOutcome.meta Metadata about the resource DefinitionThe 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.
|
versionId | Σ | 0..1 | id | There are no (further) constraints on this element Element IdOperationOutcome.meta.versionId Version specific identifier DefinitionThe version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted. The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.
|
lastUpdated | Σ | 0..1 | instant | There are no (further) constraints on this element Element IdOperationOutcome.meta.lastUpdated When the resource version last changed DefinitionWhen the resource last changed - e.g. when the version changed. This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a read interaction.
|
source | Σ | 0..1 | uri | There are no (further) constraints on this element Element IdOperationOutcome.meta.source Identifies where the resource comes from DefinitionA uri that identifies the source system of the resource. This provides a minimal amount of Provenance information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc. In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.
|
profile | S Σ | 1..* | canonical(StructureDefinition) | Element IdOperationOutcome.meta.profile Profiles this resource claims to conform to DefinitionA list of profiles (references to StructureDefinition resources) that this resource claims to conform to. The URL is a reference to StructureDefinition.url.
|
security | Σ | 0..* | CodingBinding | There are no (further) constraints on this element Element IdOperationOutcome.meta.security Security Labels applied to this resource DefinitionSecurity labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure. The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored. Security Labels from the Healthcare Privacy and Security Classification System. All Security Labels (extensible)Constraints
|
tag | Σ | 0..* | Coding | There are no (further) constraints on this element Element IdOperationOutcome.meta.tag Tags applied to this resource DefinitionTags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource. The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored. Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones". CommonTags (example)Constraints
|
issue | S Σ | 1..* | BackboneElement | There are no (further) constraints on this element Element IdOperationOutcome.issue A single issue associated with the action DefinitionAn error, warning, or information message that results from a system action.
|
severity | S Σ | 1..1 | codeBinding | There are no (further) constraints on this element Element IdOperationOutcome.issue.severity fatal | error | warning | information DefinitionIndicates whether the issue indicates a variation from successful processing. Indicates how relevant the issue is to the overall success of the action. This is labeled as "Is Modifier" because applications should not confuse hints and warnings with errors. How the issue affects the success of the action. IssueSeverity (required)Constraints
|
code | S Σ | 1..1 | codeBinding | Element IdOperationOutcome.issue.code Error or warning code DefinitionDescribes 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. Expresses the issue in a human and computer-friendly way, allowing the requesting system to behave differently based on the type of issue. The required element provides a base level of computable interoperability across all systems for processing an outcome, allowing systems to respond appropriately regardless of the internal system error codes returned. Note that FHIR strings SHALL NOT exceed 1MB in size A code that describes the type of issue. IssueType (required)Constraints
|
details | S Σ | 0..1 | CodeableConcept | There are no (further) constraints on this element Element IdOperationOutcome.issue.details Additional details about the error DefinitionAdditional details about the error. This may be a text description of the error or a system code that identifies the error. A human readable description of the error issue SHOULD be placed in details.text. A code that provides details as the exact issue. OperationOutcomeCodes (example)Constraints
|
coding | S Σ | 0..* | Coding | There are no (further) constraints on this element Element IdOperationOutcome.issue.details.coding Code defined by a terminology system DefinitionA reference to a code defined by a terminology system. Allows for alternative encodings within a code system, and translations to other code systems. Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.
|
system | S Σ | 0..1 | uri | There are no (further) constraints on this element Element IdOperationOutcome.issue.details.coding.system Identity of the terminology system DefinitionThe identification of the code system that defines the meaning of the symbol in the code. Need to be unambiguous about the source of the definition of the symbol. The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.
|
version | Σ | 0..1 | string | There are no (further) constraints on this element Element IdOperationOutcome.issue.details.coding.version Version of the system - if relevant DefinitionThe version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged. Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.
|
code | S Σ | 0..1 | code | There are no (further) constraints on this element Element IdOperationOutcome.issue.details.coding.code Symbol in syntax defined by the system DefinitionA symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination). Need to refer to a particular code in the system. Note that FHIR strings SHALL NOT exceed 1MB in size
|
display | S Σ | 0..1 | string | There are no (further) constraints on this element Element IdOperationOutcome.issue.details.coding.display Representation defined by the system DefinitionA representation of the meaning of the code in the system, following the rules of the system. Need to be able to carry a human-readable meaning of the code for readers that do not know the system. Note that FHIR strings SHALL NOT exceed 1MB in size
|
userSelected | Σ | 0..1 | boolean | There are no (further) constraints on this element Element IdOperationOutcome.issue.details.coding.userSelected If this coding was chosen directly by the user DefinitionIndicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays). This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing. Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.
|
text | S Σ | 0..1 | string | There are no (further) constraints on this element Element IdOperationOutcome.issue.details.text Plain text representation of the concept DefinitionA human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user. The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source. Very often the text is the same as a displayName of one of the codings.
|
diagnostics | S Σ | 0..1 | string | There are no (further) constraints on this element Element IdOperationOutcome.issue.diagnostics Additional diagnostic information about the issue DefinitionAdditional diagnostic information about the issue. This may be a description of how a value is erroneous, a stack dump to help trace the issue or other troubleshooting information.
|
location | S Σ | 0..* | string | There are no (further) constraints on this element Element IdOperationOutcome.issue.location Deprecated: Path of element(s) related to issue DefinitionThis element is deprecated because it is XML specific. It is replaced by issue.expression, which is format independent, and simpler to parse. For resource issues, this will be a simple XPath limited to element names, repetition indicators and the default child accessor that identifies one of the elements in the resource that caused this issue to be raised. For HTTP errors, will be "http." + the parameter name. Allows systems to highlight or otherwise guide users to elements implicated in issues to allow them to be fixed more easily. The root of the XPath is the resource or bundle that generated OperationOutcome. Each XPath SHALL resolve to a single node. This element is deprecated, and is being replaced by expression.
|
expression | S Σ | 0..* | string | There are no (further) constraints on this element Element IdOperationOutcome.issue.expression FHIRPath of element(s) related to issue DefinitionA simple subset of FHIRPath limited to element names, repetition indicators and the default child accessor that identifies one of the elements in the resource that caused this issue to be raised. Allows systems to highlight or otherwise guide users to elements implicated in issues to allow them to be fixed more easily. The root of the FHIRPath is the resource or bundle that generated OperationOutcome. Each FHIRPath SHALL resolve to a single node.
|
Table View
OperationOutcome | .. | |
OperationOutcome.meta | 1.. | |
OperationOutcome.meta.profile | 1.. | |
OperationOutcome.issue | .. | |
OperationOutcome.issue.severity | .. | |
OperationOutcome.issue.code | .. | |
OperationOutcome.issue.details | .. | |
OperationOutcome.issue.details.coding | .. | |
OperationOutcome.issue.details.coding.system | .. | |
OperationOutcome.issue.details.coding.code | .. | |
OperationOutcome.issue.details.coding.display | .. | |
OperationOutcome.issue.details.text | .. | |
OperationOutcome.issue.diagnostics | .. | |
OperationOutcome.issue.location | .. | |
OperationOutcome.issue.expression | .. |
JSON View
{ "resourceType": "StructureDefinition", "id": "ca-on-eReferral-profile-OperationOutcome", "url": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-OperationOutcome", "version": "1.0.0", "name": "EReferralOperationOutcome", "title": "OperationOutcome", "status": "draft", "description": "Operation outcomes are sets of error, warning and information messages that provide detailed information about the outcome of an attempted system operation. They are provided as a direct system response, or component of one, and provide information about the outcome of the operation.", "fhirVersion": "4.0.1", "kind": "resource", "abstract": false, "type": "OperationOutcome", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/OperationOutcome", "derivation": "constraint", "differential": { "element": [ { "id": "OperationOutcome.meta", "path": "OperationOutcome.meta", "min": 1, "mustSupport": true }, { "id": "OperationOutcome.meta.profile", "path": "OperationOutcome.meta.profile", "comment": "#### **_` FOR eREFERRAL USAGE: The meta.profile = http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-OperationOutcome|1.0.0 `_**\n\nIt is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.", "min": 1, "mustSupport": true }, { "id": "OperationOutcome.issue", "path": "OperationOutcome.issue", "mustSupport": true }, { "id": "OperationOutcome.issue.severity", "path": "OperationOutcome.issue.severity", "mustSupport": true }, { "id": "OperationOutcome.issue.code", "path": "OperationOutcome.issue.code", "mustSupport": true, "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/issue-type" } }, { "id": "OperationOutcome.issue.details", "path": "OperationOutcome.issue.details", "mustSupport": true }, { "id": "OperationOutcome.issue.details.coding", "path": "OperationOutcome.issue.details.coding", "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.location", "path": "OperationOutcome.issue.location", "mustSupport": true }, { "id": "OperationOutcome.issue.expression", "path": "OperationOutcome.issue.expression", "mustSupport": true } ] } }
Usage
OperationOutcome is used to provide more detailed description of any issues that occurred during execution of a registry operation. Specific profiles are provided on the resource to reflect expectations of its use for each registry. However, the general conventions are the same:
OperationOutcome can either be the sole response to an operation (generally accompanying an HTTP code that indicates a failure) or it can be part of a Bundle indicating potential warnings associated with the generation of the search response.
If an OperationOutcome is returned with anything other than a success (200), the issues it contains will be of type 'error' or 'fatal'. (Fatal is used for issues that occur before the query can be exercised, 'error' is used for issues that occur during query execution.
OperationOutcomes returned as part of a Bundle will only contain 'warning' and 'information' messages. The user should always be made aware of the existence of these messages and the user should have the opportunity to review all such messages
See responses handling for more information.
Notes
.meta.profile
- used to declare conformance to this profile
- populate with the fixed value:
http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-OperationOutcome|1.0.0
.issue
- an error, warning or information message that results from a system action.
.issue.severity
- a code that identifies how the issue affects the success of the action.
.issue.code
- a code that provides a standardized description 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.
- systems MAY create logic based on the specific code returned
.issue.details.text
- the details of the issue or warning
- systems SHOULD always display the text to the end user
issue.details.coding
- intended for diagnostic purposes
- will generally only be relevant to help-desk personnel
- systems MAY make access to this information available to users by clicking on a button rather but SHOULD AVOID displaying information directly to end users that would be confusing
issue.diagnostics
- intended for diagnostic purposes
- will generally only be relevant to help-desk personnel
- systems MAY make access to this information available to users by clicking on a button rather but SHOULD AVOID displaying information directly to end users that would be confusing
issue.location
- intended for diagnostic purposes
- expressed as an XPath regardless of whether the submitted content is XML or JSON
- will only occur if the problem is with a submitted FHIR instance (i.e.: will not be present if the issue is for query parameters, HTTP headers, etc.)
- will generally only be relevant to help-desk personnel
- systems MAY make access to this information available to users by clicking on a button rather but SHOULD AVOID displaying information directly to end users that would be confusing