|
@ -1902,6 +1902,7 @@ public class YkyyEntranceService {
|
|
|
String admNo= null;
|
|
|
String registNo=null;
|
|
|
String deptNo = null;
|
|
|
String prescriptionId=null;
|
|
|
if (inspectionDOS!=null&&inspectionDOS.size()!=0){
|
|
|
WlyyInspectionDO inspectionDO = inspectionDOS.get(0);
|
|
|
WlyyOutpatientDO outpatientDO = outpatientDao.findById(inspectionDO.getOutpatientId());
|
|
@ -1910,6 +1911,7 @@ public class YkyyEntranceService {
|
|
|
registNo = prescriptionDO.getRealOrder();
|
|
|
doctor=outpatientDO.getDoctor();
|
|
|
patient=outpatientDO.getPatient();
|
|
|
prescriptionId=prescriptionDO.getId();
|
|
|
}
|
|
|
for (WlyyInspectionDO wlyyInspectionDO:inspectionDOS){
|
|
|
YkEmrJcsqDO ykEmrJcsqDO = new YkEmrJcsqDO();
|
|
@ -1940,7 +1942,22 @@ public class YkyyEntranceService {
|
|
|
System.out.println(message.get("code")+"-----"+message.get("msg"));
|
|
|
if ("-1".equalsIgnoreCase(message.get("code").toString())){
|
|
|
logger.info("同步检查检验失败,错误信息为:"+message.get("msg").toString());
|
|
|
}else {
|
|
|
String msg = message.get("msg").toString();
|
|
|
JSONObject object = JSONObject.parseObject(msg);
|
|
|
JSONArray array = object.getJSONArray("detailModelList");
|
|
|
for (int i=0;i<array.size();i++){
|
|
|
JSONObject jsonObject = array.getJSONObject(i);
|
|
|
String xmid = jsonObject.getString("xmid");
|
|
|
String yjxh = jsonObject.getString("yjxh");
|
|
|
List<WlyyInspectionDO> inspectionDOList = wlyyInspectionDao.findByPrescriptionIdAndCode(prescriptionId,xmid,1);
|
|
|
for (WlyyInspectionDO inspectionDO:inspectionDOList){
|
|
|
inspectionDO.setHisCode(yjxh);
|
|
|
wlyyInspectionDao.save(inspectionDO);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
System.out.println(message.get("code")+"-----"+message.get("msg"));
|
|
|
}
|
|
|
|