臺灣健保癌症用藥事前審查實作指引
1.0.8 - STU1.0.8

臺灣健保癌症用藥事前審查實作指引 - Downloaded Version 1.0.8 See the Directory of published versions

## Resource Profile: 系統回應訊息-OperationOutcome TWPAS

Official URL: https://nhicore.nhi.gov.tw/pas/StructureDefinition/Operationoutcome-twpas | Version: 1.0.8
Active as of 2025-09-26 | Computable Name: OperationOutcomeTWPAS

此系統回應訊-OperationOutcome TWPAS Profile說明本IG如何進一步定義FHIR的OperationOutcome Resource以呈現系統回應訊息之內容

Usages:

- Examples for this Profile: OperationOutcome/error-example

You can also check for usages in the FHIR IG Statistics

### Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

- Key Elements Table
- Differential Table
- Snapshot Table
- Statistics/References
- All

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
OperationOutcome |  | 0..* | OperationOutcome | Information about the success/failure of an action
meta | Σ | 1..1 | Meta | Metadata about the resource
profile | Σ | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Required Pattern: https://nhicore.nhi.gov.tw/pas/StructureDefinition/Operationoutcome-twpas
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
issue | S Σ | 1..1 | BackboneElement | A single issue associated with the action
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
severity | Σ | 1..1 | code | fatal | error | warning | information Binding: IssueSeverity (required): 應填入 IssueSeverity 值集中的其中一個代碼。
code | Σ | 1..1 | code | Error or warning code Binding: IssueType (required): 應填入 IssueType 值集中的其中一個代碼。
details | S Σ | 1..1 | CodeableConcept | Additional details about the error Binding: OperationOutcomeCodes (example): A code that provides details as the exact issue.
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
OperationOutcome.issue.severity | required | IssueSeverity `http://hl7.org/fhir/ValueSet/issue-severity|4.0.1` From the FHIR Standard
OperationOutcome.issue.code | required | IssueType `http://hl7.org/fhir/ValueSet/issue-type|4.0.1` From the FHIR Standard
OperationOutcome.issue.details | example | OperationOutcomeCodes `http://hl7.org/fhir/ValueSet/operation-outcome|4.0.1` From the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dom-2 | error | OperationOutcome | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | OperationOutcome | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty() |
dom-4 | error | OperationOutcome | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-5 | error | OperationOutcome | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | OperationOutcome | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |

This structure is derived from OperationOutcome

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
OperationOutcome |  | 0..* | OperationOutcome | Information about the success/failure of an action
meta |  | 1..1 | Meta | Metadata about the resource
profile |  | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Required Pattern: https://nhicore.nhi.gov.tw/pas/StructureDefinition/Operationoutcome-twpas
issue | S | 1..1 | BackboneElement | A single issue associated with the action
severity |  | 1..1 | code | fatal | error | warning | information Binding: IssueSeverity (required): 應填入 IssueSeverity 值集中的其中一個代碼。
code |  | 1..1 | code | Error or warning code Binding: IssueType (required): 應填入 IssueType 值集中的其中一個代碼。
details | S | 1..1 | CodeableConcept | Additional details about the error
Documentation for this format

#### Terminology Bindings (Differential)

Path | Conformance | ValueSet | URI
OperationOutcome.issue.severity | required | IssueSeverity `http://hl7.org/fhir/ValueSet/issue-severity|4.0.1` From the FHIR Standard
OperationOutcome.issue.code | required | IssueType `http://hl7.org/fhir/ValueSet/issue-type|4.0.1` From the FHIR Standard

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
OperationOutcome |  | 0..* | OperationOutcome | Information about the success/failure of an action
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 1..1 | Meta | Metadata about the resource
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
versionId | Σ | 0..1 | id | Version specific identifier
lastUpdated | Σ | 0..1 | instant | When the resource version last changed
source | Σ | 0..1 | uri | Identifies where the resource comes from
profile | Σ | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Required Pattern: https://nhicore.nhi.gov.tw/pas/StructureDefinition/Operationoutcome-twpas
security | Σ | 0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
tag | Σ | 0..* | Coding | Tags applied to this resource Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
issue | S Σ | 1..1 | BackboneElement | A single issue associated with the action
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
severity | Σ | 1..1 | code | fatal | error | warning | information Binding: IssueSeverity (required): 應填入 IssueSeverity 值集中的其中一個代碼。
code | Σ | 1..1 | code | Error or warning code Binding: IssueType (required): 應填入 IssueType 值集中的其中一個代碼。
details | S Σ | 1..1 | CodeableConcept | Additional details about the error Binding: OperationOutcomeCodes (example): A code that provides details as the exact issue.
diagnostics | Σ | 0..1 | string | Additional diagnostic information about the issue
location | Σ | 0..* | string | Deprecated: Path of element(s) related to issue
expression | Σ | 0..* | string | FHIRPath of element(s) related to issue
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
OperationOutcome.meta.security | extensible | All Security Labels `http://hl7.org/fhir/ValueSet/security-labels|4.0.1` From the FHIR Standard
OperationOutcome.meta.tag | example | CommonTags `http://hl7.org/fhir/ValueSet/common-tags|4.0.1` From the FHIR Standard
OperationOutcome.language | preferred | CommonLanguages `http://hl7.org/fhir/ValueSet/languages|4.0.1` From the FHIR Standard
Additional Bindings | Purpose
AllLanguages | Max Binding
OperationOutcome.issue.severity | required | IssueSeverity `http://hl7.org/fhir/ValueSet/issue-severity|4.0.1` From the FHIR Standard
OperationOutcome.issue.code | required | IssueType `http://hl7.org/fhir/ValueSet/issue-type|4.0.1` From the FHIR Standard
OperationOutcome.issue.details | example | OperationOutcomeCodes `http://hl7.org/fhir/ValueSet/operation-outcome|4.0.1` From the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dom-2 | error | OperationOutcome | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | OperationOutcome | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty() |
dom-4 | error | OperationOutcome | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-5 | error | OperationOutcome | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | OperationOutcome | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |

