HL7中国FHIR Connectathon测试实施指南
2024.5.5 - release

本指南适用于HL7中国的FHIR Connectathon测试。

Resource Profile: 文档注册错误消息本地化定义

Defining URL:http://hl7.org.cn/fhir/StructureDefinition/profile-operationoutcome-xds-reg
Version:2024.5.5
Name:XDSRegOperationOutcome
Title:文档注册错误消息本地化定义
Status:Active as of 2024-05-05 21:11:47+0800
Definition:

文档注册错误消息本地化定义。

Publisher:HL7中国. HL7中国,
Source Resource:XML / JSON / Turtle

本定义的正式URL为:

http://hl7.org.cn/fhir/StructureDefinition/profile-operationoutcome-xds-reg

定义内容的视图

关于定义、差异、快照以及如何解读这些表示法

这种结构源自 OperationOutcome

Summary

Mandatory: 1 element
Prohibited: 1 element

这种结构源自 OperationOutcome

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

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. OperationOutcome 0..*OperationOutcomeInformation about the success/failure of an action
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
... issue Σ1..*BackboneElementA single issue associated with the action
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... severity Σ1..1code错误的严重等级
Binding: IssueSeverity (required): How the issue affects the success of the action.

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

.... details Σ1..1CodeableConcept附加的错误信息提示
Binding: 文档注册库错误消息代码表 (required)
.... diagnostics Σ0..1string附加的错误信息详情,详细的文字描述。
.... expression Σ0..*string错误的位置,FHIRPath表示法。

doco Documentation for this format

这种结构源自 OperationOutcome

Summary

Mandatory: 1 element
Prohibited: 1 element

差异视图

这种结构源自 OperationOutcome

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

doco Documentation for this format

快照视图

NameFlagsCard.TypeDescription & Constraintsdoco
.. OperationOutcome 0..*OperationOutcomeInformation about the success/failure of an action
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
... issue Σ1..*BackboneElementA single issue associated with the action
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... severity Σ1..1code错误的严重等级
Binding: IssueSeverity (required): How the issue affects the success of the action.

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

.... details Σ1..1CodeableConcept附加的错误信息提示
Binding: 文档注册库错误消息代码表 (required)
.... diagnostics Σ0..1string附加的错误信息详情,详细的文字描述。
.... expression Σ0..*string错误的位置,FHIRPath表示法。

doco Documentation for this format

 

本定义的其它表示法: Schematron

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.detailsrequiredVSXDSRegOperationOutcomeCode
http://hl7.org.cn/fhir/ValueSet/operationoutcome-code-xds-reg
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()