|
@@ -1,5 +1,6 @@
|
|
package com.diagbot.facade;
|
|
package com.diagbot.facade;
|
|
|
|
|
|
|
|
+import java.util.Date;
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
@@ -9,10 +10,13 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
import com.diagbot.client.IcssServiceClient;
|
|
import com.diagbot.client.IcssServiceClient;
|
|
import com.diagbot.client.utils.ReadProperties;
|
|
import com.diagbot.client.utils.ReadProperties;
|
|
import com.diagbot.dto.PushDTO;
|
|
import com.diagbot.dto.PushDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
|
|
+import com.diagbot.entity.InputInfo;
|
|
|
|
+import com.diagbot.util.DateUtil;
|
|
import com.diagbot.vo.PushDiseaseVO;
|
|
import com.diagbot.vo.PushDiseaseVO;
|
|
import com.diagbot.vo.PushInquiryVO;
|
|
import com.diagbot.vo.PushInquiryVO;
|
|
import com.diagbot.vo.PushVO;
|
|
import com.diagbot.vo.PushVO;
|
|
@@ -25,6 +29,9 @@ public class PushFacade {
|
|
@Autowired
|
|
@Autowired
|
|
private IcssServiceClient icssServiceClient;
|
|
private IcssServiceClient icssServiceClient;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private InputInfoFacade inputInfoFacade;
|
|
|
|
+
|
|
public RespDTO<PushDTO> pushData(PushVO pushVO){
|
|
public RespDTO<PushDTO> pushData(PushVO pushVO){
|
|
pushVO.setFeatureType("1,4,5,6,7,8,22");
|
|
pushVO.setFeatureType("1,4,5,6,7,8,22");
|
|
RespDTO<PushDTO> responseData=icssServiceClient.pushInner(pushVO);
|
|
RespDTO<PushDTO> responseData=icssServiceClient.pushInner(pushVO);
|
|
@@ -40,20 +47,59 @@ public class PushFacade {
|
|
String url=readProperties.getRemoteAddress()+"index.html?"+pushInquiryVO.toString();
|
|
String url=readProperties.getRemoteAddress()+"index.html?"+pushInquiryVO.toString();
|
|
|
|
|
|
Map<String, String> map=new HashMap<String, String>();
|
|
Map<String, String> map=new HashMap<String, String>();
|
|
- map.put(url, url);
|
|
|
|
|
|
+ map.put("url", url);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ //增加统计功能
|
|
|
|
+ InputInfo inputInfo=new InputInfo();
|
|
|
|
+ inputInfo.setHospitalCode(pushInquiryVO.getHospitalCode());
|
|
|
|
+ inputInfo.setHosptialName(pushInquiryVO.getHosptialName());
|
|
|
|
+ inputInfo.setHosptialDeptCode(pushInquiryVO.getHosptialDeptCode());
|
|
|
|
+ inputInfo.setHosptialDeptName(pushInquiryVO.getHosptialDeptName());
|
|
|
|
+ inputInfo.setDoctorCode(pushInquiryVO.getDoctorCode());
|
|
|
|
+ inputInfo.setDoctorName(pushInquiryVO.getDoctorName());
|
|
|
|
+ inputInfo.setInquiryCode(pushInquiryVO.getInquiryCode());
|
|
|
|
+ inputInfo.setDiseaseName(pushInquiryVO.getDiagJson());
|
|
|
|
+ inputInfo.setAge(pushInquiryVO.getAge());
|
|
|
|
+ inputInfo.setSexType(pushInquiryVO.getSexType());
|
|
|
|
+ inputInfo.setTransTime(DateUtil.format(new Date(), DateUtil.DATE_TIME_FORMAT));
|
|
|
|
+ inputInfo.setRemark("病历");
|
|
|
|
+ inputInfo.setParamIn(JSONObject.toJSONString(pushInquiryVO));
|
|
|
|
+ inputInfo.setParamOut(url);
|
|
|
|
+
|
|
|
|
+ inputInfoFacade.saveInputInfo(inputInfo);
|
|
return map;
|
|
return map;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * HIS医嘱界面——智能推送
|
|
|
|
|
|
+ * HIS医嘱界面——页面推送-横版
|
|
* @param pushDiseaseVO
|
|
* @param pushDiseaseVO
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public Map<String, String> pushDisease(@Valid @RequestBody PushDiseaseVO pushDiseaseVO){
|
|
public Map<String, String> pushDisease(@Valid @RequestBody PushDiseaseVO pushDiseaseVO){
|
|
- String url=readProperties.getRemoteAddress()+"index.html?"+pushDiseaseVO.toString();
|
|
|
|
|
|
+ String url=readProperties.getRemoteAddress()+"landscapeMedical.html?"+pushDiseaseVO.toString();
|
|
|
|
|
|
Map<String, String> map=new HashMap<String, String>();
|
|
Map<String, String> map=new HashMap<String, String>();
|
|
- map.put(url, url);
|
|
|
|
|
|
+ map.put("url", url);
|
|
|
|
+
|
|
|
|
+ //增加统计功能
|
|
|
|
+ InputInfo inputInfo=new InputInfo();
|
|
|
|
+ inputInfo.setHospitalCode(pushDiseaseVO.getHospitalCode());
|
|
|
|
+ inputInfo.setHosptialName(pushDiseaseVO.getHosptialName());
|
|
|
|
+ inputInfo.setHosptialDeptCode(pushDiseaseVO.getHosptialDeptCode());
|
|
|
|
+ inputInfo.setHosptialDeptName(pushDiseaseVO.getHosptialDeptName());
|
|
|
|
+ inputInfo.setDoctorCode(pushDiseaseVO.getDoctorCode());
|
|
|
|
+ inputInfo.setDoctorName(pushDiseaseVO.getDoctorName());
|
|
|
|
+ inputInfo.setInquiryCode(pushDiseaseVO.getInquiryCode());
|
|
|
|
+ inputInfo.setDiseaseName(pushDiseaseVO.getDiagJson());
|
|
|
|
+ inputInfo.setAge(pushDiseaseVO.getAge());
|
|
|
|
+ inputInfo.setSexType(pushDiseaseVO.getSexType());
|
|
|
|
+ inputInfo.setTransTime(DateUtil.format(new Date(), DateUtil.DATE_TIME_FORMAT));
|
|
|
|
+ inputInfo.setParamIn(JSONObject.toJSONString(pushDiseaseVO));
|
|
|
|
+ inputInfo.setParamOut(url);
|
|
|
|
+ inputInfo.setRemark("医嘱");
|
|
|
|
+
|
|
|
|
+ inputInfoFacade.saveInputInfo(inputInfo);
|
|
return map;
|
|
return map;
|
|
}
|
|
}
|
|
}
|
|
}
|