|
@ -78,6 +78,7 @@ public class RehabilitationManageService extends BaseService {
|
|
|
private String saveRehabilitationOperateRecord ="/svr-specialist/saveRehabilitationOperateRecord";//新增operateRecodr
|
|
|
private String updateNoteAndImageRehabilitationOperate ="/svr-specialist/updateNoteAndImageRehabilitationOperate";//康复计划完成时更新服务完成笔记和图片接口;
|
|
|
private String updatePlanDetailStatusById = "/svr-specialist/updatePlanDetailStatusById";//康复管理-更新康复计划服务项目状态
|
|
|
private String planSchedule = "/svr-specialist/planSchedule";//康复管理-计划总进度
|
|
|
/************************************************************* end ************************************************************************/
|
|
|
|
|
|
/**
|
|
@ -145,7 +146,10 @@ public class RehabilitationManageService extends BaseService {
|
|
|
HttpResponse response = HttpUtils.doGet(specialistUrl + findRehabilitationPlanDetailList, param);
|
|
|
JSONObject result = new JSONObject(response.getContent());
|
|
|
if(result.getInt("status")==200){
|
|
|
return result.getJSONObject("obj");
|
|
|
JSONObject jsonObject = result.getJSONObject("obj");
|
|
|
Patient p = patientDao.findByCode(patientCode);
|
|
|
jsonObject.put("patientPhoto",p.getPhoto());
|
|
|
return jsonObject;
|
|
|
}
|
|
|
throw new Exception("请求微服务失败!");
|
|
|
}
|
|
@ -598,4 +602,30 @@ public class RehabilitationManageService extends BaseService {
|
|
|
throw new Exception("请求微服务失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 康复管理-计划总进度
|
|
|
* @param planId
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public JSONObject planSchedule(String planId,String patientCode) throws Exception{
|
|
|
Map<String, Object> param = new HashedMap();
|
|
|
param.put("planId", planId);
|
|
|
HttpResponse response = HttpUtils.doGet(specialistUrl + planSchedule, param);
|
|
|
JSONObject result = new JSONObject(response.getContent());
|
|
|
if(result.getInt("status")==200){
|
|
|
JSONObject json = result.getJSONObject("obj");
|
|
|
Patient p = patientDao.findByCode(patientCode);
|
|
|
Integer age = IdCardUtil.getAgeForIdcard(p.getIdcard());
|
|
|
String sex = IdCardUtil.getSexForIdcard_new(p.getIdcard());
|
|
|
json.put("sex","1".equals(sex)?"男":("2".equals(sex)?"女":"未知"));
|
|
|
json.put("age",age);
|
|
|
json.put("patientPhoto",p.getPhoto());
|
|
|
json.put("patientName",p.getName());
|
|
|
json.put("patientCode",p.getCode());
|
|
|
return json;
|
|
|
}
|
|
|
throw new Exception("请求微服务失败!");
|
|
|
}
|
|
|
}
|