|
@ -195,8 +195,21 @@ public class RehabilitationManageService extends BaseService {
|
|
|
param.put("planDetailIds", planDetailIds);
|
|
|
HttpResponse response = HttpUtils.doGet(specialistUrl + serviceItemList, param);
|
|
|
JSONObject result = new JSONObject(response.getContent());
|
|
|
JSONArray jsonArray = null;
|
|
|
if(result.getInt("status")==200){
|
|
|
return result.getJSONArray("obj");
|
|
|
jsonArray = result.getJSONArray("obj");
|
|
|
for(int i=0;i<jsonArray.length();i++){
|
|
|
String patient = jsonArray.getJSONObject(i).get("patient")+"";
|
|
|
List<SignFamily> list = signFamilyDao.findByPatientAndExpensesStatusAndStatus(patient,"1",1);
|
|
|
if(list.size()>0){
|
|
|
jsonArray.getJSONObject(i).put("familyDoctorCode",list.get(0).getDoctor());
|
|
|
jsonArray.getJSONObject(i).put("familyDoctorName",list.get(0).getDoctorName());
|
|
|
}else{
|
|
|
jsonArray.getJSONObject(i).put("familyDoctorCode","");
|
|
|
jsonArray.getJSONObject(i).put("familyDoctorName","");
|
|
|
}
|
|
|
}
|
|
|
return jsonArray;
|
|
|
}
|
|
|
throw new Exception("请求微服务失败!");
|
|
|
}
|
|
@ -230,19 +243,18 @@ public class RehabilitationManageService extends BaseService {
|
|
|
/**
|
|
|
* 康复管理-保存指导留言
|
|
|
* @param messageId
|
|
|
* @param patientCode
|
|
|
* @param doctorCode
|
|
|
* @param content
|
|
|
* @param planDetailId
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public void saveGuidanceMessage(String messageId,String patientCode,String doctorCode,String content,String planDetailId) throws Exception{
|
|
|
public void saveGuidanceMessage(String messageId,String doctorCode,String content,String planDetailId) throws Exception{
|
|
|
Doctor doctor = doctorDao.findByCode(doctorCode);
|
|
|
Integer doctorType = doctor.getLevel();
|
|
|
Map<String, Object> param = new HashedMap();
|
|
|
param.put("messageId", messageId);
|
|
|
param.put("patientCode", patientCode);
|
|
|
// param.put("patientCode", patientCode);
|
|
|
param.put("doctorCode", doctorCode);
|
|
|
param.put("doctorType", doctorType);
|
|
|
param.put("content", content);
|
|
@ -448,7 +460,16 @@ public class RehabilitationManageService extends BaseService {
|
|
|
|
|
|
public JSONObject saveRehabilitationOperateRecodr(String dataJson) throws Exception{
|
|
|
Map<String, Object> param = new HashedMap();
|
|
|
param.put("dataJson", dataJson);
|
|
|
JSONObject json = new JSONObject(dataJson);
|
|
|
if(json.has("patientCode")){
|
|
|
Patient patient = patientDao.findByCode(json.get("patientCode")+"");
|
|
|
json.put("patientName",patient!=null?patient.getName():"");
|
|
|
}
|
|
|
if(json.has("doctorCode")){
|
|
|
Doctor doctor = doctorDao.findByCode(json.get("doctorCode")+"");
|
|
|
json.put("doctorName",doctor!=null?doctor.getName():"");
|
|
|
}
|
|
|
param.put("dataJson", json.toString());
|
|
|
//specialistUrl= "http://localhost:10051";
|
|
|
HttpResponse response = HttpUtils.doPost(specialistUrl + saveRehabilitationOperateRecodr, param);
|
|
|
JSONObject result = new JSONObject(response.getContent());
|