123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?php
- namespace app\common\library;
- use think\facade\Config;
- /**
- * 检查检验参数处理
- */
- class Handle
- {
- /*
- * 主索引ID
- */
- public static function makeMpi():string
- {
- return date('YmdHis').rand(100000,999999);
- }
- /*
- * 主索引ID
- */
- public static function makeMpiKey($idCard):string
- {
- return md5($idCard);
- }
- // /*
- // * 就诊患者标识
- // */
- // public static function makePatientCode($code,$seriesNum): string
- // {
- // return md5($code.$seriesNum);
- // }
- /*
- * 就诊患者标识
- */
- public static function makePatientCode($mpi, $code, $seriesNum): string
- {
- return md5($mpi.$code.$seriesNum);
- }
- /*
- * 检查申请单标识
- */
- public static function makeApplicationCode($code,$requestId): string
- {
- return md5($code.$requestId);
- }
- /*
- * 检验申请单标识
- */
- public static function makeMedicalOrderCode($code,$orderId,$labItemCode): string
- {
- return md5($code.$orderId.$labItemCode);
- }
- /*
- * 检查报告标识
- */
- public static function makeExamReportCode($patientCode, $reportId):string
- {
- return md5($patientCode.$reportId);
- }
- /*
- * 检验报告单标识
- */
- public static function makeInspectReportCode($patientCode, $reportId):string
- {
- return md5($patientCode.$reportId);
- }
-
- /*
- *
- */
- public static function makeInspectReportItemCode($inspectReportCode, $labItemCode): string
- {
- return md5($inspectReportCode.$labItemCode);
- }
- }
|