nikitakls/cda
Composer 安装命令:
composer require nikitakls/cda
包简介
A package to create cda files for n3health
README 文档
README
Create HL7-CDA (tm) documents in PHP.
This library has some Australian CDA Extensions enabled.
This library is a work in progress and does not currently provide full CDA coverage.
Usage
To see how to use the library check out the tests folder. ClinicalDocument_test and NCTIS_test are good starting points.
Manage references
Each ClinicalDocument has its own ReferenceManager, which help to manage references across documents.
ReferenceType may be added on some elements to create a reference :
$doc = new ClinicalDocument();
$refManager = $doc->getReferenceManager();
// create an element 'element' which may have a reference
$element->setReference($refManager->getReferenceType('my_reference'));
// will create <element ID="my_reference">blabla</element>
// add the reference in a text
$text->setText($refManager->getReferenceElement('my_reference'));
// will create <text><reference value="my_reference" /></text>
Run tests
- Run composer to load phpunit and build autoload :
composer install
- Run tests
you might see the the file phpunit-debug in the tests, the file sets up command line debugging for intellij:
export XDEBUG_CONFIG="idekey=phpstorm-xdebug";
phpunit $@
tests are structured so you can run the tests per group. look for the @group docblock in each test file.
Version History
Version 1.0.0
This version has undergone significant refactoring and has had many more tags implemented. There has been some customisation to the Australian context. The NCTIS_test implements the code examples for an event summary CDA document.
In this version there is now a lot better checking of tag attributes such as moodCodes, classCodes, TypeCodes. These acceptable codes are enumerated in their Interfaces. Check out ClassCodeInterface for an example. The possible attributes for each tag are derived from the schema documents and set using the setAcceptable< Attribute >Codes methods.
PHP Traits have been used extensively to improve the code-styling/readability and to reduce unnecessary code duplication.
Note that while every effort was made to maintain compatibility with the previous version some changes were required, and some breaking changes were made.
Version 0.1.0
First release
nikitakls/cda 适用场景与选型建议
nikitakls/cda 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 96 次下载、GitHub Stars 达 1, 最近一次更新时间为 2023 年 03 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 nikitakls/cda 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nikitakls/cda 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 96
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-15