|
|
|
@ -45,7 +45,7 @@ class CSharpController extends Controller
|
|
|
|
//查询his获取检查申请单
|
|
|
|
//查询his获取检查申请单
|
|
|
|
$patientHisTypeMap = [
|
|
|
|
$patientHisTypeMap = [
|
|
|
|
0 => '03', // I - 住院
|
|
|
|
0 => '03', // I - 住院
|
|
|
|
1 => 'O1', // O - 门诊
|
|
|
|
1 => '01', // O - 门诊
|
|
|
|
2 => '02', // E - 急诊
|
|
|
|
2 => '02', // E - 急诊
|
|
|
|
3 => '04', // H - 体检
|
|
|
|
3 => '04', // H - 体检
|
|
|
|
];
|
|
|
|
];
|
|
|
|
@ -92,20 +92,35 @@ class CSharpController extends Controller
|
|
|
|
'age' => \Tools::calculateAge($entrust->user_brithday),
|
|
|
|
'age' => \Tools::calculateAge($entrust->user_brithday),
|
|
|
|
'identifyid' => $entrust->idCardNumber,
|
|
|
|
'identifyid' => $entrust->idCardNumber,
|
|
|
|
'mobilephone' => $entrust->user_phone,
|
|
|
|
'mobilephone' => $entrust->user_phone,
|
|
|
|
|
|
|
|
'home_detail_address'=>$hisInfo['address']??'',
|
|
|
|
'visitinfo' => [
|
|
|
|
'visitinfo' => [
|
|
|
|
'visitsqno' => $entrust->episodeid,
|
|
|
|
'visitsqno' => $entrust->episodeid,
|
|
|
|
|
|
|
|
'inpatientno'=>$hisInfo['patientNo']??'',
|
|
|
|
|
|
|
|
'outpatientno'=>$hisInfo['cardNo']??'',
|
|
|
|
|
|
|
|
'caseno'=>$hisInfo['markNo']??'',
|
|
|
|
'source' => $patientTypeMap[$entrust->patient_type],
|
|
|
|
'source' => $patientTypeMap[$entrust->patient_type],
|
|
|
|
|
|
|
|
'bed_no' => $hisInfo['bedNo']??'',
|
|
|
|
|
|
|
|
'inpatientareacode' => $hisInfo['areaCode']??'',
|
|
|
|
|
|
|
|
'inpatientarea' => $hisInfo['areaName']??'',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'applyinfo' => [
|
|
|
|
'applyinfo' => [
|
|
|
|
'accessionnumber' => $entrust->app_num,
|
|
|
|
'accessionnumber' => $entrust->app_num,
|
|
|
|
'hisapplytime' => $entrust->reservation_date . ' ' . $reservation_time,//与pacs 张工沟通 传 预约的日期
|
|
|
|
'hisapplytime' => $entrust->reservation_date . ' ' . $reservation_time,//与pacs 张工沟通 传 预约的日期
|
|
|
|
|
|
|
|
'hisapplydeptcode'=> $hisInfo['orderDeptCode']??'',
|
|
|
|
|
|
|
|
'hisapplydept'=> $hisInfo['orderDeptName']??'',
|
|
|
|
|
|
|
|
'hisapplydoctorcode'=> $hisInfo['orderPersonCode']??'',
|
|
|
|
|
|
|
|
'hisapplydoctor'=> $hisInfo['orderPersonName']??'',
|
|
|
|
|
|
|
|
'diagnosis'=> $hisInfo['diagnosisName']??'',
|
|
|
|
'applyorderinfo' => [
|
|
|
|
'applyorderinfo' => [
|
|
|
|
'orderno' => $entrust->entrust_id,
|
|
|
|
'orderno' => $entrust->entrust_id,
|
|
|
|
|
|
|
|
'bodypartexamined' => $hisInfo['examPosiBigName']??'',
|
|
|
|
|
|
|
|
'studyclass1his' => $hisInfo['requestTypeName']??'',
|
|
|
|
'checkitemcode' => $entrust->entrust_code,
|
|
|
|
'checkitemcode' => $entrust->entrust_code,
|
|
|
|
'checkitemname' => $entrust->entrust,
|
|
|
|
'checkitemname' => $entrust->entrust,
|
|
|
|
|
|
|
|
'factprice' =>$hisInfo['itemList'][0]['itemCost']??'',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'hisinfo' => $hisInfo,
|
|
|
|
'hisinfo'=>$hisInfo
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|