|
@@ -1,10 +1,12 @@
|
|
|
package thyyxxk.webserver.service.inpatient;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
+import org.springframework.web.client.RestTemplate;
|
|
|
import thyyxxk.webserver.config.exception.BizException;
|
|
|
import thyyxxk.webserver.config.exception.ExceptionEnum;
|
|
|
import thyyxxk.webserver.constants.Capacity;
|
|
@@ -42,6 +44,18 @@ public class DismissService {
|
|
|
this.injuryFeeUpld = injuryFeeUpld;
|
|
|
}
|
|
|
|
|
|
+ public ResultVo<JSONObject> powersiPreDischarge(String visitId) {
|
|
|
+ String url = "http://172.16.32.126:8080/drg_web/api/json/call.action";
|
|
|
+ JSONObject params = new JSONObject();
|
|
|
+ params.put("function_id", "apiHnsService1001");
|
|
|
+ params.put("hospital_id", SiUtil.INSTITUTION_ID);
|
|
|
+ params.put("scene_type", "6");
|
|
|
+ params.put("visit_id", visitId);
|
|
|
+ JSONObject response = new RestTemplate().postForObject(url, params, JSONObject.class);
|
|
|
+ log.info("创智出院预审:【{}】,【{}】", visitId, response);
|
|
|
+ return ResultVoUtil.success(response);
|
|
|
+ }
|
|
|
+
|
|
|
public ResultVo<Object> dismiss(Patient param) {
|
|
|
ResultVo<List<ActOrderGroup>> actOrders = getActOrders(param.getInpatientNo(), param.getAdmissTimes());
|
|
|
if (actOrders.getCode() != ExceptionEnum.SUCCESS.getCode()) {
|