Browse Source

1、给药途径标准词校验

zhaops 3 years ago
parent
commit
a46eec9760

+ 5 - 4
src/main/java/com/diagbot/enums/ConceptTypeEnum.java

@@ -18,14 +18,15 @@ public enum ConceptTypeEnum implements KeyedNamed {
     Operation(6, "手术和操作"),
     Dept(7, "科室"),
     Transfusion(8, "输血"),
-    Symptom(9,"症状"),
+    Symptom(9, "症状"),
     //PacsSubName(9, "检查子项"),
     Scale(10, "量表"),
     Nurse(11, "护理"),
-    Tcmdisease(12,"中医疾病"),
-    Tcmsyndrome(13,"中医证候"),
+    Tcmdisease(12, "中医疾病"),
+    Tcmsyndrome(13, "中医证候"),
     Anesthesia(14, "麻醉"),
-    Form(15, "药品剂型");
+    Form(15, "药品剂型"),
+    AdministrationRoute(16, "给药途径");
 
     @Setter
     private int key;

+ 5 - 0
src/main/java/com/diagbot/facade/KlConceptFacade.java

@@ -409,6 +409,8 @@ public class KlConceptFacade extends KlConceptServiceImpl {
                 retType = ConceptTypeEnum.Anesthesia.getKey();
             } else if (type.equals(LexiconEnum.Form.getKey())) {
                 retType = ConceptTypeEnum.Form.getKey();
+            } else if (type.equals(LexiconEnum.AdministrationRoute.getKey())) {
+                retType = ConceptTypeEnum.AdministrationRoute.getKey();
             }
         } else {
             switch (type) {
@@ -453,6 +455,9 @@ public class KlConceptFacade extends KlConceptServiceImpl {
                     break;
                 case 15:
                     retType = LexiconEnum.Form.getKey();
+                    break;
+                case 16:
+                    retType = LexiconEnum.AdministrationRoute.getKey();
                 default:
                     break;
             }

+ 1 - 1
src/main/java/com/diagbot/web/RetrievalController.java

@@ -62,7 +62,7 @@ public class RetrievalController {
     }
 
     @ApiOperation(value = "术语批量查询[zhaops]",
-            notes = "type: 类型:1-化验大项、2-化验小项、3-辅检、4-诊断、5-药品、6-手术和操作、7-科室、8-输血、10-量表、11-护理、12-中医诊断、13-中医证候<br>" +
+            notes = "type: 类型:1-化验大项、2-化验小项、3-辅检、4-诊断、5-药品、6-手术和操作、7-科室、8-输血、10-量表、11-护理、12-中医诊断、13-中医证候、14-麻醉、15-药品剂型、16-给药途径<br>" +
                     "ids: 术语id列表<br>" +
                     "names: 术语列表<br>" +
                     "source: 数据来源:-1-id匹配、1-标准词、2-同义词、3-编码、4-历史数据、5-相似词、99-数据迁移<br>")