承接 amin0x/hl7_php_api_lib 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

amin0x/hl7_php_api_lib

Composer 安装命令:

composer require amin0x/hl7_php_api_lib

包简介

project to implement Nabidh HL7

README 文档

README

project to implement Nabidh HL7 using PHP

Amin Omer garogigi@gmail.com

install

composer require amin0x/hl7_php_api_lib

useage

Patient transfer message

$nabidh = new Nabidh();
$pt = new ADT_A02_Patient_Transfer();
$pt->getMSH()->setSendingFacility('TESTHOS20');
$pt->getMSH()->setDateTimeofMessage(date('YmdHis'));
$pt->getMSH()->setProcessingID('D');

$pt->getPID()->setDateTimeofBirth(date('Ymd', strtotime('19990507')));
$pt->getPID()->setPhoneNumberHome('0123456789', 'abc@example.com');
$pt->getPID()->addPatientIdentifierList('123123','TESTHOS20', 'MRN');
$pt->getPID()->setPatientAddress('Dubai', 'Dubai', '', '784');
$pt->getPID()->setPatientName('amin', 'o', 'mohamed');
$pt->getPID()->setLastUpdateDateTime(date('YmdHis'));
$pt->getPID()->setAdministrativeSex('M');
$pt->getPID()->setPrimaryLanguage('ENG');
$pt->getPID()->setNationality(Nationality::Canadian[0]);
$pt->getPID()->setMaritalStatus('M');
$pt->getPID()->setReligion('MOS');
$pt->getPID()->setSSNNumberPatient('111111111111111');
$pt->getPID()->setPatientDeathIndicator('N');
$pt->getPID()->setIdentityUnknownIndicator('T');

$pt->getEVN()->setRecordedDateTime(date('YmdHis'));
$pt->getEVN()->setEventFacility('1111111');
$pt->getEVN()->setEventTypeCode('A02');
$pt->getEVN()->setEventOccurred(date('YmdHis'));

$pt->getPV1()->setID(1);
$pt->getPV1()->setAdmissionType('O');
$pt->getPV1()->setAdmitDateTime(date('YmdHis'));
$pt->getPV1()->setHospitalService(HospitalService::Unknown);
$pt->getPV1()->setVisitNumber('99999');

$apl = new PL();
$apl->setPointOfCare('');
$apl->setFacility('TCODE10');
$apl->setLocationDescription('Test Hospital 20');
$pt->getPV1()->setAssignedPatientLocation($apl);

$AttendingDoctor = new XCN();
$AttendingDoctor->setIdNumber('445566');
$AttendingDoctor->setLastName('Ahmed');
$AttendingDoctor->setFirstName('omer');
$AttendingDoctor->setMiddleName('mohamed');
$AttendingDoctor->setAssigningAuthority('SHERYAN');
$AttendingDoctor->setPrefex('Dr.');
$pt->getPV1()->setAttendingDoctor($AttendingDoctor);

$res = $nabidh->sendMessage($pt, 'http://example.com/adt?app_id=&api_key=');
if ($res !== false && $res->isSuccess()){
    //success
} else {
    //error
}

Patient Admit

$nabidh = new Nabidh();
$pt = new ADT_A01_Admit_Patient();
$pt->getMSH()->setSendingFacility('TESTHOS20');
$pt->getMSH()->setDateTimeofMessage(date('YmdHis'));
$pt->getMSH()->setProcessingID('D');
$pt->getPID()->setAdministrativeSex('M');
$pt->getPID()->setDateTimeofBirth(date('Ymd', strtotime('19990507')));
$pt->getPID()->setPhoneNumberHome('0123456789', 'abc@example.com');
$pt->getEVN()->setRecordedDateTime(date('r'));
$pt->getEVN()->setEventFacility('TCODE10');

$pt->getPID()->addPatientIdentifierList('123123', 'TESTHOS20', 'PPN');
$pt->getPID()->setPatientAddress('abc', 'abc state', '123', 'UK');
$pt->getPID()->setNationality('USA');
$pt->getPID()->setPhoneNumberHome('0123456789');

$apl = new PL();
$apl->setFacility('TCODE10');
$apl->setLocationDescription('Test Hospital 20');
$pt->getPV1()->setAssignedPatientLocation($apl); 

Supported Messages

  1. ADT_A01_Admit_Patient
  2. ADT_A02_Patient_Transfer
  3. ADT_A03_Discharge_Event
  4. ADT_A04_Register_Patient
  5. ADT_A05_Pre_Admit_Patient
  6. ADT_A06_Change_Outpatient_To_Inpatient
  7. ADT_A07_Change_Inpatient_To_Outpatient
  8. ADT_A08_Update_Patient_Information
  9. ADT_A09_Patient_Departed
  10. ADT_A10_Patient_Arrived
  11. ADT_A11_Cancel_Admit
  12. ADT_A12_Cancel_Transfer
  13. ADT_A13_Cancel_discharge_event
  14. ADT_A23_Delete_Patient_Record
  15. ADT_A28_Add_patient_information
  16. ADT_A30_Merge_Patient_Information
  17. ADT_A31_Update_patient_information
  18. ADT_A39_Merge_Patient
  19. ADT_A47_Change_Patient_Identifier_List
  20. MDM_T02_Original_Document_Notification
  21. MDM_T11_Document_Cancel_Notification
  22. ORM_O01_Medication_Orders
  23. ORU_R01_Observation_Results
  24. PPR_PC1_Add_Probalem
  25. PPR_PC2_Update_Probalem
  26. PPR_PC3_Delete_Probalem
  27. VXU_V04_Vaccination_Record_Message

amin0x/hl7_php_api_lib 适用场景与选型建议

amin0x/hl7_php_api_lib 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4 次下载、GitHub Stars 达 2, 最近一次更新时间为 2022 年 03 月 08 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 amin0x/hl7_php_api_lib 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 amin0x/hl7_php_api_lib 我们能提供哪些服务?
定制开发 / 二次开发

基于 amin0x/hl7_php_api_lib 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2022-03-08