|
@ -214,9 +214,10 @@ public class RehabilitationManageService extends BaseService {
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public JSONArray serviceItemList(String planDetailIds) throws Exception{
|
|
|
public JSONArray serviceItemList(String planDetailIds,String doctorCode) throws Exception{
|
|
|
Map<String, Object> param = new HashedMap();
|
|
|
param.put("planDetailIds", planDetailIds);
|
|
|
param.put("doctorCode", doctorCode);
|
|
|
HttpResponse response = HttpUtils.doGet(specialistUrl + serviceItemList, param);
|
|
|
JSONObject result = new JSONObject(response.getContent());
|
|
|
JSONArray jsonArray = null;
|
|
@ -244,9 +245,10 @@ public class RehabilitationManageService extends BaseService {
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public JSONObject serviceItem(String planDetailId) throws Exception{
|
|
|
public JSONObject serviceItem(String planDetailId,String doctorCode) throws Exception{
|
|
|
Map<String, Object> param = new HashedMap();
|
|
|
param.put("planDetailId", planDetailId);
|
|
|
param.put("doctorCode", doctorCode);
|
|
|
HttpResponse response = HttpUtils.doGet(specialistUrl + serviceItem, param);
|
|
|
JSONObject result = new JSONObject(response.getContent());
|
|
|
if(result.getInt("status")==200){
|
|
@ -510,14 +512,13 @@ public class RehabilitationManageService extends BaseService {
|
|
|
//specialistUrl= "http://localhost:10051";
|
|
|
HttpResponse response = HttpUtils.doPost(specialistUrl + updateNoteAndImageRehabilitationOperate, param);
|
|
|
JSONObject result = new JSONObject(response.getContent());
|
|
|
if(result.getString("status").equals("200")){
|
|
|
JSONArray array = result.getJSONArray("detailModelList");
|
|
|
JSONObject object = array.getJSONObject(0);
|
|
|
if(result.getInt("status") == 200){
|
|
|
JSONObject object = result.getJSONObject("obj");
|
|
|
int evaluation = object.getInt("evaluation");
|
|
|
if (evaluation == 1){
|
|
|
String serviceItemId = object.getString("serviceItemId");
|
|
|
String doctor = object.getString("doctorCode");
|
|
|
String patient = object.getString("patientCode");
|
|
|
String serviceItemId = object.getString("service_item_id");
|
|
|
String doctor = object.getString("doctor_code");
|
|
|
String patient = object.getString("patient_code");
|
|
|
String title = object.getString("title");
|
|
|
Patient p = patientDao.findByCode(patient);
|
|
|
String patientName = p.getName();
|
|
@ -573,15 +574,18 @@ public class RehabilitationManageService extends BaseService {
|
|
|
String doctor = "";
|
|
|
String patient ="";
|
|
|
Integer num = null;
|
|
|
JSONArray planDetailIds = null;
|
|
|
for(int i=0;i<jsonArray.length();i++){
|
|
|
jsonObject = jsonArray.getJSONObject(i);
|
|
|
doctor = jsonObject.get("doctor")+"";//执行的医生(接收的医生)
|
|
|
patient = jsonObject.get("patient")+"";//执行的居民
|
|
|
num = (Integer)jsonObject.get("num");//需要今日需要执行的项目数
|
|
|
planDetailIds = (JSONArray)jsonObject.get("planDetailIds");
|
|
|
Message message1 = new Message();
|
|
|
message1.setSender(null);
|
|
|
// message1.setSender(patient);
|
|
|
message1.setType(type);
|
|
|
message1.setReceiver(doctor);
|
|
|
message1.setRelationCode(planDetailIds.toString());
|
|
|
specialistEvaluateSevice.sendMessage(message1,null,patient,num);
|
|
|
}
|
|
|
}
|