kyleweishaupt/php-icd10 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

kyleweishaupt/php-icd10

最新稳定版本:0.0.1

Composer 安装命令:

composer require kyleweishaupt/php-icd10

包简介

PHP ICD-10 Parser

README 文档

README

PHP library for parsing CMS Medicare ICD-10 Codes.

Install

Using Composer to install:

composer require kyleweishaupt/php-icd10

Usage

use ICD10Parser\ICD10Parser;

// From ordered .txt file
$filePath = __DIR __ . "/data/icd10cm_order_2023.txt";
$orderedCodes = ICD10Parser::fromFile($filePath)->toArray();

// Get the first code in the file
$firstCode = $orderedCodes[0];
var_dump($firstCode);

// object(ICD10Parser\ICD10CodeOrdered) {
//   ["order"]=> int(1)
//   ["code"] =>string(3) "A00"
//   ["valid"] => bool(false)
//   ["shortDescription"] => string(7) "Cholera"
//   ["longDescription"] => string(7) "Cholera"
// }

// Get code with decimal as string
$code = $firstCode->codeFormatted(); // A001 -> A00.1

// Or get from string contents (in case file loaded or ephemeral, etc.)
$orderedCodes = ICD10Parser::fromString($stringContents)->toArray();

Contributing

This may or may not be maintained in the future. If you need this functionality for a production environment, I highly recommend forking the repository.

License

This package is NOT affiliated with CMS and/or the U.S. government in any way, shape or form. There is no warranty whatsoever and using this package is entirely at your own risk. Any nefarious or malicious use is strictly forbidden.

Copyright (c) 2023-present, Licensed under The MIT License.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-29