HL7中国发布订阅框架实施指南
2025.03.10 - release

HL7中国发布订阅框架实施指南 - Local Development build (v2025.03.10) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Resource Profile: 订阅错误消息本地化定义

官方URL: http://hl7.org.cn/fhir-ig/pubsub/StructureDefinition/profile-operationoutcome-subscribe 版本: 2025.03.10
Draft as of 2025-03-10 机读名称: SubscribeOperationOutcome

由HL7中国设计的适用于中国健康信息化的订阅错误消息本地化定义。

Usage:

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraintsdoco
.. OperationOutcome 0..* OperationOutcome Information about the success/failure of an action
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-3: 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
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
dom-6: A resource should have narrative for robust management
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
ele-1: All FHIR elements must have a @value or children
... contained 0..* Resource Contained, inline Resources
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... severity Σ 1..1 code 错误的严重等级
Binding: IssueSeverity (required): How the issue affects the success of the action.


ele-1: All FHIR elements must have a @value or children
.... code Σ 1..1 code 错误的类型
Binding: IssueType (required): A code that describes the type of issue.


ele-1: All FHIR elements must have a @value or children
.... details Σ 1..1 CodeableConcept 附加的错误信息提示
Binding: 订阅错误消息值集表 (required)
ele-1: All FHIR elements must have a @value or children
.... diagnostics Σ 0..1 string 附加的错误信息详情,详细的文字描述。
ele-1: All FHIR elements must have a @value or children
.... expression Σ 0..* string 错误的位置,FHIRPath表示法。
ele-1: All FHIR elements must have a @value or children

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
OperationOutcome.issue.severityrequiredIssueSeverity
http://hl7.org/fhir/ValueSet/issue-severity|5.0.0
from the FHIR Standard
OperationOutcome.issue.coderequiredIssueType
http://hl7.org/fhir/ValueSet/issue-type|5.0.0
from the FHIR Standard
OperationOutcome.issue.detailsrequiredSubscribeOperationOutcomeCodes (a valid code from 订阅错误消息代码表)
http://hl7.org.cn/fhir-ig/pubsub/ValueSet/operationoutcome-codes-subscribe
from this IG

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorOperationOutcomeIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorOperationOutcomeIf 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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorOperationOutcomeIf 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-5errorOperationOutcomeIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceOperationOutcomeA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

该结构继承自 OperationOutcome

NameFlagsCard.TypeDescription & Constraintsdoco
.. OperationOutcome 0..* OperationOutcome Information about the success/failure of an action
... issue
.... severity 1..1 code 错误的严重等级
.... code 1..1 code 错误的类型
.... details 1..1 CodeableConcept 附加的错误信息提示
Binding: 订阅错误消息值集表 (required)
.... diagnostics 0..1 string 附加的错误信息详情,详细的文字描述。
.... location 0..0
.... expression 0..* string 错误的位置,FHIRPath表示法。

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
OperationOutcome.issue.detailsrequiredSubscribeOperationOutcomeCodes (a valid code from 订阅错误消息代码表)
http://hl7.org.cn/fhir-ig/pubsub/ValueSet/operationoutcome-codes-subscribe
from this IG
NameFlagsCard.TypeDescription & Constraintsdoco
.. OperationOutcome 0..* OperationOutcome Information about the success/failure of an action
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... issue Σ 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 错误的严重等级
Binding: IssueSeverity (required): How the issue affects the success of the action.

.... code Σ 1..1 code 错误的类型
Binding: IssueType (required): A code that describes the type of issue.

.... details Σ 1..1 CodeableConcept 附加的错误信息提示
Binding: 订阅错误消息值集表 (required)
.... diagnostics Σ 0..1 string 附加的错误信息详情,详细的文字描述。
.... expression Σ 0..* string 错误的位置,FHIRPath表示法。

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
OperationOutcome.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
from the FHIR Standard
OperationOutcome.issue.severityrequiredIssueSeverity
http://hl7.org/fhir/ValueSet/issue-severity|5.0.0
from the FHIR Standard
OperationOutcome.issue.coderequiredIssueType
http://hl7.org/fhir/ValueSet/issue-type|5.0.0
from the FHIR Standard
OperationOutcome.issue.detailsrequiredSubscribeOperationOutcomeCodes (a valid code from 订阅错误消息代码表)
http://hl7.org.cn/fhir-ig/pubsub/ValueSet/operationoutcome-codes-subscribe
from this IG

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorOperationOutcomeIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorOperationOutcomeIf 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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorOperationOutcomeIf 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-5errorOperationOutcomeIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceOperationOutcomeA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

