|
@@ -130,32 +130,32 @@ public class AlgorithmController extends BaseController {
|
|
|
public Response<ResponseData> combine(HttpServletRequest request, SearchData searchData) throws Exception {
|
|
|
ResponseData responseData = new ResponseData();
|
|
|
logger.info("开始推送服务......");
|
|
|
-// LisApplication lisApplication = new LisApplication();
|
|
|
-// if ((searchData.getLisArr() == null || searchData.getLisArr().size() == 0)
|
|
|
-// && StringUtils.isNotEmpty(searchData.getLis())) {
|
|
|
-// Pretreatment pretreatment = new PretreatmentLis();
|
|
|
-// searchData.setLisArr(pretreatment.analyze(searchData.getLis()));
|
|
|
-// }
|
|
|
-// lisApplication.lisConvertToInputs(searchData.getLisArr(),searchData);
|
|
|
-//
|
|
|
- Response<ResponseData> response = new Response();
|
|
|
-// //一些基本信息预处理 如年龄 性别
|
|
|
-// ParamsDataProxy paramsDataProxy = new ParamsDataProxy();
|
|
|
-// paramsDataProxy.createNormalInfo(searchData);
|
|
|
-// //数据预处理
|
|
|
-// PretreatmentRule pretreatmentRule = new PretreatmentRule();
|
|
|
-// pretreatmentRule.rule(searchData);
|
|
|
-// //危机值
|
|
|
-// CrisisApplication crisisApplication = new CrisisApplication();
|
|
|
-// responseData.setCrisisDetails(crisisApplication.crisisContent(searchData));
|
|
|
+ LisApplication lisApplication = new LisApplication();
|
|
|
+ if ((searchData.getLisArr() == null || searchData.getLisArr().size() == 0)
|
|
|
+ && StringUtils.isNotEmpty(searchData.getLis())) {
|
|
|
+ Pretreatment pretreatment = new PretreatmentLis();
|
|
|
+ searchData.setLisArr(pretreatment.analyze(searchData.getLis()));
|
|
|
+ }
|
|
|
+ lisApplication.lisConvertToInputs(searchData.getLisArr(),searchData);
|
|
|
|
|
|
+ Response<ResponseData> response = new Response();
|
|
|
+ //一些基本信息预处理 如年龄 性别
|
|
|
+ ParamsDataProxy paramsDataProxy = new ParamsDataProxy();
|
|
|
+ paramsDataProxy.createNormalInfo(searchData);
|
|
|
+ //数据预处理
|
|
|
+ PretreatmentRule pretreatmentRule = new PretreatmentRule();
|
|
|
+ pretreatmentRule.rule(searchData);
|
|
|
+ //危机值
|
|
|
+ CrisisApplication crisisApplication = new CrisisApplication();
|
|
|
+ responseData.setCrisisDetails(crisisApplication.crisisContent(searchData));
|
|
|
+ ResponseData bigDataResponseData = new ResponseData();
|
|
|
//大数据推送
|
|
|
// searchData.setLength(6); //模型推送最多6个比较合理
|
|
|
- AlgorithmCore core = new AlgorithmCore();
|
|
|
- ResponseData bigDataResponseData = core.algorithm(request, searchData, responseData);
|
|
|
- bigDataResponseData.setVitals(new ArrayList<>());
|
|
|
- bigDataResponseData.setLabs(new ArrayList<>());
|
|
|
- bigDataResponseData.setPacs(new ArrayList<>());
|
|
|
+// AlgorithmCore core = new AlgorithmCore();
|
|
|
+// ResponseData bigDataResponseData = core.algorithm(request, searchData, responseData);
|
|
|
+// bigDataResponseData.setVitals(new ArrayList<>());
|
|
|
+// bigDataResponseData.setLabs(new ArrayList<>());
|
|
|
+// bigDataResponseData.setPacs(new ArrayList<>());
|
|
|
|
|
|
// GraphCalculate graphCalculate = new GraphCalculate();
|
|
|
// Map<String, List<CrisisDetail>> crisisDetails = responseData.getCrisisDetails();
|