Quellcode durchsuchen

1、中医疾病检索、中医证候检索

zhaops vor 4 Jahren
Ursprung
Commit
b1a4a26dcd

+ 48 - 46
src/main/java/com/diagbot/enums/LexiconEnum.java

@@ -10,52 +10,54 @@ import lombok.Setter;
  */
 public enum LexiconEnum implements KeyedNamed {
 
-    Disease(100,"疾病"),
-    Medicine(101,"药品通用名"),
-    Form(102,"药品剂型"),
-    Symptom(103,"症状"),
-    Vital(104,"体格检查项目"),
-    VitalResult(105,"体格检查结果"),
-    Operation(106,"手术和操作"),
-    LisName(107,"实验室检查套餐"),
-    LisSubName(108,"实验室检查子项目"),
-    PacsName(109,"辅助检查项目"),
-    PacsSubName(110,"辅助检查子项目"),
-    PacsDescribe(111,"辅助检查描述"),
-    PacsResult(112,"辅助检查结果"),
-    Transfusion(113,"输血类型"),
-    Anesthesia(114,"麻醉"),
-    Dept(115,"科室"),
-    Gender(116,"性别"),
-    Group(117,"人群"),
-    Food(118,"食物"),
-    Allergen(119,"其他过敏原"),
-    Device(120,"医疗器械及物品"),
-    AdministrationRoute(121,"给药途径"),
-    Part(122,"部位"),
-    Nurse(123,"护理"),
-    Scale(124,"量表"),
-    Unit(125,"单位"),
-    ICD10Class(300,"ICD10疾病类别"),
-    MedChemClass(301,"药品化学物质类别"),
-    MedZhiLiaoClass(302,"药品治疗学类别"),
-    MedYaoLiClass(303,"药品药理学类别"),
-    MedJiePouClass(304,"药品解剖学类别"),
-    SymptomClass(305,"症状类别"),
-    OperationClass(306,"手术和操作类别"),
-    ICD10ClassNode(400,"ICD10疾病类别根节点"),
-    DeptDiseaseNode(401,"科室疾病类别根节点"),
-    MedChemClassNode(402,"药品化学物质类别根节点"),
-    MedZhiLiaoClassNode(403,"药品治疗学类别根节点"),
-    MedYaoLiClassNode(404,"药品药理学类别根节点"),
-    MedJiePouClassNode(405,"药品解剖学类别根节点"),
-    SymptomClassNode(406,"症状类别根节点"),
-    OperationClassNode(407,"手术和操作类别根节点"),
-    LisClassNode(408,"实验室检查类别根节点"),
-    PacsClassNode(409,"辅助检查类别根节点"),
-    Age(410,"年龄"),
-    Tcmdisease(126,"中医疾病"),
-    Tcmsyndrome(127,"中医证候");
+    Disease(100, "疾病"),
+    Medicine(101, "药品通用名"),
+    Form(102, "药品剂型"),
+    Symptom(103, "症状"),
+    Vital(104, "体格检查项目"),
+    VitalResult(105, "体格检查结果"),
+    Operation(106, "手术和操作"),
+    LisName(107, "实验室检查套餐"),
+    LisSubName(108, "实验室检查子项目"),
+    PacsName(109, "辅助检查项目"),
+    PacsSubName(110, "辅助检查子项目"),
+    PacsDescribe(111, "辅助检查描述"),
+    PacsResult(112, "辅助检查结果"),
+    Transfusion(113, "输血类型"),
+    Anesthesia(114, "麻醉"),
+    Dept(115, "科室"),
+    Gender(116, "性别"),
+    Group(117, "人群"),
+    Food(118, "食物"),
+    Allergen(119, "其他过敏原"),
+    Device(120, "医疗器械及物品"),
+    AdministrationRoute(121, "给药途径"),
+    Part(122, "部位"),
+    Nurse(123, "护理"),
+    Scale(124, "量表"),
+    Unit(125, "单位"),
+    ICD10Class(300, "ICD10疾病类别"),
+    MedChemClass(301, "药品化学物质类别"),
+    MedZhiLiaoClass(302, "药品治疗学类别"),
+    MedYaoLiClass(303, "药品药理学类别"),
+    MedJiePouClass(304, "药品解剖学类别"),
+    SymptomClass(305, "症状类别"),
+    OperationClass(306, "手术和操作类别"),
+    ICD10ClassNode(400, "ICD10疾病类别根节点"),
+    DeptDiseaseNode(401, "科室疾病类别根节点"),
+    MedChemClassNode(402, "药品化学物质类别根节点"),
+    MedZhiLiaoClassNode(403, "药品治疗学类别根节点"),
+    MedYaoLiClassNode(404, "药品药理学类别根节点"),
+    MedJiePouClassNode(405, "药品解剖学类别根节点"),
+    SymptomClassNode(406, "症状类别根节点"),
+    OperationClassNode(407, "手术和操作类别根节点"),
+    LisClassNode(408, "实验室检查类别根节点"),
+    PacsClassNode(409, "辅助检查类别根节点"),
+    Age(410, "年龄"),
+    Property(126, "性质"),
+    Tcmdisease(127, "中医疾病"),
+    Tcmsyndrome(128, "中医证候"),
+    Inducement(129, "诱因");
 
 
     @Setter

+ 20 - 20
src/main/resources/mapper/KlConceptMapper.xml

@@ -23,10 +23,10 @@
 		<if test="typeId!=null and typeId==100">
 			,t.icd10Code as icd10Code
 		</if>
-		<if test="typeId!=null and typeId==126">
+		<if test="typeId!=null and typeId==127">
 			,t.code as code
 		</if>
-		<if test="typeId!=null and typeId==127">
+		<if test="typeId!=null and typeId==128">
 			,t.code as code
 		</if>
 		<if test="typeId!=null and typeId==108">
@@ -46,10 +46,10 @@
 		<if test="typeId!=null and typeId==100">
 			,c.icd10_code as icd10Code
 		</if>
-		<if test="typeId!=null and typeId==126">
+		<if test="typeId!=null and typeId==127">
 			,c.code as code
 		</if>
-		<if test="typeId!=null and typeId==127">
+		<if test="typeId!=null and typeId==128">
 			,c.code as code
 		</if>
 		FROM
@@ -60,12 +60,12 @@
 			on c.is_deleted = 'N'
 			and b.id = c.concept_id
 		</if>
-		<if test="typeId!=null and typeId==126">
+		<if test="typeId!=null and typeId==127">
 			left join kl_tcm_disease c
 			on c.is_deleted = 'N'
 			and b.id = c.concept_id
 		</if>
-		<if test="typeId!=null and typeId==127">
+		<if test="typeId!=null and typeId==128">
 			left join kl_tcm_syndrome c
 			on c.is_deleted = 'N'
 			and b.id = c.concept_id
@@ -80,10 +80,10 @@
 			<if test="typeId!=null and typeId==100">
 				OR LOWER(c.icd10_code) = LOWER(#{inputStr})
 			</if>
-			<if test="typeId!=null and typeId==126">
+			<if test="typeId!=null and typeId==127">
 				OR LOWER(c.code) = LOWER(#{inputStr})
 			</if>
-			<if test="typeId!=null and typeId==127">
+			<if test="typeId!=null and typeId==128">
 				OR LOWER(c.code) = LOWER(#{inputStr})
 			</if>
 			)
@@ -100,10 +100,10 @@
 		<if test="typeId!=null and typeId==100">
 			,c.icd10_code as icd10Code
 		</if>
-		<if test="typeId!=null and typeId==126">
+		<if test="typeId!=null and typeId==127">
 			,c.code as code
 		</if>
-		<if test="typeId!=null and typeId==127">
+		<if test="typeId!=null and typeId==128">
 			,c.code as code
 		</if>
 		FROM
@@ -114,12 +114,12 @@
 			on c.is_deleted = 'N'
 			and b.id = c.concept_id
 		</if>
-		<if test="typeId!=null and typeId==126">
+		<if test="typeId!=null and typeId==127">
 			left join kl_tcm_disease c
 			on c.is_deleted = 'N'
 			and b.id = c.concept_id
 		</if>
-		<if test="typeId!=null and typeId==127">
+		<if test="typeId!=null and typeId==128">
 			left join kl_tcm_syndrome c
 			on c.is_deleted = 'N'
 			and b.id = c.concept_id
@@ -134,10 +134,10 @@
 			<if test="typeId!=null and typeId==100">
 				OR LOWER(c.icd10_code) LIKE LOWER(concat(#{inputStr},'%'))
 			</if>
-			<if test="typeId!=null and typeId==126">
+			<if test="typeId!=null and typeId==127">
 				OR LOWER(c.code) LIKE LOWER(concat(#{inputStr},'%'))
 			</if>
-			<if test="typeId!=null and typeId==127">
+			<if test="typeId!=null and typeId==128">
 				OR LOWER(c.code) LIKE LOWER(concat(#{inputStr},'%'))
 			</if>
 			)
@@ -154,10 +154,10 @@
 		<if test="typeId!=null and typeId==100">
 			,c.icd10_code as icd10Code
 		</if>
-		<if test="typeId!=null and typeId==126">
+		<if test="typeId!=null and typeId==127">
 			,c.code as code
 		</if>
-		<if test="typeId!=null and typeId==127">
+		<if test="typeId!=null and typeId==128">
 			,c.code as code
 		</if>
 		FROM
@@ -168,12 +168,12 @@
 			on c.is_deleted = 'N'
 			and b.id = c.concept_id
 		</if>
-		<if test="typeId!=null and typeId==126">
+		<if test="typeId!=null and typeId==127">
 			left join kl_tcm_disease c
 			on c.is_deleted = 'N'
 			and b.id = c.concept_id
 		</if>
-		<if test="typeId!=null and typeId==127">
+		<if test="typeId!=null and typeId==128">
 			left join kl_tcm_syndrome c
 			on c.is_deleted = 'N'
 			and b.id = c.concept_id
@@ -188,10 +188,10 @@
 			<if test="typeId!=null and typeId==100">
 				OR LOWER(c.icd10_code) LIKE LOWER( concat('%',#{inputStr},'%'))
 			</if>
-			<if test="typeId!=null and typeId==126">
+			<if test="typeId!=null and typeId==127">
 				OR LOWER(c.code) LIKE LOWER( concat('%',#{inputStr},'%'))
 			</if>
-			<if test="typeId!=null and typeId==127">
+			<if test="typeId!=null and typeId==128">
 				OR LOWER(c.code) LIKE LOWER( concat('%',#{inputStr},'%'))
 			</if>
 			)