assembling-fhir-bundles

仓库创建 2025年10月4日最近提交 3 小时前SkillHot 收录 3 小时前
▸ 精选理由

自动生成确定性 fullUrl 与引用重写,便于可靠地向 EHR 提交数据。

▸ 风险提示

与医疗系统交互时需小心资源一致性与权限控制

这个 Skill 做什么

将多条 FHIR R4 资源封装为可提交的 transaction Bundle 并修正引用。

把多条 FHIR R4 资源打包成一个可直接 POST 到 EHR 的 transaction Bundle,并自动修正 Bundle 内部引用,保证 Patient、Observation 等相互指向正确。常在把 OpenMed 导出的 Condition/Observation/MedicationStatement 合并成一笔事务时用。使用 openmed.clinical.exporters.fhir.to_bundle,可生成确定性的 urn:uuid fullUrl、request block 和 conditional create。

▸ 展开 SKILL.md 英文原文

Package multiple FHIR R4 resources produced from OpenMed output into a single valid transaction Bundle ready to POST to an EHR, using OpenMed's verified bundle assembler openmed.clinical.exporters.fhir.to_bundle. Covers deterministic urn:uuid fullUrls, automatic in-Bundle reference rewriting, request blocks (method/url) for transaction vs batch, and conditional create. Use after exporting-to-fhir when the user has several Condition/Observation/MedicationStatement resources and wants one transaction Bundle, mentions Bundle, transaction, references, or posting to a FHIR server. Builds on exporting-to-fhir; pairs after.

垂直行业FHIRBundleEHR集成通用
4.7k
Stars
581
Forks
40
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/maziyarpanahi/openmed/master/skills/assembling-fhir-bundles/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/maziyarpanahi/openmed/master/skills/assembling-fhir-bundles/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Assembling FHIR Bundles

A FHIR server ingests one **transaction Bundle**, not loose resources, and the
resources inside it must cross-reference each other (`Condition.subject` →
Patient, `Observation.encounter` → Encounter, `DiagnosticReport.result` →
Observation). OpenMed ships a **deterministic, mechanical** Bundle assembler —
`openmed.clinical.exporters.fhir.to_bundle` — that wraps the resources you built
in `exporting-to-fhir` into a valid R4 Bundle and wires up the references.

## When to use

Use after you have a *list* of standalone resources from `exporting-to-fhir` and
the destination is a FHIR server. Reach for it when the user says "build a
Bundle", "transaction", "POST these r
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有