|
@@ -16,6 +16,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import springfox.documentation.annotations.ApiIgnore;
|
|
|
|
|
|
+import java.io.UnsupportedEncodingException;
|
|
|
+import java.net.URLEncoder;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.Calendar;
|
|
|
import java.util.Date;
|
|
@@ -247,20 +249,23 @@ public class InquiryInfoController {
|
|
|
*/
|
|
|
@PostMapping("/getDataService")
|
|
|
@SysLogger("getDataService")
|
|
|
- public RespDTO<String> getDataService(@RequestBody PushJoinVO pushJoinVO) {
|
|
|
+ public RespDTO<String> getDataService(@RequestBody PushJoinVO pushJoinVO) throws UnsupportedEncodingException {
|
|
|
if(pushJoinVO.getDiag() == null){
|
|
|
pushJoinVO.setDiag("");
|
|
|
}
|
|
|
GetDiseaseNameVO getDiseaseNameVO = new GetDiseaseNameVO();
|
|
|
LisPacsInfoForDJVO lisPacsInfoForDJVO = new LisPacsInfoForDJVO();
|
|
|
List<LisConfigDTO> lisConfigDTO;
|
|
|
+ List<LisConfigDTO> lisConfigDTO1;
|
|
|
List<PacsConfigDTO> pacsConfigDTO;
|
|
|
List<GetDiseaseNameDTO> a;
|
|
|
String mrId;
|
|
|
String url;
|
|
|
StringBuffer sb1 = new StringBuffer();//放诊断
|
|
|
StringBuffer sb2 = new StringBuffer();//放辅检
|
|
|
-
|
|
|
+ StringBuffer sb3 = new StringBuffer();//放化验细项列表
|
|
|
+ StringBuffer sb4 = new StringBuffer();//放辅检列表
|
|
|
+ String[] orderCode;
|
|
|
//统计接口
|
|
|
InputInfo inputInfo = new InputInfo();
|
|
|
inputInfo.setHospitalCode(pushJoinVO.getHosCode());
|
|
@@ -321,26 +326,48 @@ public class InquiryInfoController {
|
|
|
}
|
|
|
|
|
|
//化验套餐名转公表
|
|
|
- if (pushJoinVO.getLisOrder() != null && !"".equals(pushJoinVO.getLisOrder().trim())) {
|
|
|
- lisPacsInfoForDJVO.setMealName(pushJoinVO.getLisOrder());
|
|
|
+ if (pushJoinVO.getLisOrderCode() != null && !"".equals(pushJoinVO.getLisOrderCode().trim())) {
|
|
|
+ orderCode = pushJoinVO.getLisOrderCode().split(".");
|
|
|
+ lisPacsInfoForDJVO.setOrderCode(orderCode[1]);
|
|
|
lisPacsInfoForDJVO.setHosCode(pushJoinVO.getHosCode());
|
|
|
- lisConfigDTO = tranLisConfigFacade.getLisConfigByNamesAndHosCode(lisPacsInfoForDJVO);
|
|
|
- if (lisConfigDTO != null && lisConfigDTO.size() != 0) {
|
|
|
+ lisConfigDTO = tranLisConfigFacade.getLisConfigByCodeAndHosCode(lisPacsInfoForDJVO);
|
|
|
+ if (lisConfigDTO.size() > 0) {
|
|
|
+ sb3.append("[");
|
|
|
+ for (int i = 0; i < lisConfigDTO.size(); i++) {
|
|
|
+ sb3.append("{name: " + lisConfigDTO.get(i).getUniqueName() + ",type:12,position:1}");
|
|
|
+ }
|
|
|
+ sb3.append("]");
|
|
|
+ } else {
|
|
|
+ lisPacsInfoForDJVO.setOrderCode(pushJoinVO.getLisOrderCode());
|
|
|
+ lisConfigDTO1 = tranLisConfigFacade.getLisConfigByCodeAndHosCode(lisPacsInfoForDJVO);
|
|
|
+ if (lisConfigDTO1.size() > 0) {
|
|
|
+ sb3.append("[{name: " + lisConfigDTO1.get(0).getUniqueName() + ",type:12,position:1}]");
|
|
|
+ } else {
|
|
|
+ pacsConfigDTO = pacsConfigFacade.getPacsConfigByCodeAndHosCode(lisPacsInfoForDJVO);
|
|
|
+ if(pacsConfigDTO.size()>0){
|
|
|
+ sb3.append("[{name: " + pacsConfigDTO.get(0).getUniqueName() + ",type:6,position:1}]");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /*if (lisConfigDTO != null && lisConfigDTO.size() != 0) {
|
|
|
pushJoinVO.setLisOrder(lisConfigDTO.get(0).getUniqueName().substring(0, lisConfigDTO.get(0).getUniqueName().indexOf("--")));
|
|
|
} else {
|
|
|
pushJoinVO.setLisOrder("");
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|
|
|
|
|
|
//辅检套餐名转公表
|
|
|
- if (pushJoinVO.getPacsOrder() != null && !"".equals(pushJoinVO.getPacsOrder().trim())) {
|
|
|
- lisPacsInfoForDJVO.setMealName(pushJoinVO.getPacsOrder());
|
|
|
+ if (pushJoinVO.getPacsOrderCode() != null && !"".equals(pushJoinVO.getPacsOrderCode().trim())) {
|
|
|
+ lisPacsInfoForDJVO.setOrderCode(pushJoinVO.getPacsOrderCode());
|
|
|
lisPacsInfoForDJVO.setHosCode(pushJoinVO.getHosCode());
|
|
|
- pacsConfigDTO = pacsConfigFacade.getPacsConfigByNamesAndHosCode(lisPacsInfoForDJVO);
|
|
|
+ pacsConfigDTO = pacsConfigFacade.getPacsConfigByCodeAndHosCode(lisPacsInfoForDJVO);
|
|
|
if (pacsConfigDTO != null && pacsConfigDTO.size() != 0) {
|
|
|
- pushJoinVO.setPacsOrder(pacsConfigDTO.get(0).getUniqueName());
|
|
|
+ sb4.append("[{name: " + pacsConfigDTO.get(0).getUniqueName() + ",type:6,position:1}]");
|
|
|
} else {
|
|
|
- pushJoinVO.setPacsOrder("");
|
|
|
+ lisConfigDTO = tranLisConfigFacade.getLisConfigByCodeAndHosCode(lisPacsInfoForDJVO);
|
|
|
+ if (lisConfigDTO.size() > 0) {
|
|
|
+ sb4.append("[{name: " + lisConfigDTO.get(0).getUniqueName() + ",type:12,position:1}]");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -442,14 +469,13 @@ public class InquiryInfoController {
|
|
|
|
|
|
//门诊 化验辅检静态知识
|
|
|
case "9":
|
|
|
- if (pushJoinVO.getLisOrder() != null && !"".equals(pushJoinVO.getLisOrder().trim())) {
|
|
|
+ if (pushJoinVO.getLisOrderCode() != null && !"".equals(pushJoinVO.getLisOrderCode().trim())) {
|
|
|
|
|
|
mrId = mrFacade.createMr(pushJoinVO);
|
|
|
|
|
|
url = "http://192.1.3.116:5446/indexHorizontal.html?" +
|
|
|
"mrId=" + mrId + //redis保存产生唯一值
|
|
|
- "&tipsName=" + pushJoinVO.getLisOrder() + //静态信息名称(化验项名称、辅捡项名称)
|
|
|
- "&tipsType=12" +
|
|
|
+ "&tipsInfoList=" + URLEncoder.encode(sb3.toString(), "utf-8") + //多个提示信息内容
|
|
|
"&showTab=1" +
|
|
|
"&hospitalCode=" + pushJoinVO.getHosCode() + //医院编码
|
|
|
"&plan=9";
|
|
@@ -459,14 +485,13 @@ public class InquiryInfoController {
|
|
|
inputInfoFacade.saveInputInfo(inputInfo);
|
|
|
return RespDTO.onSuc(url);
|
|
|
|
|
|
- } else if (pushJoinVO.getPacsOrder() != null && !"".equals(pushJoinVO.getPacsOrder().trim())) {
|
|
|
+ } else if (pushJoinVO.getPacsOrderCode() != null && !"".equals(pushJoinVO.getPacsOrderCode().trim())) {
|
|
|
|
|
|
mrId = mrFacade.createMr(pushJoinVO);
|
|
|
|
|
|
url = "http://192.1.3.116:5446/indexHorizontal.html?" +
|
|
|
"mrId=" + mrId + //redis保存产生唯一值
|
|
|
- "&tipsName=" + pushJoinVO.getPacsOrder() + //静态信息名称(化验项名称、辅捡项名称)
|
|
|
- "&tipsType=6" +
|
|
|
+ "&tipsInfoList=" + URLEncoder.encode(sb4.toString(), "utf-8") + //多个提示信息内容
|
|
|
"&showTab=1" +
|
|
|
"&hospitalCode=" + pushJoinVO.getHosCode() + //医院编码
|
|
|
"&plan=9";
|