This structure is derived from OperationOutcome

Summary

Mandatory: 3 elements
Must-Support: 2 elements

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
OperationOutcome |  | 0..* | OperationOutcome | Information about the success/failure of an action
meta | Σ | 1..1 | Meta | Metadata about the resource
profile | Σ | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Required Pattern: https://nhicore.nhi.gov.tw/pas/StructureDefinition/Operationoutcome-twpas
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
issue | S Σ | 1..1 | BackboneElement | A single issue associated with the action
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
severity | Σ | 1..1 | code | fatal | error | warning | information Binding: IssueSeverity (required): 應填入 IssueSeverity 值集中的其中一個代碼。
code | Σ | 1..1 | code | Error or warning code Binding: IssueType (required): 應填入 IssueType 值集中的其中一個代碼。
details | S Σ | 1..1 | CodeableConcept | Additional details about the error Binding: OperationOutcomeCodes (example): A code that provides details as the exact issue.
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
OperationOutcome.issue.severity | required | IssueSeverity `http://hl7.org/fhir/ValueSet/issue-severity|4.0.1` From the FHIR Standard
OperationOutcome.issue.code | required | IssueType `http://hl7.org/fhir/ValueSet/issue-type|4.0.1` From the FHIR Standard
OperationOutcome.issue.details | example | OperationOutcomeCodes `http://hl7.org/fhir/ValueSet/operation-outcome|4.0.1` From the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dom-2 | error | OperationOutcome | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | OperationOutcome | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty() |
dom-4 | error | OperationOutcome | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-5 | error | OperationOutcome | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | OperationOutcome | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |

Differential View

This structure is derived from OperationOutcome

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
OperationOutcome |  | 0..* | OperationOutcome | Information about the success/failure of an action
meta |  | 1..1 | Meta | Metadata about the resource
profile |  | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Required Pattern: https://nhicore.nhi.gov.tw/pas/StructureDefinition/Operationoutcome-twpas
issue | S | 1..1 | BackboneElement | A single issue associated with the action
severity |  | 1..1 | code | fatal | error | warning | information Binding: IssueSeverity (required): 應填入 IssueSeverity 值集中的其中一個代碼。
code |  | 1..1 | code | Error or warning code Binding: IssueType (required): 應填入 IssueType 值集中的其中一個代碼。
details | S | 1..1 | CodeableConcept | Additional details about the error
Documentation for this format

#### Terminology Bindings (Differential)

Path | Conformance | ValueSet | URI
OperationOutcome.issue.severity | required | IssueSeverity `http://hl7.org/fhir/ValueSet/issue-severity|4.0.1` From the FHIR Standard
OperationOutcome.issue.code | required | IssueType `http://hl7.org/fhir/ValueSet/issue-type|4.0.1` From the FHIR Standard

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
OperationOutcome |  | 0..* | OperationOutcome | Information about the success/failure of an action
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 1..1 | Meta | Metadata about the resource
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
versionId | Σ | 0..1 | id | Version specific identifier
lastUpdated | Σ | 0..1 | instant | When the resource version last changed
source | Σ | 0..1 | uri | Identifies where the resource comes from
profile | Σ | 1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Required Pattern: https://nhicore.nhi.gov.tw/pas/StructureDefinition/Operationoutcome-twpas
security | Σ | 0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
tag | Σ | 0..* | Coding | Tags applied to this resource Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
issue | S Σ | 1..1 | BackboneElement | A single issue associated with the action
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
severity | Σ | 1..1 | code | fatal | error | warning | information Binding: IssueSeverity (required): 應填入 IssueSeverity 值集中的其中一個代碼。
code | Σ | 1..1 | code | Error or warning code Binding: IssueType (required): 應填入 IssueType 值集中的其中一個代碼。
details | S Σ | 1..1 | CodeableConcept | Additional details about the error Binding: OperationOutcomeCodes (example): A code that provides details as the exact issue.
diagnostics | Σ | 0..1 | string | Additional diagnostic information about the issue
location | Σ | 0..* | string | Deprecated: Path of element(s) related to issue
expression | Σ | 0..* | string | FHIRPath of element(s) related to issue
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
OperationOutcome.meta.security | extensible | All Security Labels `http://hl7.org/fhir/ValueSet/security-labels|4.0.1` From the FHIR Standard
OperationOutcome.meta.tag | example | CommonTags `http://hl7.org/fhir/ValueSet/common-tags|4.0.1` From the FHIR Standard
OperationOutcome.language | preferred | CommonLanguages `http://hl7.org/fhir/ValueSet/languages|4.0.1` From the FHIR Standard
Additional Bindings | Purpose
AllLanguages | Max Binding
OperationOutcome.issue.severity | required | IssueSeverity `http://hl7.org/fhir/ValueSet/issue-severity|4.0.1` From the FHIR Standard
OperationOutcome.issue.code | required | IssueType `http://hl7.org/fhir/ValueSet/issue-type|4.0.1` From the FHIR Standard
OperationOutcome.issue.details | example | OperationOutcomeCodes `http://hl7.org/fhir/ValueSet/operation-outcome|4.0.1` From the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dom-2 | error | OperationOutcome | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | OperationOutcome | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty() |
dom-4 | error | OperationOutcome | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-5 | error | OperationOutcome | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | OperationOutcome | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |

This structure is derived from OperationOutcome

Summary

Mandatory: 3 elements
Must-Support: 2 elements

Other representations of profile: CSV, Excel, Schematron