Преглед на файлове

redis缓存增加外院疾病映射

louhr преди 5 години
родител
ревизия
27dcdfe1a4

+ 11 - 1
kernel/src/main/java/com/lantone/qc/kernel/util/CacheUtil.java

@@ -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);
+    }
 }

+ 2 - 0
kernel/src/main/java/com/lantone/qc/kernel/util/KernelConstants.java

@@ -13,4 +13,6 @@ public class KernelConstants {
     public static final String CONCEPT_PROPERTY_LIST = "concept_property_list";
     //程度词典
     public static final String CONCEPT_DEGREE_LIST = "concept_degree_list";
+    //诊断名称映射
+    public static final String CONCEPT_DIAG_HOSPITAL_REFLECT = "concept_diag_hospital_reflect";
 }

+ 1 - 0
public/src/main/java/com/lantone/qc/pub/model/entity/Diag.java

@@ -13,6 +13,7 @@ import lombok.Setter;
 @Getter
 @Setter
 public class Diag extends General {
+    private String hospitalDiagName;    //医院疾病名称
     private Possible possible;
     private Negative negative;
     private String ICD;