|
@@ -16,6 +16,7 @@ import cn.hnthyy.thmz.entity.his.mz.PatientAllergenInfo;
|
|
|
import cn.hnthyy.thmz.entity.his.yp.YpBaseYf;
|
|
|
import cn.hnthyy.thmz.entity.his.yp.YpPdQueue;
|
|
|
import cn.hnthyy.thmz.entity.his.yp.YpZdDict;
|
|
|
+import cn.hnthyy.thmz.entity.his.zd.MzZdInstructionCode;
|
|
|
import cn.hnthyy.thmz.entity.his.zd.ZdCommon;
|
|
|
import cn.hnthyy.thmz.entity.his.zd.ZdUnitCode;
|
|
|
import cn.hnthyy.thmz.entity.thmz.RadSendRecord;
|
|
@@ -37,6 +38,7 @@ import cn.hnthyy.thmz.service.his.yp.YpPdQueueService;
|
|
|
import cn.hnthyy.thmz.service.his.yp.YpZdDictService;
|
|
|
import cn.hnthyy.thmz.service.his.yp.YpZdManufactoryService;
|
|
|
import cn.hnthyy.thmz.service.his.zd.MzYshZdFysmService;
|
|
|
+import cn.hnthyy.thmz.service.his.zd.MzZdInstructionCodeService;
|
|
|
import cn.hnthyy.thmz.service.his.zd.ZdAllergenService;
|
|
|
import cn.hnthyy.thmz.service.his.zd.ZdUnitCodeService;
|
|
|
import cn.hnthyy.thmz.service.thmz.DispensingSocketService;
|
|
@@ -114,6 +116,8 @@ public class MzPharmacyController {
|
|
|
private ZdAllergenService zdAllergenService;
|
|
|
@Autowired
|
|
|
private MzDrugTracCodgService mzDrugTracCodgService;
|
|
|
+ @Autowired
|
|
|
+ private MzZdInstructionCodeService mzZdInstructionCodeService;
|
|
|
/**
|
|
|
* 查询处方信息
|
|
|
*
|
|
@@ -880,7 +884,16 @@ public class MzPharmacyController {
|
|
|
map.put("frequencyName", chargeDetail.getFrequency());
|
|
|
}
|
|
|
map.put("jzFlag", chargeDetail.getJzFlag());//急诊标记
|
|
|
- map.put("instructionText", chargeDetail.getInstructionText());//嘱托说明
|
|
|
+ if(StringUtils.isNotBlank(chargeDetail.getInstructionCode())){
|
|
|
+ MzZdInstructionCode zt = mzZdInstructionCodeService.selectMzZdInstructionByCode(chargeDetail.getInstructionCode());
|
|
|
+ if(null == zt || StringUtils.isBlank(zt.getInstructionText())){
|
|
|
+ map.put("instructionText", chargeDetail.getInstructionText());//嘱托说明
|
|
|
+ } else {
|
|
|
+ map.put("instructionText", zt.getInstructionText());//嘱托说明
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ map.put("instructionText", chargeDetail.getInstructionText());//嘱托说明
|
|
|
+ }
|
|
|
map.put("tryResult", chargeDetail.getTryResult());//皮试结果
|
|
|
map.put("tryFlag", chargeDetail.getTryFlag());//是否需要皮试
|
|
|
map.put("drugWin", chargeDetail.getDrugWin());
|
|
@@ -1013,7 +1026,16 @@ public class MzPharmacyController {
|
|
|
map.put("frequencyName", chargeDetail.getFrequency());
|
|
|
}
|
|
|
map.put("jzFlag", chargeDetail.getJzFlag());//急诊标记
|
|
|
- map.put("instructionText", chargeDetail.getInstructionText());//嘱托说明
|
|
|
+ if(StringUtils.isNotBlank(chargeDetail.getInstructionCode())){
|
|
|
+ MzZdInstructionCode zt = mzZdInstructionCodeService.selectMzZdInstructionByCode(chargeDetail.getInstructionCode());
|
|
|
+ if(null == zt || StringUtils.isBlank(zt.getInstructionText())){
|
|
|
+ map.put("instructionText", chargeDetail.getInstructionText());//嘱托说明
|
|
|
+ } else {
|
|
|
+ map.put("instructionText", zt.getInstructionText());//嘱托说明
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ map.put("instructionText", chargeDetail.getInstructionText());//嘱托说明
|
|
|
+ }
|
|
|
map.put("tryResult", chargeDetail.getTryResult());//皮试结果
|
|
|
map.put("tryFlag", chargeDetail.getTryFlag());//是否需要皮试
|
|
|
map.put("drugWin", chargeDetail.getDrugWin());
|