|
@@ -41,7 +41,7 @@
|
|
|
|
|
|
<select id="getPage" resultType="com.diagbot.dto.BehospitalInfoDTO">
|
|
|
SELECT * FROM (
|
|
|
- select t.*,
|
|
|
+ select t.*,
|
|
|
CASE WHEN ISNULL(g.status) THEN 0 ELSE g.status END check_status,
|
|
|
CASE WHEN ISNULL(h.status) THEN 0 ELSE h.status END mr_status,
|
|
|
g.check_type AS ch_type,
|
|
@@ -415,10 +415,10 @@
|
|
|
AND p.mr_status = #{mrStatus}
|
|
|
</if>
|
|
|
<if test="chName != null and chName !=''">
|
|
|
- AND p.ch_name like CONCAT('%',#{chName},'%')
|
|
|
+ AND p.ch_name like CONCAT('%',#{chName},'%')
|
|
|
</if>
|
|
|
<if test="mrName != null and mrName !=''">
|
|
|
- AND p.mr_name like CONCAT('%',#{mrName},'%')
|
|
|
+ AND p.mr_name like CONCAT('%',#{mrName},'%')
|
|
|
</if>
|
|
|
<if test="chTimeStart != null">
|
|
|
<![CDATA[ and p.ch_time >= #{chTimeStart}]]>
|
|
@@ -526,10 +526,10 @@
|
|
|
AND p.mr_status = #{mrStatus}
|
|
|
</if>
|
|
|
<if test="chName != null and chName !=''">
|
|
|
- AND p.ch_name like CONCAT('%',#{chName},'%')
|
|
|
+ AND p.ch_name like CONCAT('%',#{chName},'%')
|
|
|
</if>
|
|
|
<if test="mrName != null and mrName !=''">
|
|
|
- AND p.mr_name like CONCAT('%',#{mrName},'%')
|
|
|
+ AND p.mr_name like CONCAT('%',#{mrName},'%')
|
|
|
</if>
|
|
|
<if test="chTimeStart != null">
|
|
|
<![CDATA[ and p.ch_time >= #{chTimeStart}]]>
|
|
@@ -636,10 +636,10 @@
|
|
|
AND p.mr_status = #{mrStatus}
|
|
|
</if>
|
|
|
<if test="chName != null and chName !=''">
|
|
|
- AND p.ch_name like CONCAT('%',#{chName},'%')
|
|
|
+ AND p.ch_name like CONCAT('%',#{chName},'%')
|
|
|
</if>
|
|
|
<if test="mrName != null and mrName !=''">
|
|
|
- AND p.mr_name like CONCAT('%',#{mrName},'%')
|
|
|
+ AND p.mr_name like CONCAT('%',#{mrName},'%')
|
|
|
</if>
|
|
|
<if test="chTimeStart != null">
|
|
|
<![CDATA[ and p.ch_time >= #{chTimeStart}]]>
|
|
@@ -1697,7 +1697,8 @@
|
|
|
</select>
|
|
|
|
|
|
<!-- 各科室缺陷占比(组合)-全院-根据内外科系统统计(台州) -->
|
|
|
- <select id="levelStatisticsByDeptClass_TZ" parameterType="com.diagbot.vo.FilterOrderVO" resultType="com.diagbot.dto.LevelStatisticsTZDTO">
|
|
|
+ <select id="levelStatisticsByDeptClass_TZ" parameterType="com.diagbot.vo.FilterOrderVO"
|
|
|
+ resultType="com.diagbot.dto.LevelStatisticsTZDTO">
|
|
|
SELECT
|
|
|
t1.deptId,
|
|
|
t1.deptName,
|
|
@@ -2070,10 +2071,12 @@
|
|
|
h1.mrNum,
|
|
|
h2.entryNum,
|
|
|
h1.mrNum * h2.entryNum AS entryTotleNum,
|
|
|
- ROUND( ( h1.mrNum * h2.entryNum - h1.emptyNum ) / ( h1.mrNum * h2.entryNum ), 4 ) AS emptyPercent,
|
|
|
- ROUND( ( h1.mrNum * h2.entryNum - h1.errorNum ) / ( h1.mrNum * h2.entryNum ), 4 ) AS errorPercent,
|
|
|
- CONCAT( ROUND( ( h1.mrNum * h2.entryNum - h1.emptyNum ) / ( h1.mrNum * h2.entryNum )* 100, 2 ), '%' ) AS emptyPercentStr,
|
|
|
- CONCAT( ROUND( ( h1.mrNum * h2.entryNum - h1.errorNum ) / ( h1.mrNum * h2.entryNum )* 100, 2 ), '%' ) AS errorPercentStr
|
|
|
+ ROUND( ( h1.mrNum * h2.entryNum - h1.emptyNum ) / ( h1.mrNum * h2.entryNum ), 4 ) AS emptyPercent,
|
|
|
+ ROUND( ( h1.mrNum * h2.entryNum - h1.errorNum ) / ( h1.mrNum * h2.entryNum ), 4 ) AS errorPercent,
|
|
|
+ CONCAT( ROUND( ( h1.mrNum * h2.entryNum - h1.emptyNum ) / ( h1.mrNum * h2.entryNum )* 100, 2 ), '%' ) AS
|
|
|
+ emptyPercentStr,
|
|
|
+ CONCAT( ROUND( ( h1.mrNum * h2.entryNum - h1.errorNum ) / ( h1.mrNum * h2.entryNum )* 100, 2 ), '%' ) AS
|
|
|
+ errorPercentStr
|
|
|
FROM
|
|
|
(
|
|
|
SELECT
|
|
@@ -2568,8 +2571,10 @@
|
|
|
h1.mrNum * h2.entryNum AS entryTotleNum,
|
|
|
ROUND( ( h1.mrNum * h2.entryNum - h1.emptyNum ) / ( h1.mrNum * h2.entryNum ), 4 ) AS emptyPercent,
|
|
|
ROUND( ( h1.mrNum * h2.entryNum - h1.errorNum ) / ( h1.mrNum * h2.entryNum ), 4 ) AS errorPercent,
|
|
|
- CONCAT( ROUND( ( h1.mrNum * h2.entryNum - h1.emptyNum ) / ( h1.mrNum * h2.entryNum )* 100, 2 ), '%' ) AS emptyPercentStr,
|
|
|
- CONCAT( ROUND( ( h1.mrNum * h2.entryNum - h1.errorNum ) / ( h1.mrNum * h2.entryNum )* 100, 2 ), '%' ) AS errorPercentStr
|
|
|
+ CONCAT( ROUND( ( h1.mrNum * h2.entryNum - h1.emptyNum ) / ( h1.mrNum * h2.entryNum )* 100, 2 ), '%' ) AS
|
|
|
+ emptyPercentStr,
|
|
|
+ CONCAT( ROUND( ( h1.mrNum * h2.entryNum - h1.errorNum ) / ( h1.mrNum * h2.entryNum )* 100, 2 ), '%' ) AS
|
|
|
+ errorPercentStr
|
|
|
FROM
|
|
|
(
|
|
|
SELECT
|
|
@@ -2947,10 +2952,10 @@
|
|
|
AND tu.mr_status = #{mrStatus}
|
|
|
</if>
|
|
|
<if test="chName != null and chName !=''">
|
|
|
- AND tu.ch_name like CONCAT('%',#{chName},'%')
|
|
|
+ AND tu.ch_name like CONCAT('%',#{chName},'%')
|
|
|
</if>
|
|
|
<if test="mrName != null and mrName !=''">
|
|
|
- AND tu.mr_name like CONCAT('%',#{mrName},'%')
|
|
|
+ AND tu.mr_name like CONCAT('%',#{mrName},'%')
|
|
|
</if>
|
|
|
<if test="chTimeStart != null">
|
|
|
<![CDATA[ and tu.ch_time >= #{chTimeStart}]]>
|
|
@@ -2967,7 +2972,7 @@
|
|
|
</select>
|
|
|
|
|
|
<!-- 科室质控评分导出到excel-->
|
|
|
- <select id="exportQcresultByDept" resultMap="ExportExcelMap" parameterType="com.diagbot.vo.ExportQcresultVO">
|
|
|
+ <select id="exportQcresultByDept" resultMap="ExportExcelMap" parameterType="com.diagbot.vo.ExportQcresultVO">
|
|
|
SELECT * FROM (
|
|
|
SELECT tp.*,CASE WHEN ISNULL(g.status) THEN 0 ELSE g.status END check_status,
|
|
|
CASE WHEN ISNULL(h.status) THEN 0 ELSE h.status END mr_status,
|
|
@@ -3158,10 +3163,10 @@
|
|
|
AND tu.mr_status = #{mrStatus}
|
|
|
</if>
|
|
|
<if test="chName != null and chName !=''">
|
|
|
- AND tu.ch_name like CONCAT('%',#{chName},'%')
|
|
|
+ AND tu.ch_name like CONCAT('%',#{chName},'%')
|
|
|
</if>
|
|
|
<if test="mrName != null and mrName !=''">
|
|
|
- AND tu.mr_name like CONCAT('%',#{mrName},'%')
|
|
|
+ AND tu.mr_name like CONCAT('%',#{mrName},'%')
|
|
|
</if>
|
|
|
<if test="chTimeStart != null">
|
|
|
<![CDATA[ and tu.ch_time >= #{chTimeStart}]]>
|
|
@@ -3178,7 +3183,7 @@
|
|
|
</select>
|
|
|
|
|
|
<!-- 医疗组质控评分导出到excel-->
|
|
|
- <select id="exportQcresultByGroup" resultMap="ExportExcelMap" parameterType="com.diagbot.vo.ExportQcresultVO">
|
|
|
+ <select id="exportQcresultByGroup" resultMap="ExportExcelMap" parameterType="com.diagbot.vo.ExportQcresultVO">
|
|
|
SELECT * FROM (
|
|
|
SELECT tp.*,CASE WHEN ISNULL(g.status) THEN 0 ELSE g.status END check_status,
|
|
|
CASE WHEN ISNULL(h.status) THEN 0 ELSE h.status END mr_status,
|
|
@@ -3375,10 +3380,10 @@
|
|
|
AND tu.mr_status = #{mrStatus}
|
|
|
</if>
|
|
|
<if test="chName != null and chName !=''">
|
|
|
- AND tu.ch_name like CONCAT('%',#{chName},'%')
|
|
|
+ AND tu.ch_name like CONCAT('%',#{chName},'%')
|
|
|
</if>
|
|
|
<if test="mrName != null and mrName !=''">
|
|
|
- AND tu.mr_name like CONCAT('%',#{mrName},'%')
|
|
|
+ AND tu.mr_name like CONCAT('%',#{mrName},'%')
|
|
|
</if>
|
|
|
<if test="chTimeStart != null">
|
|
|
<![CDATA[ and tu.ch_time >= #{chTimeStart}]]>
|
|
@@ -3776,7 +3781,7 @@
|
|
|
</select>
|
|
|
|
|
|
<update id="updateBatchByKey">
|
|
|
- <foreach collection="list" item="item" separator=";">
|
|
|
+ <foreach collection="list" item="item" separator=";">
|
|
|
update med_behospital_info
|
|
|
<set>
|
|
|
<if test="item.name != null">
|
|
@@ -3866,7 +3871,8 @@
|
|
|
</update>
|
|
|
|
|
|
<!-- 关键条目缺陷统计报表-->
|
|
|
- <select id="entryStatistics" parameterType="com.diagbot.vo.EntryStatisticsVO" resultType="com.diagbot.dto.EntryStatisticsDTO">
|
|
|
+ <select id="entryStatistics" parameterType="com.diagbot.vo.EntryStatisticsVO"
|
|
|
+ resultType="com.diagbot.dto.EntryStatisticsDTO">
|
|
|
SELECT
|
|
|
deptId,
|
|
|
deptName,
|
|
@@ -3891,7 +3897,8 @@
|
|
|
'术后首次病程未即刻完成' AS operation15MinuteEntryName,
|
|
|
operation15MinuteNum,
|
|
|
ROUND( IFNULL( operation15MinuteNum / operationMRNum, 0 ), 4 ) AS operation15MinutePercent,
|
|
|
- CONCAT( ROUND( IFNULL( operation15MinuteNum / operationMRNum, 0 ) * 100, 2 ), '%' ) AS operation15MinutePercentStr,
|
|
|
+ CONCAT( ROUND( IFNULL( operation15MinuteNum / operationMRNum, 0 ) * 100, 2 ), '%' ) AS
|
|
|
+ operation15MinutePercentStr,
|
|
|
2419 AS crisisEntryId,
|
|
|
'危急值记录未在接到危急值报告后6小时内完成' AS crisisEntryName,
|
|
|
crisisMRNum,
|
|
@@ -4608,7 +4615,8 @@
|
|
|
</select>
|
|
|
|
|
|
<!-- 病案首页完整率统计-全院(首页)-->
|
|
|
- <select id="hmEmptyEntryPercent" parameterType="com.diagbot.vo.FilterVO" resultType="com.diagbot.dto.HomePageNumDTO">
|
|
|
+ <select id="hmEmptyEntryPercent" parameterType="com.diagbot.vo.FilterVO"
|
|
|
+ resultType="com.diagbot.dto.HomePageNumDTO">
|
|
|
SELECT
|
|
|
h1.emptyNum,
|
|
|
h1.mrNum,
|
|
@@ -4864,7 +4872,7 @@
|
|
|
med_medical_record_content c
|
|
|
WHERE
|
|
|
b.is_deleted = 'N'
|
|
|
- and c.is_deleted = 'N'
|
|
|
+ and c.is_deleted = 'N'
|
|
|
and t1.hospital_id = b.hospital_id
|
|
|
and t1.hospital_id = c.hospital_id
|
|
|
AND t1.behospital_code = b.behospital_code
|
|
@@ -4916,7 +4924,8 @@
|
|
|
</select>
|
|
|
|
|
|
<!-- 病案首页改善率统计(首页)-->
|
|
|
- <select id="homePageImproveCount" parameterType="com.diagbot.vo.FilterVO" resultType="com.diagbot.dto.HomePageImproveDTO">
|
|
|
+ <select id="homePageImproveCount" parameterType="com.diagbot.vo.FilterVO"
|
|
|
+ resultType="com.diagbot.dto.HomePageImproveDTO">
|
|
|
SELECT
|
|
|
t2.homePageMRNum,
|
|
|
t1.improveNum,
|
|
@@ -5070,7 +5079,8 @@
|
|
|
</select>
|
|
|
|
|
|
<!-- 质控核查统计(内页)-->
|
|
|
- <select id="qcCheckStatistics" parameterType="com.diagbot.vo.FilterOrderVO" resultType="com.diagbot.dto.HomePageImproveDTO">
|
|
|
+ <select id="qcCheckStatistics" parameterType="com.diagbot.vo.FilterOrderVO"
|
|
|
+ resultType="com.diagbot.dto.HomePageImproveDTO">
|
|
|
SELECT
|
|
|
t.*
|
|
|
FROM
|
|
@@ -6419,29 +6429,29 @@
|
|
|
</select>
|
|
|
|
|
|
<resultMap id="MedicalCheckMap" type="com.diagbot.dto.MedicalCheckDTO">
|
|
|
- <result column="deptName" property="deptName"/>
|
|
|
- <result column="deptId" property="deptId"/>
|
|
|
- <result column="doctorName" property="doctorName"/>
|
|
|
- <result column="RYJLW_24" property="ryjlw_24"/>
|
|
|
- <result column="SCBCJLW_8H" property="scbcjlw_8h"/>
|
|
|
- <result column="ZRSCCFW_72H" property="zrsccfw_72h"/>
|
|
|
- <result column="RYHLJBCW_3D" property="ryhljbcw_3d"/>
|
|
|
- <result column="ZRCFW_2W" property="zrcfw_2w"/>
|
|
|
- <result column="ZZCFW_3W" property="zzcfw_3w"/>
|
|
|
- <result column="QJJLW_6H" property="qjjlw_6h"/>
|
|
|
- <result column="HZJLW_24H" property="hzjlw_24h"/>
|
|
|
- <result column="SQTLXJW" property="sqtlxjw"/>
|
|
|
- <result column="SXJLSW_24H" property="sxjlsw_24h"/>
|
|
|
- <result column="XHSCW_30M" property="xhscw_30m"/>
|
|
|
- <result column="SHZDCFW_24H" property="shzdcfw_24h"/>
|
|
|
- <result column="SHJBCW_3D" property="shjbcw_3d"/>
|
|
|
- <result column="ZKJBCW_3D" property="zkjbcw_3d"/>
|
|
|
- <result column="ZKJLW_24" property="zkjlw_24"/>
|
|
|
- <result column="BWZHJLBCW_MD" property="bwzhjlbcw_md"/>
|
|
|
- <result column="SXHWJL" property="sxhwjl"/>
|
|
|
- <result column="SXPJW_24" property="sxpjw_24"/>
|
|
|
- <result column="WJZWJL" property="wjzwjl"/>
|
|
|
- <result column="WYWWCXJ" property="wywwcxj"/>
|
|
|
+ <result column="deptName" property="deptName"/>
|
|
|
+ <result column="deptId" property="deptId"/>
|
|
|
+ <result column="doctorName" property="doctorName"/>
|
|
|
+ <result column="entry_2658_num" property="entry_2658_num"/>
|
|
|
+ <result column="entry_2686_num" property="entry_2686_num"/>
|
|
|
+ <result column="entry_2657_num" property="entry_2657_num"/>
|
|
|
+ <result column="entry_3010_num" property="entry_3010_num"/>
|
|
|
+ <result column="entry_2655_num" property="entry_2655_num"/>
|
|
|
+ <result column="entry_2654_num" property="entry_2654_num"/>
|
|
|
+ <result column="entry_2852_num" property="entry_2852_num"/>
|
|
|
+ <result column="entry_2287_num" property="entry_2287_num"/>
|
|
|
+ <result column="entry_3025_num" property="entry_3025_num"/>
|
|
|
+ <result column="entry_2170_num" property="entry_2170_num"/>
|
|
|
+ <result column="entry_2930_num" property="entry_2930_num"/>
|
|
|
+ <result column="entry_2900_num" property="entry_2900_num"/>
|
|
|
+ <result column="entry_2229_num" property="entry_2229_num"/>
|
|
|
+ <result column="entry_2217_num" property="entry_2217_num"/>
|
|
|
+ <result column="entry_2218_num" property="entry_2218_num"/>
|
|
|
+ <result column="entry_2220_num" property="entry_2220_num"/>
|
|
|
+ <result column="entry_2486_num" property="entry_2486_num"/>
|
|
|
+ <result column="entry_3063_num" property="entry_3063_num"/>
|
|
|
+ <result column="entry_3062_num" property="entry_3062_num"/>
|
|
|
+ <result column="entry_2495_num" property="entry_2495_num"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 病历稽查表最新sql-->
|
|
@@ -6450,26 +6460,26 @@
|
|
|
a.beh_dept_id AS deptId,
|
|
|
a.beh_dept_name AS deptName,
|
|
|
a.doctor_name as doctorName,
|
|
|
- sum(c.cases_entry_id = 2658) as RYJLW_24,
|
|
|
- sum(c.cases_entry_id = 2686) as SCBCJLW_8H,
|
|
|
- sum(c.cases_entry_id = 2657) as ZRSCCFW_72H,
|
|
|
- sum(c.cases_entry_id = 3010) as RYHLJBCW_3D,
|
|
|
- sum(c.cases_entry_id = 2655) as ZRCFW_2W,
|
|
|
- sum(c.cases_entry_id = 2654) as ZZCFW_3W,
|
|
|
- sum(c.cases_entry_id = 2852) as QJJLW_6H,
|
|
|
- sum(c.cases_entry_id = 2287) as HZJLW_24H,
|
|
|
- sum(c.cases_entry_id = 3025) as SQTLXJW,
|
|
|
- sum(c.cases_entry_id = 2170) as SXJLSW_24H,
|
|
|
- sum(c.cases_entry_id = 2930) as XHSCW_30M,
|
|
|
- sum(c.cases_entry_id = 2900) as SHZDCFW_24H,
|
|
|
- sum(c.cases_entry_id = 2229) as SHJBCW_3D,
|
|
|
- sum(c.cases_entry_id = 2217) as ZKJBCW_3D,
|
|
|
- sum(c.cases_entry_id = 2218) as ZKJLW_24,
|
|
|
- sum(c.cases_entry_id = 2220) as BWZHJLBCW_MD,
|
|
|
- sum(c.cases_entry_id = 2486) as SXHWJL,
|
|
|
- sum(c.cases_entry_id = 3063) as SXPJW_24,
|
|
|
- sum(c.cases_entry_id = 3062) as WJZWJL,
|
|
|
- sum(c.cases_entry_id = 2495) as WYWWCXJ
|
|
|
+ sum(c.cases_entry_id = 2658) as entry_2658_num,
|
|
|
+ sum(c.cases_entry_id = 2686) as entry_2686_num,
|
|
|
+ sum(c.cases_entry_id = 2657) as entry_2657_num,
|
|
|
+ sum(c.cases_entry_id = 3010) as entry_3010_num,
|
|
|
+ sum(c.cases_entry_id = 2655) as entry_2655_num,
|
|
|
+ sum(c.cases_entry_id = 2654) as entry_2654_num,
|
|
|
+ sum(c.cases_entry_id = 2852) as entry_2852_num,
|
|
|
+ sum(c.cases_entry_id = 2287) as entry_2287_num,
|
|
|
+ sum(c.cases_entry_id = 3025) as entry_3025_num,
|
|
|
+ sum(c.cases_entry_id = 2170) as entry_2170_num,
|
|
|
+ sum(c.cases_entry_id = 2930) as entry_2930_num,
|
|
|
+ sum(c.cases_entry_id = 2900) as entry_2900_num,
|
|
|
+ sum(c.cases_entry_id = 2229) as entry_2229_num,
|
|
|
+ sum(c.cases_entry_id = 2217) as entry_2217_num,
|
|
|
+ sum(c.cases_entry_id = 2218) as entry_2218_num,
|
|
|
+ sum(c.cases_entry_id = 2220) as entry_2220_num,
|
|
|
+ sum(c.cases_entry_id = 2486) as entry_2486_num,
|
|
|
+ sum(c.cases_entry_id = 3063) as entry_3063_num,
|
|
|
+ sum(c.cases_entry_id = 3062) as entry_3062_num,
|
|
|
+ sum(c.cases_entry_id = 2495) as entry_2495_num
|
|
|
FROM
|
|
|
med_behospital_info a,
|
|
|
med_qcresult_info b,
|
|
@@ -6523,11 +6533,29 @@
|
|
|
a.doctor_id
|
|
|
</select>
|
|
|
|
|
|
+ <!-- 病历稽查表最新sql、id&&name-->
|
|
|
+ <select id="getMedicalEntryIds" resultType="com.diagbot.dto.MedicalCheckIdNameDTO">
|
|
|
+ SELECT
|
|
|
+ d.id,
|
|
|
+ d.name
|
|
|
+ from
|
|
|
+ qc_cases_entry d
|
|
|
+ where
|
|
|
+ 1=1
|
|
|
+ <if test="casesEntryIds != null and casesEntryIds.size() > 0">
|
|
|
+ and d.id in
|
|
|
+ <foreach collection="casesEntryIds" open="(" separator="," close=")" item="item">
|
|
|
+ '${item}'
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
<resultMap id="MedicalCheckExcelMap" type="com.diagbot.dto.MedicalCheckExportDTO">
|
|
|
<result column="deptName" property="deptName"/>
|
|
|
- <collection property="medicalDoctorExportDTOS" javaType="ArrayList" ofType="com.diagbot.dto.MedicalDoctorExportDTO">
|
|
|
+ <collection property="medicalDoctorExportDTOS" javaType="ArrayList"
|
|
|
+ ofType="com.diagbot.dto.MedicalDoctorExportDTO">
|
|
|
<result column="doctorName" property="doctorName"/>
|
|
|
- <collection property="medicalCheckTitleDTOS" javaType="ArrayList" ofType="com.diagbot.dto.MedicalCheckTitleDTO">
|
|
|
+ <collection property="medicalCheckTitleDTOS" javaType="ArrayList"
|
|
|
+ ofType="com.diagbot.dto.MedicalCheckTitleDTO">
|
|
|
<result column="RYJLW_24" property="ryjlw_24"/>
|
|
|
<result column="SCBCJLW_8H" property="scbcjlw_8h"/>
|
|
|
<result column="ZRSCCFW_72H" property="zrsccfw_72h"/>
|
|
@@ -6558,46 +6586,46 @@
|
|
|
a.beh_dept_id AS deptId,
|
|
|
a.beh_dept_name AS deptName,
|
|
|
GROUP_CONCAT( DISTINCT a.doctor_name) as doctorName,
|
|
|
- GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2658 THEN a.behospital_code else null END ) as RYJLW_24,
|
|
|
- GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2686 THEN a.behospital_code else null END ) as SCBCJLW_8H,
|
|
|
- GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2657 THEN a.behospital_code else null END ) as ZRSCCFW_72H,
|
|
|
- GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 3010 THEN a.behospital_code else null END ) as RYHLJBCW_3D,
|
|
|
- GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2655 THEN a.behospital_code else null END ) as ZRCFW_2W,
|
|
|
- GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2654 THEN a.behospital_code else null END ) as ZZCFW_3W,
|
|
|
- GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2852 THEN a.behospital_code else null END ) as QJJLW_6H,
|
|
|
- GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2287 THEN a.behospital_code else null END ) as HZJLW_24H,
|
|
|
- GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 3025 THEN a.behospital_code else null END ) as SQTLXJW,
|
|
|
- GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2170 THEN a.behospital_code else null END ) as SXJLSW_24H,
|
|
|
- GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2930 THEN a.behospital_code else null END ) as XHSCW_30M,
|
|
|
- GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2900 THEN a.behospital_code else null END ) as SHZDCFW_24H,
|
|
|
- GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2229 THEN a.behospital_code else null END ) as SHJBCW_3D,
|
|
|
- GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2217 THEN a.behospital_code else null END ) as ZKJBCW_3D,
|
|
|
- GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2218 THEN a.behospital_code else null END ) as ZKJLW_24,
|
|
|
- GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2220 THEN a.behospital_code else null END ) as BWZHJLBCW_MD,
|
|
|
- GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2486 THEN a.behospital_code else null END ) as SXHWJL,
|
|
|
- GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 3063 THEN a.behospital_code else null END ) as SXPJW_24,
|
|
|
- GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 3062 THEN a.behospital_code else null END ) as WJZWJL,
|
|
|
- GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2495 THEN a.behospital_code else null END ) as WYWWCXJ
|
|
|
+ GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2658 THEN a.behospital_code else null END ) as RYJLW_24,
|
|
|
+ GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2686 THEN a.behospital_code else null END ) as SCBCJLW_8H,
|
|
|
+ GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2657 THEN a.behospital_code else null END ) as ZRSCCFW_72H,
|
|
|
+ GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 3010 THEN a.behospital_code else null END ) as RYHLJBCW_3D,
|
|
|
+ GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2655 THEN a.behospital_code else null END ) as ZRCFW_2W,
|
|
|
+ GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2654 THEN a.behospital_code else null END ) as ZZCFW_3W,
|
|
|
+ GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2852 THEN a.behospital_code else null END ) as QJJLW_6H,
|
|
|
+ GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2287 THEN a.behospital_code else null END ) as HZJLW_24H,
|
|
|
+ GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 3025 THEN a.behospital_code else null END ) as SQTLXJW,
|
|
|
+ GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2170 THEN a.behospital_code else null END ) as SXJLSW_24H,
|
|
|
+ GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2930 THEN a.behospital_code else null END ) as XHSCW_30M,
|
|
|
+ GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2900 THEN a.behospital_code else null END ) as SHZDCFW_24H,
|
|
|
+ GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2229 THEN a.behospital_code else null END ) as SHJBCW_3D,
|
|
|
+ GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2217 THEN a.behospital_code else null END ) as ZKJBCW_3D,
|
|
|
+ GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2218 THEN a.behospital_code else null END ) as ZKJLW_24,
|
|
|
+ GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2220 THEN a.behospital_code else null END ) as BWZHJLBCW_MD,
|
|
|
+ GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2486 THEN a.behospital_code else null END ) as SXHWJL,
|
|
|
+ GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 3063 THEN a.behospital_code else null END ) as SXPJW_24,
|
|
|
+ GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 3062 THEN a.behospital_code else null END ) as WJZWJL,
|
|
|
+ GROUP_CONCAT(DISTINCT case when c.cases_entry_id = 2495 THEN a.behospital_code else null END ) as WYWWCXJ
|
|
|
+ -- sum(c.cases_entry_id = 2658) as RYJLW_24,
|
|
|
+ -- sum(c.cases_entry_id = 2686) as SCBCJLW_8H,
|
|
|
+ -- sum(c.cases_entry_id = 2657) as ZRSCCFW_72H,
|
|
|
+ -- sum(c.cases_entry_id = 3010) as RYHLJBCW_3D,
|
|
|
+ -- sum(c.cases_entry_id = 2655) as ZRCFW_2W,
|
|
|
+ -- sum(c.cases_entry_id = 2654) as ZZCFW_3W,
|
|
|
+ -- sum(c.cases_entry_id = 2852) as QJJLW_6H,
|
|
|
+ -- sum(c.cases_entry_id = 2287) as HZJLW_24H,
|
|
|
+ -- sum(c.cases_entry_id = 3025) as SQTLXJW,
|
|
|
+ -- sum(c.cases_entry_id = 2170) as SXJLSW_24H,
|
|
|
+ -- sum(c.cases_entry_id = 2930) as XHSCW_30M,
|
|
|
+ -- sum(c.cases_entry_id = 2900) as SHZDCFW_24H,
|
|
|
+ -- sum(c.cases_entry_id = 2229) as SHJBCW_3D,
|
|
|
+ -- sum(c.cases_entry_id = 2217) as ZKJBCW_3D,
|
|
|
+ -- sum(c.cases_entry_id = 2218) as ZKJLW_24,
|
|
|
+ -- sum(c.cases_entry_id = 2220) as BWZHJLBCW_MD,
|
|
|
+ -- sum(c.cases_entry_id = 2486) as SXHWJL,
|
|
|
+ -- sum(c.cases_entry_id = 3063) as SXPJW_24,
|
|
|
+ -- sum(c.cases_entry_id = 3062) as WJZWJL,
|
|
|
+ -- sum(c.cases_entry_id = 2495) as WYWWCXJ
|
|
|
FROM
|
|
|
med_behospital_info a,
|
|
|
med_qcresult_info b,
|
|
@@ -6651,7 +6679,8 @@
|
|
|
</select>
|
|
|
|
|
|
<!-- 未整改病历统计-->
|
|
|
- <select id="unModifyMRStatistics" resultType="com.diagbot.dto.UnModifyMRDetailDTO" parameterType="com.diagbot.vo.FilterUnModifyMRVO">
|
|
|
+ <select id="unModifyMRStatistics" resultType="com.diagbot.dto.UnModifyMRDetailDTO"
|
|
|
+ parameterType="com.diagbot.vo.FilterUnModifyMRVO">
|
|
|
SELECT
|
|
|
a.beh_dept_id AS deptId,
|
|
|
a.beh_dept_name AS deptName,
|