|
@@ -7,6 +7,7 @@ import com.diagbot.entity.DiseaseIcd;
|
|
|
import com.diagbot.entity.InputInfo;
|
|
|
import com.diagbot.facade.*;
|
|
|
import com.diagbot.shaoyifu.entity.NLPInputRemote;
|
|
|
+import com.diagbot.shaoyifu.entity.UrlOut;
|
|
|
import com.diagbot.shaoyifu.entity.wrapper.InterfaceInfoWrapper;
|
|
|
import com.diagbot.shaoyifu.response.InterfaceResponse;
|
|
|
import com.diagbot.shaoyifu.util.HttpApi;
|
|
@@ -76,9 +77,9 @@ public class InquiryInfoController {
|
|
|
return RespDTO.onSuc(a);
|
|
|
}
|
|
|
|
|
|
- @PostMapping("/hisInquirysForDj")
|
|
|
+ @RequestMapping("/hisInquirysForDj")
|
|
|
@SysLogger("hisInquirysForDj")
|
|
|
- public String hisInquirysForDj(@RequestBody HisInquirysForDjVO hisInquirysForDjVO) {
|
|
|
+ public String hisInquirysForDj(HisInquirysForDjVO hisInquirysForDjVO) {
|
|
|
//根据医院编码获取本地数据库医院id
|
|
|
HospitalInfoVO hospitalInfoVO = new HospitalInfoVO();
|
|
|
hospitalInfoVO.setCode(hisInquirysForDjVO.getHospitalCode());
|
|
@@ -157,7 +158,8 @@ public class InquiryInfoController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- String url = "http://192.1.3.116:5446/landscape.html?" +
|
|
|
+ String url = "http://192.1.3.116:5446/landscapeMedical.html?" +
|
|
|
+ /*String url = "http://192.168.1.104:5446/landscapeMedical.html?" +*/
|
|
|
"age=" + age +
|
|
|
"&diagJson=" + dn +
|
|
|
"&lisJson=" + a.getContentList().get(5) +
|
|
@@ -179,46 +181,11 @@ public class InquiryInfoController {
|
|
|
* @Description:邵逸夫医嘱界面提示窗接口
|
|
|
* @author:lpc
|
|
|
*/
|
|
|
- @PostMapping(value = "/get_syf_disease")
|
|
|
- @ResponseBody
|
|
|
- public String getSyfDisease(NLPInputRemote nlpRemote) {
|
|
|
- try {
|
|
|
-
|
|
|
- GetDiseaseNameVO getDiseaseNameVO = new GetDiseaseNameVO();
|
|
|
- getDiseaseNameVO.setHisDiseaseName(nlpRemote.getDisJson());
|
|
|
- getDiseaseNameVO.setHospitalCode(nlpRemote.getHospitalCode());
|
|
|
- List<GetDiseaseNameDTO> a = diseaseIcdFacade.getDiseaseNames(getDiseaseNameVO);
|
|
|
- DiseaseIcd di = new DiseaseIcd();
|
|
|
- BeanUtil.copyProperties(a.get(0), di);
|
|
|
-
|
|
|
- String url = "http://192.1.3.116:5446/landscapeMedical.html?" +
|
|
|
- "age=" + nlpRemote.getAge() +
|
|
|
- "&diagJson=" + di.getConceptDisName() +
|
|
|
- "&lisJson=" + nlpRemote.getLabsJson() +
|
|
|
- /*"&pastJson=" + a.getContentList().get(1) +*/
|
|
|
- "&otherJson=" + nlpRemote.getOtherJson() +
|
|
|
- "&pacsJson=" + nlpRemote.getPacsJson() +
|
|
|
- "&sex=" + (Integer.parseInt(nlpRemote.getSexType()) == 1 ? "男" : "女") +
|
|
|
- "&symptomJson=" + nlpRemote.getSymptomJson() +
|
|
|
- "&vitalJson=" + nlpRemote.getVitalsJson() +
|
|
|
- "&hospitalId=" + nlpRemote.getHospitalCode();
|
|
|
- url = url.trim();
|
|
|
- System.out.println("邵逸夫医嘱界面提示窗接口++++++++++++++++++++++++++++++++++++++" + url);
|
|
|
- return url;
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- return e.getMessage();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @Description:邵逸夫病程录提示窗接口
|
|
|
- * @author:lpc
|
|
|
- */
|
|
|
@PostMapping(value = "/get_syf_inquiry")
|
|
|
@ResponseBody
|
|
|
- public String getSyfInquiry(NLPInputRemote nlpRemote) {
|
|
|
+ public String getSyfDisease(@RequestBody NLPInputRemote nlpRemote) {
|
|
|
try {
|
|
|
+
|
|
|
if(nlpRemote.getSymptomJson()==null){
|
|
|
nlpRemote.setSymptomJson("");
|
|
|
}
|
|
@@ -228,40 +195,81 @@ public class InquiryInfoController {
|
|
|
if(nlpRemote.getVitalsJson()==null){
|
|
|
nlpRemote.setVitalsJson("");
|
|
|
}
|
|
|
+ if(nlpRemote.getDisJson()==null){
|
|
|
+ nlpRemote.setDisJson("");
|
|
|
+ }
|
|
|
if(nlpRemote.getPacsJson()==null){
|
|
|
nlpRemote.setPacsJson("");
|
|
|
}
|
|
|
if(nlpRemote.getOtherJson()==null){
|
|
|
nlpRemote.setOtherJson("");
|
|
|
}
|
|
|
-
|
|
|
GetDiseaseNameVO getDiseaseNameVO = new GetDiseaseNameVO();
|
|
|
- getDiseaseNameVO.setHisDiseaseName(nlpRemote.getDisJson());
|
|
|
- getDiseaseNameVO.setHospitalCode(nlpRemote.getHospitalCode());
|
|
|
- List<GetDiseaseNameDTO> a = diseaseIcdFacade.getDiseaseNames(getDiseaseNameVO);
|
|
|
- DiseaseIcd di = new DiseaseIcd();
|
|
|
- BeanUtil.copyProperties(a.get(0),di);
|
|
|
+ StringBuffer dn = new StringBuffer();
|
|
|
+ String dn1= "";
|
|
|
+ if(nlpRemote.getDisJson()!=null&&!"".equals(nlpRemote.getDisJson())) {
|
|
|
+ getDiseaseNameVO.setHisDiseaseName(nlpRemote.getDisJson());
|
|
|
+ getDiseaseNameVO.setHospitalCode(nlpRemote.getHospitalCode());
|
|
|
+ List<GetDiseaseNameDTO> a = diseaseIcdFacade.getDiseaseNames(getDiseaseNameVO);
|
|
|
+ if(a.size()!=0){
|
|
|
+ for(DiseaseIcd di : a){
|
|
|
+ dn.append(di.getConceptDisName()+ ",") ;
|
|
|
+ }
|
|
|
+ dn1 = dn.substring(0, dn.length() - 1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ String url1 = "http://192.1.3.116:5446/landscape.html?lisJson="
|
|
|
+ /*String url1 = "http://192.168.1.104:5446/landscape.html?lisJson="*/
|
|
|
+ + "&diagJson=" + dn1
|
|
|
+ + "&age=" + nlpRemote.getAge()
|
|
|
+ + "&sex=" + (Integer.parseInt(nlpRemote.getSexType())==1?"男":"女")
|
|
|
+ + "&symptomJson=" + URLEncoder.encode(nlpRemote.getSymptomJson(),"utf-8")
|
|
|
+ + "&pastJson=" + URLEncoder.encode(nlpRemote.getPastJson(),"utf-8")
|
|
|
+ + "&pacsJson=" + URLEncoder.encode(nlpRemote.getPacsJson(),"utf-8")
|
|
|
+ + "&vitalJson=" + URLEncoder.encode(nlpRemote.getVitalsJson(),"utf-8")
|
|
|
+ + "&otherJson=" + URLEncoder.encode(nlpRemote.getOtherJson(),"utf-8")
|
|
|
+ + "&hospitalCode=" + nlpRemote.getHospitalCode();
|
|
|
|
|
|
- String url = "http://192.1.3.116:5446/landscape.html?"
|
|
|
- + "lisJson=" + nlpRemote.getLabsJson()
|
|
|
- + "&diagJson=" + di.getConceptDisName()
|
|
|
+ String url2 = "http://192.1.3.116:5446/landscapeMedical.html?lisJson="
|
|
|
+ /*String url2 = "http://192.168.1.104:5446/landscapeMedical.html?lisJson="*/
|
|
|
+ + "&diagJson=" + dn1
|
|
|
+ "&age=" + nlpRemote.getAge()
|
|
|
+ "&sex=" + (Integer.parseInt(nlpRemote.getSexType())==1?"男":"女")
|
|
|
+ "&symptomJson=" + URLEncoder.encode(nlpRemote.getSymptomJson(),"utf-8")
|
|
|
+ "&pastJson=" + URLEncoder.encode(nlpRemote.getPastJson(),"utf-8")
|
|
|
+ "&pacsJson=" + URLEncoder.encode(nlpRemote.getPacsJson(),"utf-8")
|
|
|
+ "&vitalJson=" + URLEncoder.encode(nlpRemote.getVitalsJson(),"utf-8")
|
|
|
- + "&otherJson=" + URLEncoder.encode(nlpRemote.getOtherJson(),"utf-8");
|
|
|
- url = url.trim();
|
|
|
- System.out.println("创业电子病历提示窗接口++++++++++++++++++++++++++++++++++++++" + url);
|
|
|
+ + "&otherJson=" + URLEncoder.encode(nlpRemote.getOtherJson(),"utf-8")
|
|
|
+ + "&hospitalCode=" + nlpRemote.getHospitalCode();
|
|
|
+
|
|
|
+ UrlOut uo = new UrlOut();
|
|
|
+ uo.setUrl1(url1.trim());
|
|
|
+ uo.setUrl2(url2.trim());
|
|
|
+ String data = JSONObject.toJSONString(uo);
|
|
|
|
|
|
- return url;
|
|
|
+ InputInfo inputInfo=new InputInfo();
|
|
|
+ inputInfo.setHospitalCode(nlpRemote.getHospitalCode());
|
|
|
+ inputInfo.setHosptialDeptCode(nlpRemote.getDeptId());
|
|
|
+ inputInfo.setDoctorCode(nlpRemote.getDoctorNo());
|
|
|
+ inputInfo.setInquiryCode(nlpRemote.getClinicId());
|
|
|
+ inputInfo.setDiseaseName(nlpRemote.getDisJson());
|
|
|
+ inputInfo.setAge(nlpRemote.getAge().intValue());
|
|
|
+ inputInfo.setSexType(nlpRemote.getSexType());
|
|
|
+ inputInfo.setTransTime(DateUtil.format(new Date(), DateUtil.DATE_TIME_FORMAT));
|
|
|
+ inputInfo.setRemark("邵逸夫界面提示窗接口");
|
|
|
+ inputInfo.setParamIn(JSONObject.toJSONString(nlpRemote));
|
|
|
+ inputInfo.setParamOut(data);
|
|
|
+
|
|
|
+ System.out.println("邵逸夫界面提示窗接口++++++++++++++++++++++++++++++++++++++" + data);
|
|
|
+ return data;
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return e.getMessage();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
* 急诊-历史病历列表
|
|
|
*
|