|
|
|
@ -104,8 +104,9 @@ public class MedicalRecallController {
|
|
|
|
|
@RequestMapping(value = "/updateState")
|
|
|
|
|
public String updateState(HttpServletRequest request, HttpServletResponse response, Emr_Fault_Detail emrFaultDetail) throws UnsupportedEncodingException {
|
|
|
|
|
boolean flag = FormTokenFlagUtil.isFlag(request);
|
|
|
|
|
String result="";
|
|
|
|
|
if (!flag) {
|
|
|
|
|
return "请不要重复提交!";
|
|
|
|
|
result= "请不要重复提交!";
|
|
|
|
|
}
|
|
|
|
|
int bol=0;
|
|
|
|
|
//判断是否已经召回
|
|
|
|
@ -119,7 +120,7 @@ public class MedicalRecallController {
|
|
|
|
|
//最后一次存在召回
|
|
|
|
|
String inpatientNo = emrFaultDetail.getContent();
|
|
|
|
|
if(StringUtils.isBlank(inpatientNo)){
|
|
|
|
|
return "0";
|
|
|
|
|
result= "召回失败!";
|
|
|
|
|
}
|
|
|
|
|
response.setCharacterEncoding("utf-8");
|
|
|
|
|
Power_User user = (Power_User) request.getSession().getAttribute("CURRENT_USER");
|
|
|
|
@ -166,13 +167,14 @@ public class MedicalRecallController {
|
|
|
|
|
//留观号召回推送第三方
|
|
|
|
|
archiveMasterService.requestObservationRecord(inpatientNo,"RETURNED",emrFaultDetail.getRecallReason());
|
|
|
|
|
}
|
|
|
|
|
result="召回成功!";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
return "请不要重复召回!";
|
|
|
|
|
result= "请不要重复召回!";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return bol + "";
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|