本站支持搜索的镜像仓库:Docker Hub、gcr.io、ghcr.io、quay.io、k8s.gcr.io、registry.gcr.io、elastic.co、mcr.microsoft.com

本项目是基于@asymmetrik/node-fhir-server-core构建的示例项目,采用MongoDB作为后端存储样本数据,支持通过Docker或Node.js环境运行。该服务器可同时服务多个FHIR版本,默认启用R4(4_0_0)版本,同时支持DSTU2(1.0.2)和STU3(3.0.1)版本,可通过配置选择支持全部或特定版本。
适用于健康领域的FHIR API服务器快速部署、开发与测试,支持系统集成、FHIR版本兼容性验证、资源自定义配置等场景,尤其适合需要快速搭建FHIR服务原型的开发人员和***机构。
docker-compose up
env.json文件中定义的默认配置值是否有效。yarn install # 或 npm install
yarn start # 或 npm run start
服务启动后默认监听3000端口,成功启动后将输出以下日志信息:
... - verbose: Server is up and running!
默认启用R4版本的Patient和Organization资源,能力声明可通过以下链接访问:
如已启用其他版本,可访问:
使用请求工具(如Postman)执行以下操作:
创建患者(R4版本)
PUT /4_0_0/Patient/example HTTP/1.1 Host: localhost:3000 Content-Type: application/fhir+json Cache-Control: no-cache { "resourceType": "Patient", "id": "example", "text": { "status": "generated", "div": "<div xmlns=\"[***]\">\n\t\t\t<table>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>Name</td>\n\t\t\t\t\t\t<td>Peter James \n <b>Chalmers</b> ("Jim")\n </td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>Address</td>\n\t\t\t\t\t\t<td>534 Erewhon, Pleasantville, Vic, 3999</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>Contacts</td>\n\t\t\t\t\t\t<td>Home: unknown. Work: (03) 5555 6473</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>Id</td>\n\t\t\t\t\t\t<td>MRN: *** (Acme Healthcare)</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t</div>" }, "identifier": [ { "use": "usual", "type": { "coding": [ { "system": "[***]", "code": "MR" } ] }, "system": "urn:oid:1.2.36.146.595.217.0.1", "value": "***", "period": { "start": "2001-05-06" }, "assigner": { "display": "Acme Healthcare" } } ], "active": true, "name": [ { "use": "official", "family": "Chalmers", "given": ["Peter", "James"] }, { "use": "usual", "given": ["Jim"] }, { "use": "maiden", "family": "Windsor", "given": ["Peter", "James"], "period": { "end": "2002" } } ], "telecom": [ { "use": "home" }, { "system": "phone", "value": "(03) 5555 6473", "use": "work", "rank": 1 }, { "system": "phone", "value": "(03) 3410 5613", "use": "mobile", "rank": 2 }, { "system": "phone", "value": "(03) 5555 8834", "use": "old", "period": { "end": "2014" } } ], "gender": "male", "birthDate": "1974-12-25", "_birthDate": { "extension": [ { "url": "[***]", "valueDateTime": "1974-12-25T14:35:45-05:00" } ] }, "deceasedBoolean": false, "address": [ { "use": "home", "type": "both", "text": "534 Erewhon St PeasantVille, Rainbow, Vic 3999", "line": ["534 Erewhon St"], "city": "PleasantVille", "district": "Rainbow", "state": "Vic", "postalCode": "3999", "period": { "start": "1974-12-25" } } ], "contact": [ { "relationship": [ { "coding": [ { "system": "[***]", "code": "N" } ] } ], "name": { "family": "du Marché", "_family": { "extension": [ { "url": "[***]", "valueString": "VV" } ] }, "given": ["Bénédicte"] }, "telecom": [ { "system": "phone", "value": "+33 (237) 998327" } ], "address": { "use": "home", "type": "both", "line": ["534 Erewhon St"], "city": "PleasantVille", "district": "Rainbow", "state": "Vic", "postalCode": "3999", "period": { "start": "1974-12-25" } }, "gender": "female", "period": { "start": "2012" } } ], "managingOrganization": { "reference": "Organization/1" } }
读取患者(R4版本)
GET /4_0_0/Patient/example HTTP/1.1 Host: localhost:3000 Content-Type: application/fhir+json Cache-Control: no-cache
本示例默认仅配置Patient和Organization资源。如需支持其他FHIR资源,需为相应资源实现服务代码。仅启用的资源会生成对应的API路由。可参考@asymmetrik/node-fhir-server-core文档查看支持的资源列表。
@asymmetrik/fhir-server-mongo 采用 MIT 许可。
免费版仅支持 Docker Hub 加速,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。
免费版仅支持 docker.io;专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等。
当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录方式配置轩辕镜像加速服务,包含7个详细步骤
在 Linux 系统上配置轩辕镜像源,支持主流发行版
在 Docker Desktop 中配置轩辕镜像加速,适用于桌面系统
在 Docker Compose 中使用轩辕镜像加速,支持容器编排
在 k8s 中配置 containerd 使用轩辕镜像加速
在宝塔面板中配置轩辕镜像加速,提升服务器管理效率
在 Synology 群晖NAS系统中配置轩辕镜像加速
在飞牛fnOS系统中配置轩辕镜像加速
在极空间NAS中配置轩辕镜像加速
在爱快ikuai系统中配置轩辕镜像加速
在绿联NAS系统中配置轩辕镜像加速
在威联通NAS系统中配置轩辕镜像加速
在 Podman 中配置轩辕镜像加速,支持多系统
配置轩辕镜像加速9大主流镜像仓库,包含详细配置步骤
无需登录即可使用轩辕镜像加速服务,更加便捷高效
需要其他帮助?请查看我们的 常见问题 或 官方QQ群: 13763429