|
@ -207,23 +207,6 @@ public class SynchronizePatientService {
|
|
saveModifyList(modifyList);
|
|
saveModifyList(modifyList);
|
|
return "同步患者病历:" + re.getIdcard() + "----无住院病历信息";
|
|
return "同步患者病历:" + re.getIdcard() + "----无住院病历信息";
|
|
}
|
|
}
|
|
// int count = patientDischargeDao.isPatientExist(patient.getIdcard(), doctor.getId());//判断康复计划表是否已存该居名
|
|
|
|
// if (count > 0) {//该患者已存在该团队中 修改分配状态
|
|
|
|
// infoUpdate(tmpList,6,modifyList,null);
|
|
|
|
// } else {//添加下转居名
|
|
|
|
// PatientDischargeDO patientDischargeDO = new PatientDischargeDO();
|
|
|
|
// patientDischargeDO.setCode(UUID.randomUUID().toString().replaceAll("-", ""));
|
|
|
|
// patientDischargeDO.setType(2);//下转列表type==2
|
|
|
|
// patientDischargeDO.setPatient(patient.getId());
|
|
|
|
// patientDischargeDO.setName(patient.getName());
|
|
|
|
// patientDischargeDO.setIdcard(patient.getIdcard());
|
|
|
|
// patientDischargeDO.setSsc(patient.getSsc());
|
|
|
|
// patientDischargeDO.setAddress(patient.getAddress());
|
|
|
|
// patientDischargeDO.setCreateUser(doctor.getId());
|
|
|
|
// patientDischargeDO.setCreateUserName(doctor.getName());
|
|
|
|
// patientDischargeDO.setCreateTime(new Date());
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
com.alibaba.fastjson.JSONObject tem = temlist.getJSONObject(0);
|
|
com.alibaba.fastjson.JSONObject tem = temlist.getJSONObject(0);
|
|
|
|
|
|
@ -482,25 +465,7 @@ public class SynchronizePatientService {
|
|
// }
|
|
// }
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
// int count = patientDischargeDao.isPatientExist(patient.getIdcard(), doctor.getId());//判断康复计划表是否已存该居名
|
|
|
|
// if (count > 0) {//该患者已存在该团队中 修改分配状态
|
|
|
|
// isPatientExist = true;//不推送下转消息
|
|
|
|
// results.append(re.getIdcard() + "--患者已存于医生:"+doctor.getName()+"康复下转列表中,修改分配状态\n");
|
|
|
|
// logger.info("康复计划自动下转————" + re.getIdcard() + "--患者已存于医生:"+doctor.getName()+"康复下转列表中,修改分配状态");
|
|
|
|
// infoUpdate(tmpList,6,modifyList,null);
|
|
|
|
// } else {//添加下转居名
|
|
|
|
// PatientDischargeDO patientDischargeDO = new PatientDischargeDO();
|
|
|
|
// patientDischargeDO.setCode(UUID.randomUUID().toString().replaceAll("-", ""));
|
|
|
|
// patientDischargeDO.setType(2);//下转列表type==2
|
|
|
|
// patientDischargeDO.setPatient(patient.getId());
|
|
|
|
// patientDischargeDO.setName(patient.getName());
|
|
|
|
// patientDischargeDO.setIdcard(patient.getIdcard());
|
|
|
|
// patientDischargeDO.setSsc(patient.getSsc());
|
|
|
|
// patientDischargeDO.setAddress(patient.getAddress());
|
|
|
|
// patientDischargeDO.setCreateUser(doctor.getId());
|
|
|
|
// patientDischargeDO.setCreateUserName(doctor.getName());
|
|
|
|
// patientDischargeDO.setCreateTime(new Date());
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if (!needCreateRehabilitationPlan(hos.getCode())) {//仅厦心进行自动下转至已下转 //厦心不推送消息
|
|
// if (!needCreateRehabilitationPlan(hos.getCode())) {//仅厦心进行自动下转至已下转 //厦心不推送消息
|
|
// if(!isPatientExist){//患者不存在与医生原有的康复列表中,添加推送消息
|
|
// if(!isPatientExist){//患者不存在与医生原有的康复列表中,添加推送消息
|
|
// successSync = addSyncPatientInfo(successSync, doctor.getId(), doctor.getName(), teamId, adminTeam.getName(), hos.getCode(), hos.getName(), patient.getId(),0);
|
|
// successSync = addSyncPatientInfo(successSync, doctor.getId(), doctor.getName(), teamId, adminTeam.getName(), hos.getCode(), hos.getName(), patient.getId(),0);
|
|
@ -781,25 +746,7 @@ public class SynchronizePatientService {
|
|
// }
|
|
// }
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
// int count = patientDischargeDao.isPatientExist(patient.getIdcard(), doctor.getId());//判断康复计划表是否已存该居名
|
|
|
|
// if (count > 0) {//该患者已存在该团队中 修改分配状态
|
|
|
|
// isPatientExist = true;//不推送下转消息
|
|
|
|
// results.append(re.getIdcard() + "--患者已存于医生:"+doctor.getName()+"康复下转列表中,修改分配状态\n");
|
|
|
|
// logger.info("康复计划自动下转————" + re.getIdcard() + "--患者已存于医生:"+doctor.getName()+"康复下转列表中,修改分配状态");
|
|
|
|
// infoUpdate(tmpList,6,modifyList,null);
|
|
|
|
// } else {//添加下转居名
|
|
|
|
// PatientDischargeDO patientDischargeDO = new PatientDischargeDO();
|
|
|
|
// patientDischargeDO.setCode(UUID.randomUUID().toString().replaceAll("-", ""));
|
|
|
|
// patientDischargeDO.setType(2);//下转列表type==2
|
|
|
|
// patientDischargeDO.setPatient(patient.getId());
|
|
|
|
// patientDischargeDO.setName(patient.getName());
|
|
|
|
// patientDischargeDO.setIdcard(patient.getIdcard());
|
|
|
|
// patientDischargeDO.setSsc(patient.getSsc());
|
|
|
|
// patientDischargeDO.setAddress(patient.getAddress());
|
|
|
|
// patientDischargeDO.setCreateUser(doctor.getId());
|
|
|
|
// patientDischargeDO.setCreateUserName(doctor.getName());
|
|
|
|
// patientDischargeDO.setCreateTime(new Date());
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if (!needCreateRehabilitationPlan(hos.getCode())) {//仅厦心进行自动下转至已下转 //厦心不推送消息
|
|
// if (!needCreateRehabilitationPlan(hos.getCode())) {//仅厦心进行自动下转至已下转 //厦心不推送消息
|
|
// if(!isPatientExist){//患者不存在与医生原有的康复列表中,添加推送消息
|
|
// if(!isPatientExist){//患者不存在与医生原有的康复列表中,添加推送消息
|
|
// successSync = addSyncPatientInfo(successSync, doctor.getId(), doctor.getName(), teamId, adminTeam.getName(), hos.getCode(), hos.getName(), patient.getId(),0);
|
|
// successSync = addSyncPatientInfo(successSync, doctor.getId(), doctor.getName(), teamId, adminTeam.getName(), hos.getCode(), hos.getName(), patient.getId(),0);
|