|
@ -19,6 +19,8 @@ import java.io.IOException;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
|
|
|
|
@Service
|
|
|
public class PhysicalExaminationService {
|
|
|
|
|
@ -45,7 +47,8 @@ public class PhysicalExaminationService {
|
|
|
params.put("tp_type", type);
|
|
|
MedicineStroresNo medicineStroresNo = medicineStroresNoService.findByCity("350200");
|
|
|
params.put("sh_id", medicineStroresNo.getShId());
|
|
|
return HttpClientUtil.postBody(yuerenApi + "/findtest", params);
|
|
|
String result = HttpClientUtil.postBody(yuerenApi + "/findtest", params);
|
|
|
return result.replace("exception", "msg");
|
|
|
}
|
|
|
|
|
|
/**
|
|
@ -80,7 +83,9 @@ public class PhysicalExaminationService {
|
|
|
params.put("u_area", patient.getTownName());
|
|
|
params.put("u_address", patient.getAddress());
|
|
|
//params.put("sl_pass", );//报告单是否审核通过
|
|
|
return HttpClientUtil.postBody(yuerenApi + "/insertslip", params);
|
|
|
|
|
|
String result = HttpClientUtil.postBody(yuerenApi + "/insertslip", params);
|
|
|
return result.replace("exception", "msg");
|
|
|
}
|
|
|
|
|
|
//查找题目
|
|
@ -89,8 +94,9 @@ public class PhysicalExaminationService {
|
|
|
params.put("ct_id", ct_id);
|
|
|
params.put("tp_id", tp_id);
|
|
|
params.put("pb_id", pb_id);
|
|
|
String postStr = HttpClientUtil.postBody(yuerenApi+"/giveproblem", params);
|
|
|
return postStr;
|
|
|
|
|
|
String result = HttpClientUtil.postBody(yuerenApi+"/giveproblem", params);
|
|
|
return result.replace("exception", "msg");
|
|
|
}
|
|
|
|
|
|
//提交保存答案
|
|
@ -101,7 +107,8 @@ public class PhysicalExaminationService {
|
|
|
params.put("tp_id", tp_id);
|
|
|
params.put("pb_id", pb_id);
|
|
|
params.put("dc_answer", dc_answer);
|
|
|
return HttpClientUtil.postBody(yuerenApi+"/handleproblem", params);
|
|
|
String result = HttpClientUtil.postBody(yuerenApi+"/handleproblem", params);
|
|
|
return result.replace("exception", "msg");
|
|
|
}
|
|
|
|
|
|
//四诊资料采集
|
|
@ -116,21 +123,24 @@ public class PhysicalExaminationService {
|
|
|
params.put("answer_type","录音");
|
|
|
}
|
|
|
params.put("object_type",type);
|
|
|
return HttpClientUtil.postBody(yuerenApi+"/dillphoneimgdata", params);
|
|
|
String result = HttpClientUtil.postBody(yuerenApi+"/dillphoneimgdata", params);
|
|
|
return result.replace("exception", "msg");
|
|
|
}
|
|
|
|
|
|
//处理题目
|
|
|
public String centralizedproblem(String ctId){
|
|
|
JSONObject params = new JSONObject();
|
|
|
params.put("ct_id", ctId);
|
|
|
return HttpClientUtil.postBody(yuerenApi+"/centralizedproblem", params);
|
|
|
String result = HttpClientUtil.postBody(yuerenApi+"/centralizedproblem", params);
|
|
|
return result.replace("exception", "msg");
|
|
|
}
|
|
|
|
|
|
//处理用户影响
|
|
|
public String conclusionfactor(String ctId){
|
|
|
JSONObject params = new JSONObject();
|
|
|
params.put("ct_id", ctId);
|
|
|
return HttpClientUtil.postBody(yuerenApi+"/conclusionfactor", params);
|
|
|
String result = HttpClientUtil.postBody(yuerenApi+"/conclusionfactor", params);
|
|
|
return result.replace("exception", "msg");
|
|
|
}
|
|
|
|
|
|
//生成报告单
|
|
@ -138,7 +148,8 @@ public class PhysicalExaminationService {
|
|
|
JSONObject params = new JSONObject();
|
|
|
params.put("ct_id", ct_id);
|
|
|
params.put("reqtype", 1);
|
|
|
return HttpClientUtil.postBody(yuerenApi+"/insertconconhealth", params);
|
|
|
String result = HttpClientUtil.postBody(yuerenApi+"/insertconconhealth", params);
|
|
|
return result.replace("exception", "msg");
|
|
|
}
|
|
|
|
|
|
//查找报告单
|
|
@ -146,7 +157,8 @@ public class PhysicalExaminationService {
|
|
|
JSONObject params = new JSONObject();
|
|
|
params.put("ct_id", ct_id);
|
|
|
params.put("reqtype", 1);
|
|
|
return HttpClientUtil.postBody(yuerenApi+"/findconconhealth", params);
|
|
|
String result = HttpClientUtil.postBody(yuerenApi+"/findconconhealth", params);
|
|
|
return result.replace("exception", "msg");
|
|
|
}
|
|
|
|
|
|
//查找状态要素结论积分图及个人信息
|
|
@ -154,7 +166,8 @@ public class PhysicalExaminationService {
|
|
|
JSONObject params = new JSONObject();
|
|
|
params.put("ct_id", ct_id);
|
|
|
params.put("reqtype", 1);
|
|
|
return HttpClientUtil.postBody(yuerenApi+"/findintegral", params);
|
|
|
String result = HttpClientUtil.postBody(yuerenApi+"/findintegral", params);
|
|
|
return result.replace("exception", "msg");
|
|
|
}
|
|
|
|
|
|
|
|
@ -209,7 +222,7 @@ public class PhysicalExaminationService {
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
return "{\"status\":500,\"exception\":\"上传文件出错\"}";
|
|
|
return "{\"status\":500,\"msg\":\"上传文件出错\"}";
|
|
|
}
|
|
|
|
|
|
}
|