|
@@ -23,6 +23,12 @@
|
|
|
<if test="typeId!=null and typeId==100">
|
|
|
,t.icd10Code as icd10Code
|
|
|
</if>
|
|
|
+ <if test="typeId!=null and typeId==126">
|
|
|
+ ,t.code as code
|
|
|
+ </if>
|
|
|
+ <if test="typeId!=null and typeId==127">
|
|
|
+ ,t.code as code
|
|
|
+ </if>
|
|
|
<if test="typeId!=null and typeId==108">
|
|
|
,
|
|
|
t1.max_value as `maxValue`,
|
|
@@ -40,6 +46,12 @@
|
|
|
<if test="typeId!=null and typeId==100">
|
|
|
,c.icd10_code as icd10Code
|
|
|
</if>
|
|
|
+ <if test="typeId!=null and typeId==126">
|
|
|
+ ,c.code as code
|
|
|
+ </if>
|
|
|
+ <if test="typeId!=null and typeId==127">
|
|
|
+ ,c.code as code
|
|
|
+ </if>
|
|
|
FROM
|
|
|
kl_library_info a,
|
|
|
kl_concept b
|
|
@@ -48,6 +60,16 @@
|
|
|
on c.is_deleted = 'N'
|
|
|
and b.id = c.concept_id
|
|
|
</if>
|
|
|
+ <if test="typeId!=null and typeId==126">
|
|
|
+ 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">
|
|
|
+ left join kl_tcm_syndrome c
|
|
|
+ on c.is_deleted = 'N'
|
|
|
+ and b.id = c.concept_id
|
|
|
+ </if>
|
|
|
WHERE
|
|
|
a.is_deleted = 'N'
|
|
|
AND b.is_deleted = 'N'
|
|
@@ -58,6 +80,12 @@
|
|
|
<if test="typeId!=null and typeId==100">
|
|
|
OR LOWER(c.icd10_code) = LOWER(#{inputStr})
|
|
|
</if>
|
|
|
+ <if test="typeId!=null and typeId==126">
|
|
|
+ OR LOWER(c.code) = LOWER(#{inputStr})
|
|
|
+ </if>
|
|
|
+ <if test="typeId!=null and typeId==127">
|
|
|
+ OR LOWER(c.code) = LOWER(#{inputStr})
|
|
|
+ </if>
|
|
|
)
|
|
|
</if>
|
|
|
<if test="typeIds != null and typeIds.size > 0">
|
|
@@ -72,6 +100,12 @@
|
|
|
<if test="typeId!=null and typeId==100">
|
|
|
,c.icd10_code as icd10Code
|
|
|
</if>
|
|
|
+ <if test="typeId!=null and typeId==126">
|
|
|
+ ,c.code as code
|
|
|
+ </if>
|
|
|
+ <if test="typeId!=null and typeId==127">
|
|
|
+ ,c.code as code
|
|
|
+ </if>
|
|
|
FROM
|
|
|
kl_library_info a,
|
|
|
kl_concept b
|
|
@@ -80,6 +114,16 @@
|
|
|
on c.is_deleted = 'N'
|
|
|
and b.id = c.concept_id
|
|
|
</if>
|
|
|
+ <if test="typeId!=null and typeId==126">
|
|
|
+ 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">
|
|
|
+ left join kl_tcm_syndrome c
|
|
|
+ on c.is_deleted = 'N'
|
|
|
+ and b.id = c.concept_id
|
|
|
+ </if>
|
|
|
WHERE
|
|
|
a.is_deleted = 'N'
|
|
|
AND b.is_deleted = 'N'
|
|
@@ -90,6 +134,12 @@
|
|
|
<if test="typeId!=null and typeId==100">
|
|
|
OR LOWER(c.icd10_code) LIKE LOWER(concat(#{inputStr},'%'))
|
|
|
</if>
|
|
|
+ <if test="typeId!=null and typeId==126">
|
|
|
+ OR LOWER(c.code) LIKE LOWER(concat(#{inputStr},'%'))
|
|
|
+ </if>
|
|
|
+ <if test="typeId!=null and typeId==127">
|
|
|
+ OR LOWER(c.code) LIKE LOWER(concat(#{inputStr},'%'))
|
|
|
+ </if>
|
|
|
)
|
|
|
</if>
|
|
|
<if test="typeIds != null and typeIds.size > 0">
|
|
@@ -104,6 +154,12 @@
|
|
|
<if test="typeId!=null and typeId==100">
|
|
|
,c.icd10_code as icd10Code
|
|
|
</if>
|
|
|
+ <if test="typeId!=null and typeId==126">
|
|
|
+ ,c.code as code
|
|
|
+ </if>
|
|
|
+ <if test="typeId!=null and typeId==127">
|
|
|
+ ,c.code as code
|
|
|
+ </if>
|
|
|
FROM
|
|
|
kl_library_info a,
|
|
|
kl_concept b
|
|
@@ -112,6 +168,16 @@
|
|
|
on c.is_deleted = 'N'
|
|
|
and b.id = c.concept_id
|
|
|
</if>
|
|
|
+ <if test="typeId!=null and typeId==126">
|
|
|
+ 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">
|
|
|
+ left join kl_tcm_syndrome c
|
|
|
+ on c.is_deleted = 'N'
|
|
|
+ and b.id = c.concept_id
|
|
|
+ </if>
|
|
|
WHERE
|
|
|
a.is_deleted = 'N'
|
|
|
AND b.is_deleted = 'N'
|
|
@@ -122,6 +188,12 @@
|
|
|
<if test="typeId!=null and typeId==100">
|
|
|
OR LOWER(c.icd10_code) LIKE LOWER( concat('%',#{inputStr},'%'))
|
|
|
</if>
|
|
|
+ <if test="typeId!=null and typeId==126">
|
|
|
+ OR LOWER(c.code) LIKE LOWER( concat('%',#{inputStr},'%'))
|
|
|
+ </if>
|
|
|
+ <if test="typeId!=null and typeId==127">
|
|
|
+ OR LOWER(c.code) LIKE LOWER( concat('%',#{inputStr},'%'))
|
|
|
+ </if>
|
|
|
)
|
|
|
</if>
|
|
|
<if test="typeIds != null and typeIds.size > 0">
|