|
@ -16,6 +16,7 @@ import com.yihu.wlyy.repository.patient.PatientDao;
|
|
import com.yihu.wlyy.service.system.SystemDictService;
|
|
import com.yihu.wlyy.service.system.SystemDictService;
|
|
import com.yihu.wlyy.task.FollowupUploadTask;
|
|
import com.yihu.wlyy.task.FollowupUploadTask;
|
|
import com.yihu.wlyy.util.DateUtil;
|
|
import com.yihu.wlyy.util.DateUtil;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.data.domain.PageRequest;
|
|
import org.springframework.data.domain.PageRequest;
|
|
import org.springframework.data.domain.Pageable;
|
|
import org.springframework.data.domain.Pageable;
|
|
@ -67,6 +68,12 @@ public class FollowUpService extends BaseService {
|
|
re.put("patientCode",patientCode);
|
|
re.put("patientCode",patientCode);
|
|
re.put("patientName",patient.getName());
|
|
re.put("patientName",patient.getName());
|
|
re.put("idcard",patient.getIdcard());
|
|
re.put("idcard",patient.getIdcard());
|
|
|
|
String mobile = patient.getMobile();
|
|
|
|
if(StringUtils.isEmpty(mobile))
|
|
|
|
{
|
|
|
|
mobile = patient.getMobileRemarks();
|
|
|
|
}
|
|
|
|
re.put("mobile", mobile);
|
|
re.put("sex",String.valueOf(patient.getSex()));
|
|
re.put("sex",String.valueOf(patient.getSex()));
|
|
re.put("birthday",DateUtil.dateToStrLong(patient.getBirthday()));
|
|
re.put("birthday",DateUtil.dateToStrLong(patient.getBirthday()));
|
|
re.put("photo",patient.getPhoto());
|
|
re.put("photo",patient.getPhoto());
|
|
@ -209,6 +216,25 @@ public class FollowUpService extends BaseService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
*编辑随访计划
|
|
|
|
*/
|
|
|
|
public void editFollowupPlan(String doctorCode,String id,String date,String followupType) throws Exception {
|
|
|
|
Followup followup = followupDao.findOne(Long.valueOf(id));
|
|
|
|
if(followup!=null)
|
|
|
|
{
|
|
|
|
followup.setFollowupDate(DateUtil.strToDate(date));
|
|
|
|
followup.setFollowupType(followupType);
|
|
|
|
followup.setCreater(doctorCode);
|
|
|
|
|
|
|
|
followupDao.save(followup);
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
throw new Exception("not exit follow:"+id+".\r\n");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
*开始随访记录
|
|
*开始随访记录
|
|
*/
|
|
*/
|