该结构继承自 OperationOutcome

Summary

Mandatory: 1 element
Prohibited: 1 element

关键元素视图

NameFlagsCard.TypeDescription & Constraintsdoco
.. OperationOutcome 0..* OperationOutcome Information about the success/failure of an action
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-3: 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
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
dom-6: A resource should have narrative for robust management
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
ele-1: All FHIR elements must have a @value or children
... contained 0..* Resource Contained, inline Resources
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... severity Σ 1..1 code 错误的严重等级
Binding: IssueSeverity (required): How the issue affects the success of the action.


ele-1: All FHIR elements must have a @value or children
.... code Σ 1..1 code 错误的类型
Binding: IssueType (required): A code that describes the type of issue.


ele-1: All FHIR elements must have a @value or children
.... details Σ 1..1 CodeableConcept 附加的错误信息提示
Binding: 订阅错误消息值集表 (required)
ele-1: All FHIR elements must have a @value or children
.... diagnostics Σ 0..1 string 附加的错误信息详情,详细的文字描述。
ele-1: All FHIR elements must have a @value or children
.... expression Σ 0..* string 错误的位置,FHIRPath表示法。
ele-1: All FHIR elements must have a @value or children

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
OperationOutcome.issue.severityrequiredIssueSeverity
http://hl7.org/fhir/ValueSet/issue-severity|5.0.0
from the FHIR Standard
OperationOutcome.issue.coderequiredIssueType
http://hl7.org/fhir/ValueSet/issue-type|5.0.0
from the FHIR Standard
OperationOutcome.issue.detailsrequiredSubscribeOperationOutcomeCodes (a valid code from 订阅错误消息代码表)
http://hl7.org.cn/fhir-ig/pubsub/ValueSet/operationoutcome-codes-subscribe
from this IG

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorOperationOutcomeIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorOperationOutcomeIf 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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorOperationOutcomeIf 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-5errorOperationOutcomeIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceOperationOutcomeA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

差异视图

该结构继承自 OperationOutcome

NameFlagsCard.TypeDescription & Constraintsdoco
.. OperationOutcome 0..* OperationOutcome Information about the success/failure of an action
... issue
.... severity 1..1 code 错误的严重等级
.... code 1..1 code 错误的类型
.... details 1..1 CodeableConcept 附加的错误信息提示
Binding: 订阅错误消息值集表 (required)
.... diagnostics 0..1 string 附加的错误信息详情,详细的文字描述。
.... location 0..0
.... expression 0..* string 错误的位置,FHIRPath表示法。

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
OperationOutcome.issue.detailsrequiredSubscribeOperationOutcomeCodes (a valid code from 订阅错误消息代码表)
http://hl7.org.cn/fhir-ig/pubsub/ValueSet/operationoutcome-codes-subscribe
from this IG

快照视图

NameFlagsCard.TypeDescription & Constraintsdoco
.. OperationOutcome 0..* OperationOutcome Information about the success/failure of an action
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... issue Σ 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 错误的严重等级
Binding: IssueSeverity (required): How the issue affects the success of the action.

.... code Σ 1..1 code 错误的类型
Binding: IssueType (required): A code that describes the type of issue.

.... details Σ 1..1 CodeableConcept 附加的错误信息提示
Binding: 订阅错误消息值集表 (required)
.... diagnostics Σ 0..1 string 附加的错误信息详情,详细的文字描述。
.... expression Σ 0..* string 错误的位置,FHIRPath表示法。

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
OperationOutcome.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
from the FHIR Standard
OperationOutcome.issue.severityrequiredIssueSeverity
http://hl7.org/fhir/ValueSet/issue-severity|5.0.0
from the FHIR Standard
OperationOutcome.issue.coderequiredIssueType
http://hl7.org/fhir/ValueSet/issue-type|5.0.0
from the FHIR Standard
OperationOutcome.issue.detailsrequiredSubscribeOperationOutcomeCodes (a valid code from 订阅错误消息代码表)
http://hl7.org.cn/fhir-ig/pubsub/ValueSet/operationoutcome-codes-subscribe
from this IG

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorOperationOutcomeIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorOperationOutcomeIf 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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorOperationOutcomeIf 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-5errorOperationOutcomeIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceOperationOutcomeA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

该结构继承自 OperationOutcome

Summary

Mandatory: 1 element
Prohibited: 1 element

 

本 Profile 的其它表示法: CSV, Excel, Schematron