|
@@ -35,22 +35,17 @@ public class QCAnalysis {
|
|
|
@Autowired
|
|
|
SimilarityServiceClient similarityServiceClient;
|
|
|
|
|
|
- //质控分析接口
|
|
|
public OutputInfo anlysis(QueryVo queryVo) throws AIException, CatalogueException, Exception {
|
|
|
- //1.创建两个ThreadLocal存储数据
|
|
|
+ log.error("json:"+ FastJsonUtils.getBeanToJson(queryVo));
|
|
|
specialStorageUtil.getHospitalIdThreadLocal().set(queryVo.getHospitalId());
|
|
|
specialStorageUtil.getBehospitalInfoThreadLocal().set(queryVo.getBehospitalInfo());
|
|
|
- //2.创建输出结果集
|
|
|
OutputInfo outputInfo = new OutputInfo();
|
|
|
long t1 = System.currentTimeMillis();
|
|
|
- //3.得到质控病历录入对象
|
|
|
InputInfo inputInfo = TransDispatch.trans(queryVo);
|
|
|
long t2 = System.currentTimeMillis();
|
|
|
- //4.设置质控病历录入对象缓存、
|
|
|
inputInfo.setUseCrfCache(queryVo.isUseCrfCache());
|
|
|
inputInfo.setInputCatalogueMap(queryVo.getInputCatalogueMap());
|
|
|
AIAnalyze aiAnalyze = new AIAnalyze(crfServiceClient, similarityServiceClient);
|
|
|
- //5.质控录入数据过CRF ai模型(完善InputInfo用户相关信息)
|
|
|
try {
|
|
|
aiAnalyze.aiProcess(inputInfo);
|
|
|
} catch (Exception e) {
|
|
@@ -59,8 +54,6 @@ public class QCAnalysis {
|
|
|
throw new AIException("AI模型执行错误:" + e.getMessage());
|
|
|
}
|
|
|
long t3 = System.currentTimeMillis();
|
|
|
- //6.遍历所有质控条目集合id,获取指定质控条目执行
|
|
|
- log.error("json"+FastJsonUtils.getBeanToJson(inputInfo));
|
|
|
for (Map.Entry<String, Map<String, String>> entry : inputInfo.getInputCatalogueMap().entrySet()) {
|
|
|
if (CatalogueUtil.qcCatalogueMap.get(queryVo.getCid() + "." + entry.getKey()) == null) {
|
|
|
continue;
|
|
@@ -101,5 +94,4 @@ public class QCAnalysis {
|
|
|
return outputInfo;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
}
|