|
@@ -77,6 +77,8 @@
|
|
|
s.type,
|
|
|
s.typeName,
|
|
|
s.code,
|
|
|
+ s.guocode,
|
|
|
+ IF(( s.CODE IS NULL OR s.CODE = '' ) AND s.NAME = s.guoname, '', s.guoname ) AS guoname,
|
|
|
s1.concept_id AS conceptId,
|
|
|
s1.clinical_pathway_name AS clinicalPathwayName,
|
|
|
s1.notice_name AS noticeName,
|
|
@@ -91,7 +93,9 @@
|
|
|
t.isConcept,
|
|
|
t.type,
|
|
|
t.typeName,
|
|
|
- t1.icd10_code AS code
|
|
|
+ t1.icd10_code AS code,
|
|
|
+ t1.guocode,
|
|
|
+ t1.guoname
|
|
|
FROM
|
|
|
(
|
|
|
SELECT
|
|
@@ -133,7 +137,9 @@
|
|
|
t.isConcept,
|
|
|
t.type,
|
|
|
t.typeName,
|
|
|
- t1.icd10_code AS code
|
|
|
+ t1.icd10_code AS code,
|
|
|
+ t1.guocode,
|
|
|
+ t1.guoname
|
|
|
FROM
|
|
|
(
|
|
|
SELECT
|
|
@@ -175,7 +181,9 @@
|
|
|
t.isConcept,
|
|
|
t.type,
|
|
|
t.typeName,
|
|
|
- t1.icd10_code AS code
|
|
|
+ t1.icd10_code AS code,
|
|
|
+ t1.guocode,
|
|
|
+ t1.guoname
|
|
|
FROM
|
|
|
(
|
|
|
SELECT
|
|
@@ -426,7 +434,9 @@
|
|
|
t.isConcept,
|
|
|
t.type,
|
|
|
t.typeName,
|
|
|
- l1.icd10_code AS code
|
|
|
+ l1.icd10_code AS code,
|
|
|
+ l1.guocode,
|
|
|
+ l1.guoname
|
|
|
FROM
|
|
|
(
|
|
|
SELECT
|
|
@@ -454,9 +464,17 @@
|
|
|
LEFT JOIN kl_disease l1 ON t.id = l1.concept_id
|
|
|
AND l1.is_deleted = 'N'
|
|
|
<where>
|
|
|
- <if test="staticKnowledgeIndexPageVO.inputStr!=null and staticKnowledgeIndexPageVO.inputStr!=''">
|
|
|
- AND LOWER(l1.icd10_code) = LOWER(#{staticKnowledgeIndexPageVO.inputStr})
|
|
|
- </if>
|
|
|
+ <if test="staticKnowledgeIndexPageVO.inputStr!=null and staticKnowledgeIndexPageVO.inputStr!=''">
|
|
|
+ AND (
|
|
|
+ LOWER(l1.icd10_code) = LOWER(#{staticKnowledgeIndexPageVO.inputStr})
|
|
|
+ OR
|
|
|
+ LOWER(l1.guospell) = LOWER(#{staticKnowledgeIndexPageVO.inputStr})
|
|
|
+ OR
|
|
|
+ LOWER(l1.guocode) = LOWER(#{staticKnowledgeIndexPageVO.inputStr})
|
|
|
+ OR
|
|
|
+ LOWER(l1.guoname) = LOWER(#{staticKnowledgeIndexPageVO.inputStr})
|
|
|
+ )
|
|
|
+ </if>
|
|
|
</where>
|
|
|
UNION
|
|
|
SELECT
|
|
@@ -467,7 +485,9 @@
|
|
|
t.isConcept,
|
|
|
t.type,
|
|
|
t.typeName,
|
|
|
- l1.icd10_code AS code
|
|
|
+ l1.icd10_code AS code,
|
|
|
+ l1.guocode,
|
|
|
+ l1.guoname
|
|
|
FROM
|
|
|
(
|
|
|
SELECT
|
|
@@ -495,9 +515,16 @@
|
|
|
LEFT JOIN kl_disease l1 ON t.id = l1.concept_id
|
|
|
AND l1.is_deleted = 'N'
|
|
|
<where>
|
|
|
- <if test="staticKnowledgeIndexPageVO.inputStr!=null and staticKnowledgeIndexPageVO.inputStr!=''">
|
|
|
- AND LOWER(l1.icd10_code) LIKE LOWER( concat(#{staticKnowledgeIndexPageVO.inputStr},'%'))
|
|
|
- </if>
|
|
|
+ <if test="staticKnowledgeIndexPageVO.inputStr!=null and staticKnowledgeIndexPageVO.inputStr!=''">
|
|
|
+ AND (LOWER(l1.icd10_code) LIKE LOWER( concat(#{staticKnowledgeIndexPageVO.inputStr},'%'))
|
|
|
+ OR
|
|
|
+ LOWER(l1.guospell) LIKE LOWER( concat(#{staticKnowledgeIndexPageVO.inputStr},'%'))
|
|
|
+ OR
|
|
|
+ LOWER(l1.guocode) LIKE LOWER( concat(#{staticKnowledgeIndexPageVO.inputStr},'%'))
|
|
|
+ OR
|
|
|
+ LOWER(l1.guoname) LIKE LOWER( concat(#{staticKnowledgeIndexPageVO.inputStr},'%'))
|
|
|
+ )
|
|
|
+ </if>
|
|
|
</where>
|
|
|
UNION
|
|
|
SELECT
|
|
@@ -508,7 +535,9 @@
|
|
|
t.isConcept,
|
|
|
t.type,
|
|
|
t.typeName,
|
|
|
- l1.icd10_code AS code
|
|
|
+ l1.icd10_code AS code,
|
|
|
+ l1.guocode,
|
|
|
+ l1.guoname
|
|
|
FROM
|
|
|
(
|
|
|
SELECT
|
|
@@ -536,9 +565,16 @@
|
|
|
LEFT JOIN kl_disease l1 ON t.id = l1.concept_id
|
|
|
AND l1.is_deleted = 'N'
|
|
|
<where>
|
|
|
- <if test="staticKnowledgeIndexPageVO.inputStr!=null and staticKnowledgeIndexPageVO.inputStr!=''">
|
|
|
- AND LOWER(l1.icd10_code) LIKE LOWER( concat('%',#{staticKnowledgeIndexPageVO.inputStr},'%'))
|
|
|
- </if>
|
|
|
+ <if test="staticKnowledgeIndexPageVO.inputStr!=null and staticKnowledgeIndexPageVO.inputStr!=''">
|
|
|
+ AND (LOWER(l1.icd10_code) LIKE LOWER( concat('%',#{staticKnowledgeIndexPageVO.inputStr},'%'))
|
|
|
+ OR
|
|
|
+ LOWER(l1.guospell) LIKE LOWER( concat('%',#{staticKnowledgeIndexPageVO.inputStr},'%'))
|
|
|
+ OR
|
|
|
+ LOWER(l1.guocode) LIKE LOWER( concat('%',#{staticKnowledgeIndexPageVO.inputStr},'%'))
|
|
|
+ OR
|
|
|
+ LOWER(l1.guoname) LIKE LOWER( concat('%',#{staticKnowledgeIndexPageVO.inputStr},'%'))
|
|
|
+ )
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</if>
|
|
|
) s,
|