|
@ -8,7 +8,6 @@ import com.yihu.wlyy.entity.doctor.team.sign.SignPatientLabelInfo;
|
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
|
import com.yihu.wlyy.entity.patient.PatientDisease;
|
|
|
import com.yihu.wlyy.entity.patient.SignFamily;
|
|
|
import com.yihu.wlyy.entity.patient.vo.PatientCodeDeviceType;
|
|
|
import com.yihu.wlyy.logs.BusinessLogs;
|
|
|
import com.yihu.wlyy.repository.doctor.DoctorDao;
|
|
|
import com.yihu.wlyy.repository.doctor.DoctorPatientGroupInfoDao;
|
|
@ -4500,7 +4499,7 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
* @param custom 自定义标签
|
|
|
* @return
|
|
|
*/
|
|
|
public int resetPatientLabels(String patient,String health, String disease, String custom,String doctor) {
|
|
|
public int resetPatientLabels(String patient,String health, String disease, String custom) {
|
|
|
|
|
|
Patient p = patientDao.findByCode(patient);
|
|
|
|
|
@ -4524,7 +4523,9 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
info.setCzrq(new Date());
|
|
|
info.setLabelType("2");
|
|
|
info.setPatient(patient);
|
|
|
info.setPname(p.getName());
|
|
|
info.setLabel(healths[i]);
|
|
|
info.setStatus(1);
|
|
|
String name = (String)healthMap.get(healths[i]).get("name");
|
|
|
info.setLabelName(name);
|
|
|
signPatientLabelInfoDao.save(info);
|
|
@ -4548,9 +4549,11 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
info.setCzrq(new Date());
|
|
|
info.setLabelType("3");
|
|
|
info.setPatient(patient);
|
|
|
info.setPname(p.getName());
|
|
|
info.setLabel(diseases[i]);
|
|
|
String name = (String)diseaseMap.get(diseases[i]).get("name");
|
|
|
info.setLabelName(name);
|
|
|
info.setStatus(1);
|
|
|
signPatientLabelInfoDao.save(info);
|
|
|
}
|
|
|
}
|
|
@ -4573,9 +4576,11 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
info.setCzrq(new Date());
|
|
|
info.setLabelType("4");
|
|
|
info.setPatient(patient);
|
|
|
info.setPname(p.getName());
|
|
|
info.setLabel(customs[i]);
|
|
|
String name = (String)customMap.get(customs[i]).get("name");
|
|
|
info.setLabelName(name);
|
|
|
info.setStatus(1);
|
|
|
signPatientLabelInfoDao.save(info);
|
|
|
}
|
|
|
}
|