|
@@ -87,7 +87,7 @@ public class CacheUtil implements ApplicationRunner {
|
|
|
* 程度词典放入redis缓存
|
|
|
*/
|
|
|
public void putConceptDegreeMap() throws Exception {
|
|
|
- Configuration configuration = new DefaultConfig();
|
|
|
+ Configuration configuration = new DefaultConfig();
|
|
|
List<String> lines = configuration.readTargetFileContents("cache/concept_degree.dict");
|
|
|
List<String> degreeList = new ArrayList<>();
|
|
|
for (String line : lines) {
|
|
@@ -95,4 +95,14 @@ public class CacheUtil implements ApplicationRunner {
|
|
|
}
|
|
|
redisUtil.set(KernelConstants.CONCEPT_DEGREE_LIST, degreeList);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 医院疾病名称映射,仅做测试用,由华卓完成和医院对接放入redis
|
|
|
+ * @throws Exception
|
|
|
+ */
|
|
|
+ public void putDiagHospitalReflect() throws Exception {
|
|
|
+ Map<String, String> map = new HashMap<>();
|
|
|
+ map.put("右髌骨下极骨折", "右髌骨下极骨折");
|
|
|
+ redisUtil.set(KernelConstants.CONCEPT_DIAG_HOSPITAL_REFLECT, map);
|
|
|
+ }
|
|
|
}
|