|
@@ -2063,9 +2063,13 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
|
|
|
mzZyReq.setIcdTextNew(mzPrescriptionVo.getIcdText());
|
|
|
if (mzZyReq.getIcdCodeNew() != null && mzZyReq.getIcdCodeNew().length() > 10) {
|
|
|
mzZyReq.setIcdCode(mzZyReq.getIcdCodeNew().substring(0, 9));
|
|
|
+ }else {
|
|
|
+ mzZyReq.setIcdCode(mzZyReq.getIcdCodeNew());
|
|
|
}
|
|
|
if (mzZyReq.getIcdTextNew() != null && mzZyReq.getIcdTextNew().length() > 25) {
|
|
|
mzZyReq.setIcdText(mzZyReq.getIcdTextNew().substring(0, 20));
|
|
|
+ }else {
|
|
|
+ mzZyReq.setIcdText(mzZyReq.getIcdTextNew());
|
|
|
}
|
|
|
if (StringUtils.isBlank(mzZyReq.getIcdText())) {
|
|
|
if(StringUtils.isNotBlank(mzPrescriptionVo.getMzBlRecord().getTentativeDiagnosis())){
|
|
@@ -2074,9 +2078,7 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
|
|
|
if(mzPrescriptionVo.getMzBlRecord().getTentativeDiagnosis().length()>25){
|
|
|
mzZyReq.setIcdText(mzZyReq.getIcdTextNew().substring(0, 20));
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
if (mzZyReq.getIcdCode() == null) {
|
|
|
mzZyReq.setIcdCode("");
|
|
@@ -2470,16 +2472,16 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
|
|
|
}
|
|
|
mzPrescriptionVo.setIcdText(icdText);
|
|
|
mzPrescriptionVo.setMzBlRecord(mzBlRecord);
|
|
|
+ if (MzBlRecordFlag) {
|
|
|
+ //只需要构造病历信息,不需要设置用药和诊疗信息
|
|
|
+ return mzPrescriptionVo;
|
|
|
+ }
|
|
|
if (mzBlRecord.getEmrProcess() != null && mzBlRecord.getEmrProcess().indexOf("收住院") >= 0) {
|
|
|
List<MzZyReq> mzZyReqs = mzZyReqMapper.selectMzZyReqByPatientId(patientId);
|
|
|
if (mzZyReqs != null && mzZyReqs.size() > 0) {
|
|
|
mzPrescriptionVo.setMzZyReq(mzZyReqs.get(0));
|
|
|
}
|
|
|
}
|
|
|
- if (MzBlRecordFlag) {
|
|
|
- //只需要构造病历信息,不需要设置用药和诊疗信息
|
|
|
- return mzPrescriptionVo;
|
|
|
- }
|
|
|
List<MzChargeDetail> mzChargeDetailList = mzChargeDetailMapper.selectMzChargeDetailByPatientId("mz_charge_detail", patientId, times, null, payMark);
|
|
|
//给药方式的收费项目
|
|
|
List<MzChargeDetail> supplyList = new ArrayList<>();
|