luscii/php-fhir-model
最新稳定版本:v4.0.0
Composer 安装命令:
composer require luscii/php-fhir-model
包简介
FHIR Model, parser and serializer
README 文档
README
This library is no longer maintained. It's been superseded by https://github.com/dcarbone/php-fhir-generated, our recommendation is to migrate to that library.
FHIR Model
This library includes a FHIR PHP model, together with serializers and parsers for JSON and XML. The code is generated by dcarbone/php-fhir, supplemented with tests.
Version: FHIR STU3
- Homepage: http://hl7.org/fhir/STU3/index.html
- Resource documentation: http://hl7.org/fhir/STU3/resourcelist.html
Installation
$ composer require luscii/php-fhir-model Usage
// src/example.php: require_once __DIR__ . '/../vendor/autoload.php'; $parser = new \HL7\FHIR\STU3\PHPFHIRResponseParser(false); $json = '{"resourceType":"Patient", etc...}'; $resource = $parser->parse($json); // Use $resource as an object
Can I submit changes to the code?
No for all code in src/, because this is the result of generating with dcarbone/php-fhir and will not be directly changed. Fixes and additions should be done in dcarbone/php-fhir and not here.
Pull requests with changes to src/ will be rejected unless they come from a repository maintainer, or are small enough to be reviewable manually: under 500 lines of code. It would be impossible to review the code resulting from running the generator: changes can consist of millions of lines of code.
Yes for all code in tests/ and the organizational files in the repository root, those are all handwritten.
How can I use older FHIR versions?
Older versions (DSTU1, DSTU2) are not suppored in this library, but you can generate the classes yourself with dcarbone/php-fhir.
What's the strategy for future FHIR versions?
When a future FHIR version gets released, we will probably add it next to the current version (separate namespace) or create a new library. We don't want to create a branch per version, because we want to support using multiple versions simultaneously in one application using Composer as a dependency manager.
How to keep this repository up to date?
For maintainers: to update the files in this repository, follow these steps.
- Clone https://github.com/dcarbone/php-fhir (the generator) and make sure it's up to date
- Run
./bin/generate.sh --versions STU3from the root of the generator - Copy the generated classes here
- Commit
Disclaimer
This repository is currently primarily intended for our own use. We cannot commit yet to maintain it in the future, but feel free to fork if this becomes an issue. That being said, please file issues, feedback or improvements.
luscii/php-fhir-model 适用场景与选型建议
luscii/php-fhir-model 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 46.05k 次下载、GitHub Stars 达 11, 最近一次更新时间为 2026 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「json」 「xml」 「parser」 「model」 「serializer」 「hl7」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 luscii/php-fhir-model 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 luscii/php-fhir-model 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 luscii/php-fhir-model 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Easy to use SDK with grabber for multiple platforms at once like YouTube, Dailymotion, Facebook and more.
Kinikit - PHP Application development framework MVC component
ext-json wrapper with sane defaults
A package to cast json fields, each sub-keys is castable
Load DOM document safety
An MT940 bank statement parser for PHP
统计信息
- 总下载量: 46.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 35
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2026-01-04