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

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

Resource Profile: 处方流转消息头结构定义

Defining URL:http://hl7.org.cn/fhir/StructureDefinition/profile-rx-messageheader
Version:2024.5.5
Name:RxMessageHeader
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-rx-messageheader

定义内容的视图

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

这种结构源自 MessageHeader

Summary

Mandatory: 2 elements

Slices

This structure defines the following Slices:

  • The element MessageHeader.event[x] is sliced based on the value of type:$this

这种结构源自 MessageHeader

NameFlagsCard.TypeDescription & Constraintsdoco
.. MessageHeader 0..*MessageHeaderA resource that describes a message that is exchanged between systems
... event[x] 1..1Coding处方流转事件类型
Slice: Unordered, Open by type:$this
... eventCoding 1..1Coding编码类型
Binding: 处方流转事件类型代码表 (required)
... source 1..1BackboneElement消息源应用
.... name 1..1string应用名称

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. MessageHeader 0..*MessageHeaderA resource that describes a message that is exchanged between systems
... 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
... Slices for event[x] Σ1..1Coding处方流转事件类型
Slice: Unordered, Closed by type:$this
Binding: (unbound) (example): One of the message events defined as part of this version of FHIR.

.... event[x]:eventCoding Σ1..1Coding编码类型
Binding: 处方流转事件类型代码表 (required)
... destination Σ0..*BackboneElementMessage destination application(s)
.... 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
.... endpoint[x] Σ0..1Actual destination address or Endpoint resource
..... endpointUrlurl
..... endpointReferenceReference(Endpoint)
.... name Σ0..1stringName of system
.... target Σ0..1Reference(Device)Particular delivery destination within the destination
.... receiver Σ0..1Reference(Practitioner | PractitionerRole | Organization)Intended "real-world" recipient for the data
... sender Σ0..1Reference(Practitioner | PractitionerRole | Device | Organization)Real world sender of the message
... author Σ0..1Reference(Practitioner | PractitionerRole | Device | Organization)The source of the decision
... source Σ1..1BackboneElement消息源应用
.... 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
.... endpoint[x] Σ0..1Actual source address or Endpoint resource
..... endpointUrlurl
..... endpointReferenceReference(Endpoint)
.... name Σ1..1string应用名称
.... software Σ0..1stringName of software running the system
.... version Σ0..1stringVersion of software running
.... contact Σ0..1ContactPointHuman contact for problems
... responsible Σ0..1Reference(Practitioner | PractitionerRole | Organization)Final responsibility for event
... reason Σ0..1CodeableConceptCause of event
Binding: ExampleMessageReasonCodes (example): Reason for event occurrence.

... response Σ0..1BackboneElementIf this is a reply to prior message
.... 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
.... identifier Σ1..1IdentifierBundle.identifier of original message
.... code Σ1..1codeok | transient-error | fatal-error
Binding: ResponseType (required): The kind of response to a message.

.... details Σ0..1Reference(OperationOutcome)Specific list of hints/warnings/errors
... focus Σ0..*Reference(Resource)The actual content of the message
... definition Σ0..1canonical(MessageDefinition)Link to the definition for this message

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. MessageHeader 0..*MessageHeaderA resource that describes a message that is exchanged between systems

doco Documentation for this format

这种结构源自 MessageHeader

Summary

Mandatory: 2 elements

Slices

This structure defines the following Slices:

  • The element MessageHeader.event[x] is sliced based on the value of type:$this

差异视图

这种结构源自 MessageHeader

NameFlagsCard.TypeDescription & Constraintsdoco
.. MessageHeader 0..*MessageHeaderA resource that describes a message that is exchanged between systems
... event[x] 1..1Coding处方流转事件类型
Slice: Unordered, Open by type:$this
... eventCoding 1..1Coding编码类型
Binding: 处方流转事件类型代码表 (required)
... source 1..1BackboneElement消息源应用
.... name 1..1string应用名称

doco Documentation for this format

快照视图

NameFlagsCard.TypeDescription & Constraintsdoco
.. MessageHeader 0..*MessageHeaderA resource that describes a message that is exchanged between systems
... 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
... Slices for event[x] Σ1..1Coding处方流转事件类型
Slice: Unordered, Closed by type:$this
Binding: (unbound) (example): One of the message events defined as part of this version of FHIR.

.... event[x]:eventCoding Σ1..1Coding编码类型
Binding: 处方流转事件类型代码表 (required)
... destination Σ0..*BackboneElementMessage destination application(s)
.... 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
.... endpoint[x] Σ0..1Actual destination address or Endpoint resource
..... endpointUrlurl
..... endpointReferenceReference(Endpoint)
.... name Σ0..1stringName of system
.... target Σ0..1Reference(Device)Particular delivery destination within the destination
.... receiver Σ0..1Reference(Practitioner | PractitionerRole | Organization)Intended "real-world" recipient for the data
... sender Σ0..1Reference(Practitioner | PractitionerRole | Device | Organization)Real world sender of the message
... author Σ0..1Reference(Practitioner | PractitionerRole | Device | Organization)The source of the decision
... source Σ1..1BackboneElement消息源应用
.... 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
.... endpoint[x] Σ0..1Actual source address or Endpoint resource
..... endpointUrlurl
..... endpointReferenceReference(Endpoint)
.... name Σ1..1string应用名称
.... software Σ0..1stringName of software running the system
.... version Σ0..1stringVersion of software running
.... contact Σ0..1ContactPointHuman contact for problems
... responsible Σ0..1Reference(Practitioner | PractitionerRole | Organization)Final responsibility for event
... reason Σ0..1CodeableConceptCause of event
Binding: ExampleMessageReasonCodes (example): Reason for event occurrence.

... response Σ0..1BackboneElementIf this is a reply to prior message
.... 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
.... identifier Σ1..1IdentifierBundle.identifier of original message
.... code Σ1..1codeok | transient-error | fatal-error
Binding: ResponseType (required): The kind of response to a message.

.... details Σ0..1Reference(OperationOutcome)Specific list of hints/warnings/errors
... focus Σ0..*Reference(Resource)The actual content of the message
... definition Σ0..1canonical(MessageDefinition)Link to the definition for this message

doco Documentation for this format

 

本定义的其它表示法: Schematron

Terminology Bindings

PathConformanceValueSetURI
MessageHeader.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
from the FHIR Standard
MessageHeader.event[x]example
MessageHeader.event[x]:eventCodingrequiredSpecialRxEventTypeCodes (a valid code from 处方流转事件类型代码表)
http://hl7.org.cn/fhir/ValueSet/special-rx-event-type-codes
from this IG
MessageHeader.reasonexampleExampleMessageReasonCodes
http://hl7.org/fhir/ValueSet/message-reason-encounter
from the FHIR Standard
MessageHeader.response.coderequiredResponseType
http://hl7.org/fhir/ValueSet/response-code|5.0.0
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorMessageHeaderIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorMessageHeaderIf 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-4errorMessageHeaderIf 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-5errorMessageHeaderIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceMessageHeaderA 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()