如何在FHIR Bundle中表示CC Practitioners?多接收方场景怎么处理?
FHIR Bundle发送给多个Practitioners的实现方案
核心实现逻辑
发送包含申请报告的FHIR Bundle给多个Practitioners时,MessageHeader是FHIR标准推荐的处理方式,它专门用于定义消息的接收目标、事件类型等核心上下文信息。
接收方的具体配置方式
- 主接收方(To):在
MessageHeader.destination数组中添加每个主接收Practitioner的引用,每个destination条目通过reference字段指向对应Practitioner资源(例如reference: "Practitioner/doc-001"),还可通过name字段标注接收方名称,便于识别。 - CC抄送方:直接在
MessageHeader.destination数组中扩展条目,给需要抄送的接收方添加FHIR规范扩展来明确标记。比如使用官方定义的http://hl7.org/fhir/StructureDefinition/message-destination-cc扩展,将valueBoolean设为true;也可结合业务约定,用destination.mode字段的自定义值(如cc)区分主送与抄送,但用扩展的方式更符合FHIR规范要求。
Bundle的结构要求
- 需将Bundle的
type设置为message,这是FHIR消息传递场景的标准Bundle类型。 - Bundle中必须包含
MessageHeader资源,同时关联申请报告资源(比如用ServiceRequest作为申请报告载体),若接收方Practitioner资源未在目标系统存在,可将其一并放入Bundle,否则仅保留引用即可。
示例代码片段
{ "resourceType": "Bundle", "type": "message", "entry": [ { "resource": { "resourceType": "MessageHeader", "eventCoding": { "system": "http://hl7.org/fhir/message-events", "code": "admin-notify" }, "destination": [ // 主接收方 { "name": "王医生", "reference": "Practitioner/wang-ming" }, // CC抄送方 { "name": "赵护士", "reference": "Practitioner/zhao-li", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/message-destination-cc", "valueBoolean": true } ] } ] } }, // 申请报告资源示例 { "resource": { "resourceType": "ServiceRequest", "identifier": [{"value": "REQ-2024-0001"}], "status": "active", "intent": "order", "code": {"text": "血常规申请"} } } ] }
内容的提问来源于stack exchange,提问作者dlanglois
相关产品推荐
相关产品推荐

