public function showBingli($request, $response) {/*{{{*/ header('Content-Type: text/html; charset=gbk'); $domain = $request->getRequest('domain', URL_PREFIX.'zixun.haodf.com'); $type = $request->getRequest('type', 'qita'); $typeList = PatientAttachment::$typeList; $typeDetail = $typeList[$type]; $tplContent = ''; if($typeDetail['type'] == PatientAttachment::TYPE_HUAYANDAN) { $tplContent = BingLiTpl::getTplContent($type); } $response->typeDetail = $typeDetail; $response->tplContent = $tplContent; $response->type = $type; $response->domain = $domain; //随访复查用 $questionCategoryId = ''; $questionCategoryId = $request->questionCategoryId; $response->questionCategoryId = $questionCategoryId; $response->userId = $request->userId; //多患者 $patientId = $request->patientId; $response->patientId = $patientId; if(false == empty($patientId)) { //传过来patient以后,要用patient的user $patient = DAL::get()->find('Patient', $patientId); $user = $patient->user; $response->userId = $user->id; } if(null != $request->hoskey) { $dateyear = $request->dateyear; $datemonth = $request->datemonth; $dateday = $request->dateday; $hosInfo = AskSessionInfo::getSinglePatientInfos(NodeObj::NODE_DEFINE_HOSPITAL, $request->hoskey); $date = AskSessionInfo::assembleDate($dateyear, $datemonth, $dateday); $response->date = $date; $response->hosKey = $request->hoskey; $itemName = $request->projectname; $response->itemName = $this->js_unescape($itemName); $response->hospitalName = isset($hosInfo->hospitalName)?$hosInfo->hospitalName:''; $response->facultyName = isset($hosInfo->facultyName)?$hosInfo->facultyName:''; } if($request->bingli4space) { return 'space'; } else { return 'default'; } }/*}}}*/
public function medicineChip($request, $response) {/*{{{*/ try{ $medicineAndNum = $request->id; $medicineAndNumList = explode('_', $medicineAndNum); $medicineKey = $medicineAndNumList[0]; $response->num = $medicineAndNumList[1]; $medicineName = XString::convertToGbk($request->medicineName); $medicineDesc = XString::convertToGbk($request->medicineDesc); $medicine = BingLiDto::createMedicineDto($medicineName, $medicineDesc); $newMedicineKey = AskSessionInfo::modifyPatientInfo(NodeObj::NODE_DEFINE_MEDICINE, $medicineKey, $medicine); $medicineInfo = AskSessionInfo::getSinglePatientInfos(NodeObj::NODE_DEFINE_MEDICINE, $newMedicineKey); $response->medicineInfo = $medicineInfo; $response->newMedicineKey = $newMedicineKey; } catch(IllegalWordsException $ex){ echo '非法词汇'; return parent::DIRECT_OUTPUT; } }/*}}}*/
<?php header("Content-Type:text/html; charset=gb2312"); if($treatment->treatedHospitalId > 0) { $hospital = AskSessionInfo::getSinglePatientInfos(NodeObj::NODE_DEFINE_HOSPITAL, $treatment->treatedHospitalId); } ?> <div class="mt20 treatMsgBox lh200 treatmentInfor f14 w580"> <div class="clearfix mt20"> <div class="fl f14 zxPost-check-item w580"> <div class="f14 ml10 lh180"> <p> <span class="fb">治疗时间:</span><?=$treatment->beginTime?substr($treatment->beginTime,0,10):'未填'?>至<?=$treatment->endTime?substr($treatment->endTime,0,10):'未填'?> </p> <p> <span class="fb">医院科室:</span><?=XString::changeBlank2nbspAndLtrim($hospital->hospitalName?$hospital->hospitalName:'未填')?> <?=XString::changeBlank2nbspAndLtrim($hospital->facultyName?$hospital->facultyName:'未填')?> </p> <div class="clearfix"> <span class="fb fl">治疗信息:</span> <p class="oh zoom"> <?=XString::changeBlank2nbspAndLtrim($treatment->treatmentDesc?$treatment->treatmentDesc:'未填')?> </p> </div> </div> </div> </div> </div> <div class="addMsg pr zoom f14 mt40"> <p><a href="javascript:" class="addMsg-btn blue" id="addTreatMsg-btn">新增以往治疗信息</a></p> <div class="addMsg-Box pa top36 none" id="addTreatMsg-Box"> <p id="treatmentErr" class="ml80 visibility h20"></p>