|
@ -1952,12 +1952,26 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
}
|
|
|
//下载银医通
|
|
|
net.sf.json.JSONObject object1 = entranceService.qutpatientBalance(outpatientDO.getCardNo(), demoFlag);
|
|
|
BaseDoctorDO doctorDO = baseDoctorDao.findById(doctor);
|
|
|
if (doctorDO == null) {
|
|
|
throw new RuntimeException("未找到医生信息");
|
|
|
}
|
|
|
logger.info("下载银医通");
|
|
|
String chargeType = null;
|
|
|
if (StringUtils.isNoneBlank(outpatientDO.getChargeType())){
|
|
|
if (outpatientDO.getChargeType().equalsIgnoreCase("33")){
|
|
|
chargeType = outpatientDO.getChargeType();
|
|
|
}
|
|
|
String chargeType = "";
|
|
|
if ("1".equalsIgnoreCase(outpatientDO.getOutpatientType())&&"1".equalsIgnoreCase(outpatientDO.getType())){
|
|
|
chargeType = doctorDO.getTwfzChargeType();
|
|
|
}else if ("1".equalsIgnoreCase(outpatientDO.getOutpatientType())&&"2".equalsIgnoreCase(outpatientDO.getType())){
|
|
|
chargeType = doctorDO.getSpfzChargeType();
|
|
|
}else if ("3".equalsIgnoreCase(outpatientDO.getOutpatientType())&&"1".equalsIgnoreCase(outpatientDO.getType())){
|
|
|
chargeType = doctorDO.getTwzxChargeType();
|
|
|
}else if ("3".equalsIgnoreCase(outpatientDO.getOutpatientType())&&"2".equalsIgnoreCase(outpatientDO.getType())){
|
|
|
chargeType = doctorDO.getSpzxChargeType();
|
|
|
}else if ("3".equalsIgnoreCase(outpatientDO.getOutpatientType())&&"3".equalsIgnoreCase(outpatientDO.getType())){
|
|
|
chargeType = doctorDO.getJyzxChargeType();
|
|
|
}else if ("2".equalsIgnoreCase(outpatientDO.getOutpatientType())){
|
|
|
chargeType = doctorDO.getXtfzChargeType();
|
|
|
}else {
|
|
|
chargeType = doctorDO.getChargeType();
|
|
|
}
|
|
|
net.sf.json.JSONObject rs = entranceService.BS10111(outpatientDO.getCardNo(), doctorMappingDO.getMappingCode(), outpatientDO.getDept(), chargeType, outpatientDO.getWinNo(), demoFlag);
|
|
|
net.sf.json.JSONObject res = rs.getJSONObject("resquest");
|
|
@ -10135,7 +10149,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
BaseDoctorDO doctorDO = baseDoctorDao.findById(outpatientDO.getDoctor());
|
|
|
|
|
|
outpatientDO.setMjz("mz");
|
|
|
outpatientDO.setStatus("1");
|
|
|
outpatientDO.setStatus("3");
|
|
|
outpatientDO.setCreateTime(new Date());
|
|
|
outpatientDO.setIdcard(patientDO.getIdcard());
|
|
|
outpatientDO.setCreateTime(new Date());
|