|
@ -559,14 +559,19 @@ public class PrescriptionInfoService extends BaseService {
|
|
pp.put("mobile", p.getMobile());
|
|
pp.put("mobile", p.getMobile());
|
|
|
|
|
|
rs.put("patient", pp);
|
|
rs.put("patient", pp);
|
|
|
|
|
|
SignFamily signFamily = signFamilyDao.findByIdcard(p.getIdcard());
|
|
|
|
Map<String, Object> sf = new HashedMap();
|
|
Map<String, Object> sf = new HashedMap();
|
|
sf.put("doctor", signFamily.getDoctor());
|
|
|
|
sf.put("hospital", signFamily.getHospital());
|
|
|
|
sf.put("doctorName", signFamily.getDoctorName());
|
|
|
|
sf.put("hospitalName", signFamily.getHospitalName());
|
|
|
|
|
|
|
|
|
|
SignFamily signFamily = signFamilyDao.findByIdcard(p.getIdcard());
|
|
|
|
if(signFamily!=null){
|
|
|
|
sf.put("doctor", signFamily.getDoctor());
|
|
|
|
sf.put("hospital", signFamily.getHospital());
|
|
|
|
sf.put("doctorName", signFamily.getDoctorName());
|
|
|
|
sf.put("hospitalName", signFamily.getHospitalName());
|
|
|
|
}else{
|
|
|
|
sf.put("doctor", prescription.getDoctor());
|
|
|
|
sf.put("hospital", prescription.getHospital());
|
|
|
|
sf.put("doctorName", prescription.getDoctorName());
|
|
|
|
sf.put("hospitalName", prescription.getHospitalName());
|
|
|
|
}
|
|
rs.put("signFamily", sf);
|
|
rs.put("signFamily", sf);
|
|
} else {
|
|
} else {
|
|
rs.put("patient", "");
|
|
rs.put("patient", "");
|
|
@ -1953,4 +1958,13 @@ public class PrescriptionInfoService extends BaseService {
|
|
logger.info("续方取消,随访记录同步取消失败:"+e.getMessage());
|
|
logger.info("续方取消,随访记录同步取消失败:"+e.getMessage());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public Boolean checkPatientWithPrescription(String patient){
|
|
|
|
List<Prescription> list = prescriptionDao.findByPatient(patient);
|
|
|
|
if(list!=null&&list.size()>0){
|
|
|
|
return true;
|
|
|
|
}else{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|