|
@@ -1,10 +1,10 @@
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
-<mapper namespace="com.diagbot.mapper.BehospitalInfoMapper">
|
|
|
|
|
|
+<mapper namespace="com.lantone.data.mapper.BehospitalInfoMapper">
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
<!-- 通用查询映射结果 -->
|
|
- <resultMap id="BaseResultMap" type="com.diagbot.entity.BehospitalInfo">
|
|
|
|
|
|
+ <resultMap id="BaseResultMap" type="com.lantone.data.entity.BehospitalInfo">
|
|
<id column="behospital_code" property="behospitalCode"/>
|
|
<id column="behospital_code" property="behospitalCode"/>
|
|
<result column="hospital_id" property="hospitalId"/>
|
|
<result column="hospital_id" property="hospitalId"/>
|
|
<result column="name" property="name"/>
|
|
<result column="name" property="name"/>
|
|
@@ -40,7 +40,7 @@
|
|
<result column="linkman" property="linkman"/>
|
|
<result column="linkman" property="linkman"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
- <select id="getPage" resultType="com.diagbot.dto.BehospitalInfoDTO">
|
|
|
|
|
|
+ <select id="getPage" resultType="com.lantone.data.dto.BehospitalInfoDTO">
|
|
SELECT * FROM (
|
|
SELECT * FROM (
|
|
select t.*,
|
|
select t.*,
|
|
CASE WHEN ISNULL(g.status) THEN 0 ELSE g.status END check_status,
|
|
CASE WHEN ISNULL(g.status) THEN 0 ELSE g.status END check_status,
|
|
@@ -144,7 +144,7 @@
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="getQualityCaseSorce" resultType="com.diagbot.dto.CaseScoreDTO">
|
|
|
|
|
|
+ <select id="getQualityCaseSorce" resultType="com.lantone.data.dto.CaseScoreDTO">
|
|
SELECT c.cases_id as casesId,c.cases_entry_id as casesEntryId,c.behospital_code as behospitalCode,c.score,c.cases_score as casesScore,c.msg,c.is_reject as isReject
|
|
SELECT c.cases_id as casesId,c.cases_entry_id as casesEntryId,c.behospital_code as behospitalCode,c.score,c.cases_score as casesScore,c.msg,c.is_reject as isReject
|
|
FROM med_qcresult_detail c,med_behospital_info e
|
|
FROM med_qcresult_detail c,med_behospital_info e
|
|
where c.is_deleted = 'N'AND e.is_deleted = 'N'
|
|
where c.is_deleted = 'N'AND e.is_deleted = 'N'
|
|
@@ -176,7 +176,7 @@
|
|
order by c.behospital_code
|
|
order by c.behospital_code
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="getQualityCaseSorceByDept" resultType="com.diagbot.dto.CaseScoreDTO">
|
|
|
|
|
|
+ <select id="getQualityCaseSorceByDept" resultType="com.lantone.data.dto.CaseScoreDTO">
|
|
SELECT c.cases_id as casesId,c.cases_entry_id as casesEntryId,c.behospital_code as behospitalCode,c.score,c.cases_score as casesScore,c.msg,c.is_reject as isReject
|
|
SELECT c.cases_id as casesId,c.cases_entry_id as casesEntryId,c.behospital_code as behospitalCode,c.score,c.cases_score as casesScore,c.msg,c.is_reject as isReject
|
|
FROM med_qcresult_detail c,sys_user_dept d,med_behospital_info e
|
|
FROM med_qcresult_detail c,sys_user_dept d,med_behospital_info e
|
|
where c.is_deleted = 'N' AND d.is_deleted = 'N' AND e.is_deleted = 'N'
|
|
where c.is_deleted = 'N' AND d.is_deleted = 'N' AND e.is_deleted = 'N'
|
|
@@ -213,7 +213,7 @@
|
|
order by c.behospital_code
|
|
order by c.behospital_code
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="getQualityControl" resultType="com.diagbot.dto.QualityControlDTO">
|
|
|
|
|
|
+ <select id="getQualityControl" resultType="com.lantone.data.dto.QualityControlDTO">
|
|
SELECT * FROM (
|
|
SELECT * FROM (
|
|
select
|
|
select
|
|
distinct
|
|
distinct
|
|
@@ -304,7 +304,7 @@
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="qualityControlByDept" resultType="com.diagbot.dto.QualityControlDeptDTO">
|
|
|
|
|
|
+ <select id="qualityControlByDept" resultType="com.lantone.data.dto.QualityControlDeptDTO">
|
|
SELECT * FROM (
|
|
SELECT * FROM (
|
|
select
|
|
select
|
|
distinct
|
|
distinct
|
|
@@ -394,7 +394,7 @@
|
|
AND p.mrName like CONCAT('%',#{mrName},'%')
|
|
AND p.mrName like CONCAT('%',#{mrName},'%')
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
- <!-- <select id="getQualityControl" resultType="com.diagbot.dto.QualityControlDTO">
|
|
|
|
|
|
+ <!-- <select id="getQualityControl" resultType="com.lantone.data.dto.QualityControlDTO">
|
|
SELECT m.* FROM(
|
|
SELECT m.* FROM(
|
|
SELECT
|
|
SELECT
|
|
a.name AS NAME,
|
|
a.name AS NAME,
|
|
@@ -679,7 +679,7 @@
|
|
|
|
|
|
</select>-->
|
|
</select>-->
|
|
|
|
|
|
- <select id="getMsg" resultType="com.diagbot.dto.MsgDTO">
|
|
|
|
|
|
+ <select id="getMsg" resultType="com.lantone.data.dto.MsgDTO">
|
|
SELECT a.*, u.linkman
|
|
SELECT a.*, u.linkman
|
|
FROM
|
|
FROM
|
|
(
|
|
(
|
|
@@ -701,7 +701,7 @@
|
|
LEFT JOIN sys_user u on u.id = a.modifier and u.is_deleted = 'N'
|
|
LEFT JOIN sys_user u on u.id = a.modifier and u.is_deleted = 'N'
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="getForeignMsg" resultType="com.diagbot.dto.MsgDTO">
|
|
|
|
|
|
+ <select id="getForeignMsg" resultType="com.lantone.data.dto.MsgDTO">
|
|
SELECT a.*, u.linkman
|
|
SELECT a.*, u.linkman
|
|
FROM
|
|
FROM
|
|
(
|
|
(
|
|
@@ -724,7 +724,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- <select id="getMsgByEntryCode" resultType="com.diagbot.dto.MsgDTO">
|
|
|
|
|
|
+ <select id="getMsgByEntryCode" resultType="com.lantone.data.dto.MsgDTO">
|
|
SELECT b.id model_id,b.`name` model_name,
|
|
SELECT b.id model_id,b.`name` model_name,
|
|
d.score,d.msg,d.cases_entry_id,d.is_reject,
|
|
d.score,d.msg,d.cases_entry_id,d.is_reject,
|
|
a.cases_id cases_id, a.name standard_msg,a.code
|
|
a.cases_id cases_id, a.name standard_msg,a.code
|
|
@@ -745,7 +745,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!--病案管理指标基础sql明细-->
|
|
<!--病案管理指标基础sql明细-->
|
|
- <select id="getBaseIndex" parameterType="com.diagbot.vo.MedIndexFilterVO" resultType="java.util.Map">
|
|
|
|
|
|
+ <select id="getBaseIndex" parameterType="com.lantone.data.vo.MedIndexFilterVO" resultType="java.util.Map">
|
|
select
|
|
select
|
|
f1.firWorkNum,
|
|
f1.firWorkNum,
|
|
f2.secWorkNum,
|
|
f2.secWorkNum,
|
|
@@ -806,7 +806,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 病案管理规则质控缺陷病历总数查询-->
|
|
<!-- 病案管理规则质控缺陷病历总数查询-->
|
|
- <select id="getMedManageParams" parameterType="com.diagbot.vo.FilterVO" resultType="com.diagbot.dto.MedManageParamsDTO">
|
|
|
|
|
|
+ <select id="getMedManageParams" parameterType="com.lantone.data.vo.FilterVO" resultType="com.lantone.data.dto.MedManageParamsDTO">
|
|
SELECT
|
|
SELECT
|
|
f1.behospitalCode,
|
|
f1.behospitalCode,
|
|
<if test="flagStr != null and flagStr == 1 ">
|
|
<if test="flagStr != null and flagStr == 1 ">
|
|
@@ -870,8 +870,8 @@
|
|
|
|
|
|
|
|
|
|
<!-- 各科室缺陷占比-全院-首页 -->
|
|
<!-- 各科室缺陷占比-全院-首页 -->
|
|
- <select id="entryByDept" parameterType="com.diagbot.vo.FilterVO"
|
|
|
|
- resultType="com.diagbot.dto.NumDTO">
|
|
|
|
|
|
+ <select id="entryByDept" parameterType="com.lantone.data.vo.FilterVO"
|
|
|
|
+ resultType="com.lantone.data.dto.NumDTO">
|
|
SELECT
|
|
SELECT
|
|
a.beh_dept_id as id,
|
|
a.beh_dept_id as id,
|
|
a.beh_dept_name as name,
|
|
a.beh_dept_name as name,
|
|
@@ -919,7 +919,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 质控结果缺陷总数查询-->
|
|
<!-- 质控结果缺陷总数查询-->
|
|
- <select id="getTotleResultNum" parameterType="com.diagbot.vo.FilterVO" resultType="int">
|
|
|
|
|
|
+ <select id="getTotleResultNum" parameterType="com.lantone.data.vo.FilterVO" resultType="int">
|
|
SELECT
|
|
SELECT
|
|
count(*) AS totle
|
|
count(*) AS totle
|
|
FROM
|
|
FROM
|
|
@@ -1019,7 +1019,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!--质控评分(科室)分页-->
|
|
<!--质控评分(科室)分页-->
|
|
- <select id="getPageByDept" resultType="com.diagbot.dto.BehospitalInfoDTO">
|
|
|
|
|
|
+ <select id="getPageByDept" resultType="com.lantone.data.dto.BehospitalInfoDTO">
|
|
SELECT * from (
|
|
SELECT * from (
|
|
SELECT
|
|
SELECT
|
|
t.*,
|
|
t.*,
|
|
@@ -1140,7 +1140,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!--质控评分(个人)分页-->
|
|
<!--质控评分(个人)分页-->
|
|
- <select id="getPageByPerson" resultType="com.diagbot.dto.BehospitalInfoDTO">
|
|
|
|
|
|
+ <select id="getPageByPerson" resultType="com.lantone.data.dto.BehospitalInfoDTO">
|
|
Select * from (
|
|
Select * from (
|
|
select t.*,
|
|
select t.*,
|
|
CASE WHEN ISNULL(g.status) THEN 0 ELSE g.status END check_status,
|
|
CASE WHEN ISNULL(g.status) THEN 0 ELSE g.status END check_status,
|
|
@@ -1259,7 +1259,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!--质控评分(医疗组)分页-->
|
|
<!--质控评分(医疗组)分页-->
|
|
- <select id="getPageByGroup" resultType="com.diagbot.dto.BehospitalInfoDTO">
|
|
|
|
|
|
+ <select id="getPageByGroup" resultType="com.lantone.data.dto.BehospitalInfoDTO">
|
|
select * from (
|
|
select * from (
|
|
select t.*,
|
|
select t.*,
|
|
CASE WHEN ISNULL(g.status) THEN 0 ELSE g.status END check_status,
|
|
CASE WHEN ISNULL(g.status) THEN 0 ELSE g.status END check_status,
|
|
@@ -1373,7 +1373,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 出院总人数统计-全院-首页 -->
|
|
<!-- 出院总人数统计-全院-首页 -->
|
|
- <select id="leaveHosCount" parameterType="com.diagbot.vo.FilterVO" resultType="int">
|
|
|
|
|
|
+ <select id="leaveHosCount" parameterType="com.lantone.data.vo.FilterVO" resultType="int">
|
|
SELECT
|
|
SELECT
|
|
COUNT(*)
|
|
COUNT(*)
|
|
FROM
|
|
FROM
|
|
@@ -1405,7 +1405,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 新生儿出院人数统计-全院-首页 -->
|
|
<!-- 新生儿出院人数统计-全院-首页 -->
|
|
- <select id="newBornCount" parameterType="com.diagbot.vo.FilterVO" resultType="int">
|
|
|
|
|
|
+ <select id="newBornCount" parameterType="com.lantone.data.vo.FilterVO" resultType="int">
|
|
SELECT
|
|
SELECT
|
|
COUNT(*)
|
|
COUNT(*)
|
|
FROM
|
|
FROM
|
|
@@ -1446,7 +1446,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 死亡人数统计-全院-首页 -->
|
|
<!-- 死亡人数统计-全院-首页 -->
|
|
- <select id="deathCount" parameterType="com.diagbot.vo.FilterVO" resultType="int">
|
|
|
|
|
|
+ <select id="deathCount" parameterType="com.lantone.data.vo.FilterVO" resultType="int">
|
|
select COUNT(*) from(
|
|
select COUNT(*) from(
|
|
SELECT distinct a.*
|
|
SELECT distinct a.*
|
|
FROM
|
|
FROM
|
|
@@ -1488,7 +1488,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 手术人数统计-全院-首页 -->
|
|
<!-- 手术人数统计-全院-首页 -->
|
|
- <select id="operationCount" parameterType="com.diagbot.vo.FilterVO" resultType="int">
|
|
|
|
|
|
+ <select id="operationCount" parameterType="com.lantone.data.vo.FilterVO" resultType="int">
|
|
SELECT
|
|
SELECT
|
|
COUNT( DISTINCT a.behospital_code )
|
|
COUNT( DISTINCT a.behospital_code )
|
|
FROM
|
|
FROM
|
|
@@ -1529,8 +1529,8 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 入院人数统计-首页 -->
|
|
<!-- 入院人数统计-首页 -->
|
|
- <select id="beHosCount" parameterType="com.diagbot.vo.FilterVO"
|
|
|
|
- resultType="com.diagbot.dto.NumDTO">
|
|
|
|
|
|
+ <select id="beHosCount" parameterType="com.lantone.data.vo.FilterVO"
|
|
|
|
+ resultType="com.lantone.data.dto.NumDTO">
|
|
SELECT
|
|
SELECT
|
|
a.beh_dept_id AS id,
|
|
a.beh_dept_id AS id,
|
|
a.beh_dept_name AS NAME,
|
|
a.beh_dept_name AS NAME,
|
|
@@ -1567,8 +1567,8 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 出院总人数统计-科室-首页 -->
|
|
<!-- 出院总人数统计-科室-首页 -->
|
|
- <select id="leaveHosCountByDept" parameterType="com.diagbot.vo.FilterVO"
|
|
|
|
- resultType="com.diagbot.dto.NumDTO">
|
|
|
|
|
|
+ <select id="leaveHosCountByDept" parameterType="com.lantone.data.vo.FilterVO"
|
|
|
|
+ resultType="com.lantone.data.dto.NumDTO">
|
|
SELECT
|
|
SELECT
|
|
a.beh_dept_id AS id,
|
|
a.beh_dept_id AS id,
|
|
a.beh_dept_name AS NAME,
|
|
a.beh_dept_name AS NAME,
|
|
@@ -1612,8 +1612,8 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 入院总人数统计-科室-首页 -->
|
|
<!-- 入院总人数统计-科室-首页 -->
|
|
- <select id="admissionHosCountByDept" parameterType="com.diagbot.vo.FilterVO"
|
|
|
|
- resultType="com.diagbot.dto.AdmissionCountDTO">
|
|
|
|
|
|
+ <select id="admissionHosCountByDept" parameterType="com.lantone.data.vo.FilterVO"
|
|
|
|
+ resultType="com.lantone.data.dto.AdmissionCountDTO">
|
|
SELECT
|
|
SELECT
|
|
a.beh_dept_id as deptId,
|
|
a.beh_dept_id as deptId,
|
|
a.beh_dept_name as deptName,
|
|
a.beh_dept_name as deptName,
|
|
@@ -1661,8 +1661,8 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 新生儿出院人数统计-科室-首页 -->
|
|
<!-- 新生儿出院人数统计-科室-首页 -->
|
|
- <select id="newBornCountByDept" parameterType="com.diagbot.vo.FilterVO"
|
|
|
|
- resultType="com.diagbot.dto.NumDTO">
|
|
|
|
|
|
+ <select id="newBornCountByDept" parameterType="com.lantone.data.vo.FilterVO"
|
|
|
|
+ resultType="com.lantone.data.dto.NumDTO">
|
|
SELECT
|
|
SELECT
|
|
a.beh_dept_id AS id,
|
|
a.beh_dept_id AS id,
|
|
a.beh_dept_name AS NAME,
|
|
a.beh_dept_name AS NAME,
|
|
@@ -1715,8 +1715,8 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 死亡人数统计-科室-首页 -->
|
|
<!-- 死亡人数统计-科室-首页 -->
|
|
- <select id="deathCountByDept" parameterType="com.diagbot.vo.FilterVO"
|
|
|
|
- resultType="com.diagbot.dto.NumDTO">
|
|
|
|
|
|
+ <select id="deathCountByDept" parameterType="com.lantone.data.vo.FilterVO"
|
|
|
|
+ resultType="com.lantone.data.dto.NumDTO">
|
|
SELECT
|
|
SELECT
|
|
a.beh_dept_id AS id,
|
|
a.beh_dept_id AS id,
|
|
a.beh_dept_name AS NAME,
|
|
a.beh_dept_name AS NAME,
|
|
@@ -1770,8 +1770,8 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 手术人数统计-科室-首页 -->
|
|
<!-- 手术人数统计-科室-首页 -->
|
|
- <select id="operationCountByDept" parameterType="com.diagbot.vo.FilterVO"
|
|
|
|
- resultType="com.diagbot.dto.NumDTO">
|
|
|
|
|
|
+ <select id="operationCountByDept" parameterType="com.lantone.data.vo.FilterVO"
|
|
|
|
+ resultType="com.lantone.data.dto.NumDTO">
|
|
SELECT
|
|
SELECT
|
|
a.beh_dept_id AS id,
|
|
a.beh_dept_id AS id,
|
|
a.beh_dept_name AS NAME,
|
|
a.beh_dept_name AS NAME,
|
|
@@ -1824,7 +1824,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 各科室缺陷占比排行(分页) -->
|
|
<!-- 各科室缺陷占比排行(分页) -->
|
|
- <select id="resultStatisticsByDeptPage" resultType="com.diagbot.dto.NumDTO">
|
|
|
|
|
|
+ <select id="resultStatisticsByDeptPage" resultType="com.lantone.data.dto.NumDTO">
|
|
SELECT t.*
|
|
SELECT t.*
|
|
FROM
|
|
FROM
|
|
(SELECT
|
|
(SELECT
|
|
@@ -1929,7 +1929,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 科室缺陷占比(主任医生) -->
|
|
<!-- 科室缺陷占比(主任医生) -->
|
|
- <select id="resultStatisticsByDeptAndDoctorPage" resultType="com.diagbot.dto.DeptNumDTO">
|
|
|
|
|
|
+ <select id="resultStatisticsByDeptAndDoctorPage" resultType="com.lantone.data.dto.DeptNumDTO">
|
|
SELECT
|
|
SELECT
|
|
t.*
|
|
t.*
|
|
FROM
|
|
FROM
|
|
@@ -2058,8 +2058,8 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 各科室缺陷占比(组合)-全院 -->
|
|
<!-- 各科室缺陷占比(组合)-全院 -->
|
|
- <select id="levelStatistics" parameterType="com.diagbot.vo.FilterOrderVO"
|
|
|
|
- resultType="com.diagbot.dto.LevelStatisticsDTO">
|
|
|
|
|
|
+ <select id="levelStatistics" parameterType="com.lantone.data.vo.FilterOrderVO"
|
|
|
|
+ resultType="com.lantone.data.dto.LevelStatisticsDTO">
|
|
SELECT
|
|
SELECT
|
|
m1.deptId,
|
|
m1.deptId,
|
|
m1.deptName,
|
|
m1.deptName,
|
|
@@ -2425,8 +2425,8 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 各科室缺陷占比(组合)-全院-根据内外科系统统计-关联上级科室 -->
|
|
<!-- 各科室缺陷占比(组合)-全院-根据内外科系统统计-关联上级科室 -->
|
|
- <select id="levelStatisticsByDeptClass" parameterType="com.diagbot.vo.FilterOrderVO"
|
|
|
|
- resultType="com.diagbot.dto.LevelStatisticsTZDTO">
|
|
|
|
|
|
+ <select id="levelStatisticsByDeptClass" parameterType="com.lantone.data.vo.FilterOrderVO"
|
|
|
|
+ resultType="com.lantone.data.dto.LevelStatisticsTZDTO">
|
|
SELECT
|
|
SELECT
|
|
t1.deptId,
|
|
t1.deptId,
|
|
t1.deptName,
|
|
t1.deptName,
|
|
@@ -2656,7 +2656,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 各科室缺陷占比(组合)-全院-根据内外科系统统计(台州) -->
|
|
<!-- 各科室缺陷占比(组合)-全院-根据内外科系统统计(台州) -->
|
|
- <select id="levelStatisticsByDeptClass_TZ" parameterType="com.diagbot.vo.FilterOrderVO" resultType="com.diagbot.dto.LevelStatisticsTZDTO">
|
|
|
|
|
|
+ <select id="levelStatisticsByDeptClass_TZ" parameterType="com.lantone.data.vo.FilterOrderVO" resultType="com.lantone.data.dto.LevelStatisticsTZDTO">
|
|
select
|
|
select
|
|
m1.deptId,
|
|
m1.deptId,
|
|
m1.deptName,
|
|
m1.deptName,
|
|
@@ -3127,8 +3127,8 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 病案首页合格率占比 -全院-->
|
|
<!-- 病案首页合格率占比 -全院-->
|
|
- <select id="homePageLevelStatistics" parameterType="com.diagbot.vo.FilterOrderVO"
|
|
|
|
- resultType="com.diagbot.dto.HomePageNumDTO">
|
|
|
|
|
|
+ <select id="homePageLevelStatistics" parameterType="com.lantone.data.vo.FilterOrderVO"
|
|
|
|
+ resultType="com.lantone.data.dto.HomePageNumDTO">
|
|
SELECT
|
|
SELECT
|
|
t1.deptId,
|
|
t1.deptId,
|
|
t1.deptName,
|
|
t1.deptName,
|
|
@@ -3399,7 +3399,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 医师病案首页合格率占比 湘雅定制-->
|
|
<!-- 医师病案首页合格率占比 湘雅定制-->
|
|
- <select id="homePageLevelStatisticsXY" resultType="com.diagbot.dto.HomePageNumXYDTO">
|
|
|
|
|
|
+ <select id="homePageLevelStatisticsXY" resultType="com.lantone.data.dto.HomePageNumXYDTO">
|
|
SELECT
|
|
SELECT
|
|
tt1.*,
|
|
tt1.*,
|
|
tt2.entryNum,
|
|
tt2.entryNum,
|
|
@@ -3630,8 +3630,8 @@
|
|
|
|
|
|
|
|
|
|
<!-- 各科室缺陷占比-科室 -->
|
|
<!-- 各科室缺陷占比-科室 -->
|
|
- <select id="levelStatisticsByDept" parameterType="com.diagbot.vo.FilterOrderByDeptVO"
|
|
|
|
- resultType="com.diagbot.dto.LevelStsByDeptDTO">
|
|
|
|
|
|
+ <select id="levelStatisticsByDept" parameterType="com.lantone.data.vo.FilterOrderByDeptVO"
|
|
|
|
+ resultType="com.lantone.data.dto.LevelStsByDeptDTO">
|
|
SELECT
|
|
SELECT
|
|
m1.doctorId,
|
|
m1.doctorId,
|
|
m1.doctorName,
|
|
m1.doctorName,
|
|
@@ -4036,8 +4036,8 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 病案首页合格率占比-科室 -->
|
|
<!-- 病案首页合格率占比-科室 -->
|
|
- <select id="homePageLevelStatisticsByDept" parameterType="com.diagbot.vo.FilterOrderByDeptVO"
|
|
|
|
- resultType="com.diagbot.dto.HomePageByDeptDTO">
|
|
|
|
|
|
+ <select id="homePageLevelStatisticsByDept" parameterType="com.lantone.data.vo.FilterOrderByDeptVO"
|
|
|
|
+ resultType="com.lantone.data.dto.HomePageByDeptDTO">
|
|
SELECT
|
|
SELECT
|
|
t1.doctorId,
|
|
t1.doctorId,
|
|
t1.doctorName,
|
|
t1.doctorName,
|
|
@@ -4386,33 +4386,33 @@
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <resultMap id="ExportExcelMapByDept" type="com.diagbot.dto.ExportExcelByDeptDTO">
|
|
|
|
|
|
+ <resultMap id="ExportExcelMapByDept" type="com.lantone.data.dto.ExportExcelByDeptDTO">
|
|
<result column="behDeptName" property="behDeptName"/>
|
|
<result column="behDeptName" property="behDeptName"/>
|
|
<result column="doctorName" property="doctorName"/>
|
|
<result column="doctorName" property="doctorName"/>
|
|
<result column="avgScore" property="avgScore"/>
|
|
<result column="avgScore" property="avgScore"/>
|
|
<collection property="excelBehospitalDTOS"
|
|
<collection property="excelBehospitalDTOS"
|
|
- ofType="com.diagbot.dto.ExportExcelBehByDeptDTO">
|
|
|
|
|
|
+ ofType="com.lantone.data.dto.ExportExcelBehByDeptDTO">
|
|
<result column="patName" property="patName"/>
|
|
<result column="patName" property="patName"/>
|
|
<result column="behospitalCode" property="behospitalCode"/>
|
|
<result column="behospitalCode" property="behospitalCode"/>
|
|
<result column="behospitalDate" property="behospitalDate"/>
|
|
<result column="behospitalDate" property="behospitalDate"/>
|
|
<result column="leaveHospitalDate" property="leaveHospitalDate"/>
|
|
<result column="leaveHospitalDate" property="leaveHospitalDate"/>
|
|
<result column="score" property="score"/>
|
|
<result column="score" property="score"/>
|
|
<result column="scoreBn" property="scoreBn"/>
|
|
<result column="scoreBn" property="scoreBn"/>
|
|
- <collection property="exportExcelCaseDTOS" ofType="com.diagbot.dto.ExportExcelCaseDTO">
|
|
|
|
|
|
+ <collection property="exportExcelCaseDTOS" ofType="com.lantone.data.dto.ExportExcelCaseDTO">
|
|
<result column="caseName" property="caseName"/>
|
|
<result column="caseName" property="caseName"/>
|
|
<collection property="exportExcelMsgDTOS"
|
|
<collection property="exportExcelMsgDTOS"
|
|
- ofType="com.diagbot.dto.ExportExcelMsgDTO">
|
|
|
|
|
|
+ ofType="com.lantone.data.dto.ExportExcelMsgDTO">
|
|
<result column="msg" property="msg"/>
|
|
<result column="msg" property="msg"/>
|
|
</collection>
|
|
</collection>
|
|
</collection>
|
|
</collection>
|
|
</collection>
|
|
</collection>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
- <resultMap id="ExportExcelMap" type="com.diagbot.dto.ExportExcelDTO">
|
|
|
|
|
|
+ <resultMap id="ExportExcelMap" type="com.lantone.data.dto.ExportExcelDTO">
|
|
<result column="behDeptName" property="behDeptName"/>
|
|
<result column="behDeptName" property="behDeptName"/>
|
|
<result column="avgScore" property="avgScore"/>
|
|
<result column="avgScore" property="avgScore"/>
|
|
<collection property="excelBehospitalDTOS"
|
|
<collection property="excelBehospitalDTOS"
|
|
- ofType="com.diagbot.dto.ExportExcelBehospitalDTO">
|
|
|
|
|
|
+ ofType="com.lantone.data.dto.ExportExcelBehospitalDTO">
|
|
<result column="doctorName" property="doctorName"/>
|
|
<result column="doctorName" property="doctorName"/>
|
|
<result column="patName" property="patName"/>
|
|
<result column="patName" property="patName"/>
|
|
<result column="behospitalCode" property="behospitalCode"/>
|
|
<result column="behospitalCode" property="behospitalCode"/>
|
|
@@ -4420,10 +4420,10 @@
|
|
<result column="leaveHospitalDate" property="leaveHospitalDate"/>
|
|
<result column="leaveHospitalDate" property="leaveHospitalDate"/>
|
|
<result column="score" property="score"/>
|
|
<result column="score" property="score"/>
|
|
<result column="scoreBn" property="scoreBn"/>
|
|
<result column="scoreBn" property="scoreBn"/>
|
|
- <collection property="exportExcelCaseDTOS" ofType="com.diagbot.dto.ExportExcelCaseDTO">
|
|
|
|
|
|
+ <collection property="exportExcelCaseDTOS" ofType="com.lantone.data.dto.ExportExcelCaseDTO">
|
|
<result column="caseName" property="caseName"/>
|
|
<result column="caseName" property="caseName"/>
|
|
<collection property="exportExcelMsgDTOS"
|
|
<collection property="exportExcelMsgDTOS"
|
|
- ofType="com.diagbot.dto.ExportExcelMsgDTO">
|
|
|
|
|
|
+ ofType="com.lantone.data.dto.ExportExcelMsgDTO">
|
|
<result column="msg" property="msg"/>
|
|
<result column="msg" property="msg"/>
|
|
</collection>
|
|
</collection>
|
|
</collection>
|
|
</collection>
|
|
@@ -4469,7 +4469,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- 质控评分导出到excel-->
|
|
<!-- 质控评分导出到excel-->
|
|
- <select id="exportQcresult" resultMap="ExportExcelMap" parameterType="com.diagbot.vo.ExportQcresultVO">
|
|
|
|
|
|
+ <select id="exportQcresult" resultMap="ExportExcelMap" parameterType="com.lantone.data.vo.ExportQcresultVO">
|
|
SELECT * FROM (
|
|
SELECT * FROM (
|
|
SELECT tp.*,CASE WHEN ISNULL(g.status) THEN 0 ELSE g.status END check_status,
|
|
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,
|
|
CASE WHEN ISNULL(h.status) THEN 0 ELSE h.status END mr_status,
|
|
@@ -4692,7 +4692,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 科室质控评分导出到excel-->
|
|
<!-- 科室质控评分导出到excel-->
|
|
- <select id="exportQcresultByDept" resultMap="ExportExcelMap" parameterType="com.diagbot.vo.ExportQcresultVO">
|
|
|
|
|
|
+ <select id="exportQcresultByDept" resultMap="ExportExcelMap" parameterType="com.lantone.data.vo.ExportQcresultVO">
|
|
SELECT * FROM (
|
|
SELECT * FROM (
|
|
SELECT tp.*,CASE WHEN ISNULL(g.status) THEN 0 ELSE g.status END check_status,
|
|
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,
|
|
CASE WHEN ISNULL(h.status) THEN 0 ELSE h.status END mr_status,
|
|
@@ -4922,7 +4922,7 @@
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
<!-- 个人质控评分导出到excel-->
|
|
<!-- 个人质控评分导出到excel-->
|
|
- <select id="exportQcresultByPerson" resultMap="ExportExcelMap" parameterType="com.diagbot.vo.ExportQcresultVO">
|
|
|
|
|
|
+ <select id="exportQcresultByPerson" resultMap="ExportExcelMap" parameterType="com.lantone.data.vo.ExportQcresultVO">
|
|
SELECT * FROM (
|
|
SELECT * FROM (
|
|
SELECT tp.*,CASE WHEN ISNULL(g.status) THEN 0 ELSE g.status END check_status,
|
|
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,
|
|
CASE WHEN ISNULL(h.status) THEN 0 ELSE h.status END mr_status,
|
|
@@ -5161,7 +5161,7 @@
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
<!-- 医疗组质控评分导出到excel-->
|
|
<!-- 医疗组质控评分导出到excel-->
|
|
- <select id="exportQcresultByGroup" resultMap="ExportExcelMap" parameterType="com.diagbot.vo.ExportQcresultVO">
|
|
|
|
|
|
+ <select id="exportQcresultByGroup" resultMap="ExportExcelMap" parameterType="com.lantone.data.vo.ExportQcresultVO">
|
|
SELECT * FROM (
|
|
SELECT * FROM (
|
|
SELECT tp.*,CASE WHEN ISNULL(g.status) THEN 0 ELSE g.status END check_status,
|
|
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,
|
|
CASE WHEN ISNULL(h.status) THEN 0 ELSE h.status END mr_status,
|
|
@@ -5396,7 +5396,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 条目缺陷质控评分页(内页)湘雅-->
|
|
<!-- 条目缺陷质控评分页(内页)湘雅-->
|
|
- <select id="qcResultShortXYPage" resultType="com.diagbot.dto.QcResultShortDTO">
|
|
|
|
|
|
+ <select id="qcResultShortXYPage" resultType="com.lantone.data.dto.QcResultShortDTO">
|
|
SELECT t.*
|
|
SELECT t.*
|
|
FROM
|
|
FROM
|
|
(SELECT DISTINCT
|
|
(SELECT DISTINCT
|
|
@@ -5669,7 +5669,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 条目缺陷质控评分页(内页)-->
|
|
<!-- 条目缺陷质控评分页(内页)-->
|
|
- <select id="qcResultShortPage" resultType="com.diagbot.dto.QcResultShortDTO">
|
|
|
|
|
|
+ <select id="qcResultShortPage" resultType="com.lantone.data.dto.QcResultShortDTO">
|
|
SELECT t.*
|
|
SELECT t.*
|
|
FROM
|
|
FROM
|
|
(SELECT DISTINCT
|
|
(SELECT DISTINCT
|
|
@@ -5916,7 +5916,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 条目缺陷质控评分页-科室(内页)-->
|
|
<!-- 条目缺陷质控评分页-科室(内页)-->
|
|
- <select id="qcResultShortByDeptPage" resultType="com.diagbot.dto.QcResultShortDTO">
|
|
|
|
|
|
+ <select id="qcResultShortByDeptPage" resultType="com.lantone.data.dto.QcResultShortDTO">
|
|
SELECT t.*
|
|
SELECT t.*
|
|
FROM
|
|
FROM
|
|
(SELECT DISTINCT
|
|
(SELECT DISTINCT
|
|
@@ -6259,7 +6259,7 @@
|
|
</update>
|
|
</update>
|
|
|
|
|
|
<!-- 关键条目缺陷统计报表-->
|
|
<!-- 关键条目缺陷统计报表-->
|
|
- <select id="entryStatistics" parameterType="com.diagbot.vo.EntryStatisticsVO" resultType="com.diagbot.dto.EntryStatisticsDTO">
|
|
|
|
|
|
+ <select id="entryStatistics" parameterType="com.lantone.data.vo.EntryStatisticsVO" resultType="com.lantone.data.dto.EntryStatisticsDTO">
|
|
SELECT
|
|
SELECT
|
|
deptId,
|
|
deptId,
|
|
deptName,
|
|
deptName,
|
|
@@ -6721,7 +6721,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- 关键条目缺陷统计报表-科室-->
|
|
<!-- 关键条目缺陷统计报表-科室-->
|
|
- <select id="entryStatisticsByDept" parameterType="com.diagbot.vo.EntryStatisticsVO" resultType="com.diagbot.dto.EntryStasByDeptDTO">
|
|
|
|
|
|
+ <select id="entryStatisticsByDept" parameterType="com.lantone.data.vo.EntryStatisticsVO" resultType="com.lantone.data.dto.EntryStasByDeptDTO">
|
|
SELECT
|
|
SELECT
|
|
deptId,
|
|
deptId,
|
|
deptName,
|
|
deptName,
|
|
@@ -7256,7 +7256,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 非医嘱离院病人记录-->
|
|
<!-- 非医嘱离院病人记录-->
|
|
- <select id="nonAdviceCount" resultType="int" parameterType="com.diagbot.vo.FilterVO">
|
|
|
|
|
|
+ <select id="nonAdviceCount" resultType="int" parameterType="com.lantone.data.vo.FilterVO">
|
|
SELECT
|
|
SELECT
|
|
count(*)
|
|
count(*)
|
|
FROM
|
|
FROM
|
|
@@ -7294,7 +7294,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 31天内再入院记录-->
|
|
<!-- 31天内再入院记录-->
|
|
- <select id="get31DaysBehospitalCount" resultType="int" parameterType="com.diagbot.vo.FilterVO">
|
|
|
|
|
|
+ <select id="get31DaysBehospitalCount" resultType="int" parameterType="com.lantone.data.vo.FilterVO">
|
|
SELECT
|
|
SELECT
|
|
count(*)
|
|
count(*)
|
|
FROM
|
|
FROM
|
|
@@ -7503,7 +7503,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 病案首页质控病历数统计-全院(首页)-->
|
|
<!-- 病案首页质控病历数统计-全院(首页)-->
|
|
- <select id="homePageQcPercent" resultType="com.diagbot.dto.HomePageNumDTO" parameterType="com.diagbot.vo.FilterVO">
|
|
|
|
|
|
+ <select id="homePageQcPercent" resultType="com.lantone.data.dto.HomePageNumDTO" parameterType="com.lantone.data.vo.FilterVO">
|
|
SELECT
|
|
SELECT
|
|
count( * ) AS mrNum,
|
|
count( * ) AS mrNum,
|
|
ROUND( sum( CAST( c.score_res AS DECIMAL ( 18, 2 )) ), 2 ) AS totleValue,
|
|
ROUND( sum( CAST( c.score_res AS DECIMAL ( 18, 2 )) ), 2 ) AS totleValue,
|
|
@@ -7549,7 +7549,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 病案首页完整率统计-全院(首页)-->
|
|
<!-- 病案首页完整率统计-全院(首页)-->
|
|
- <select id="hmEmptyEntryPercent" parameterType="com.diagbot.vo.FilterVO" resultType="com.diagbot.dto.HomePageNumDTO">
|
|
|
|
|
|
+ <select id="hmEmptyEntryPercent" parameterType="com.lantone.data.vo.FilterVO" resultType="com.lantone.data.dto.HomePageNumDTO">
|
|
SELECT
|
|
SELECT
|
|
h1.emptyNum,
|
|
h1.emptyNum,
|
|
h1.mrNum,
|
|
h1.mrNum,
|
|
@@ -7632,7 +7632,7 @@
|
|
</foreach>
|
|
</foreach>
|
|
</select>
|
|
</select>
|
|
<!-- 离院病人评分详情页-->
|
|
<!-- 离院病人评分详情页-->
|
|
- <select id="leaveHosMRPage" resultType="com.diagbot.dto.QcResultShortDTO">
|
|
|
|
|
|
+ <select id="leaveHosMRPage" resultType="com.lantone.data.dto.QcResultShortDTO">
|
|
SELECT
|
|
SELECT
|
|
t.*
|
|
t.*
|
|
FROM
|
|
FROM
|
|
@@ -7868,7 +7868,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 离院病人评分详情页-科室-->
|
|
<!-- 离院病人评分详情页-科室-->
|
|
- <select id="leaveHosMRPageByDept" resultType="com.diagbot.dto.QcResultShortDTO">
|
|
|
|
|
|
+ <select id="leaveHosMRPageByDept" resultType="com.lantone.data.dto.QcResultShortDTO">
|
|
SELECT
|
|
SELECT
|
|
t.*
|
|
t.*
|
|
FROM
|
|
FROM
|
|
@@ -8111,7 +8111,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 病案首页改善率统计(首页)-->
|
|
<!-- 病案首页改善率统计(首页)-->
|
|
- <select id="homePageImproveCount" parameterType="com.diagbot.vo.FilterVO" resultType="com.diagbot.dto.HomePageImproveDTO">
|
|
|
|
|
|
+ <select id="homePageImproveCount" parameterType="com.lantone.data.vo.FilterVO" resultType="com.lantone.data.dto.HomePageImproveDTO">
|
|
SELECT
|
|
SELECT
|
|
t2.homePageMRNum,
|
|
t2.homePageMRNum,
|
|
t1.improveNum,
|
|
t1.improveNum,
|
|
@@ -8265,7 +8265,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 质控核查统计(内页)-->
|
|
<!-- 质控核查统计(内页)-->
|
|
- <select id="qcCheckStatistics" parameterType="com.diagbot.vo.FilterOrderVO" resultType="com.diagbot.dto.HomePageImproveDTO">
|
|
|
|
|
|
+ <select id="qcCheckStatistics" parameterType="com.lantone.data.vo.FilterOrderVO" resultType="com.lantone.data.dto.HomePageImproveDTO">
|
|
SELECT
|
|
SELECT
|
|
t.*
|
|
t.*
|
|
FROM
|
|
FROM
|
|
@@ -8583,7 +8583,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 质控核查统计-科室(内页)-->
|
|
<!-- 质控核查统计-科室(内页)-->
|
|
- <select id="qcCheckStatisticsByDept" parameterType="com.diagbot.vo.FilterOrderVO" resultType="com.diagbot.dto.ImproveByDeptDTO">
|
|
|
|
|
|
+ <select id="qcCheckStatisticsByDept" parameterType="com.lantone.data.vo.FilterOrderVO" resultType="com.lantone.data.dto.ImproveByDeptDTO">
|
|
SELECT
|
|
SELECT
|
|
t.*
|
|
t.*
|
|
FROM
|
|
FROM
|
|
@@ -11633,7 +11633,7 @@
|
|
)m
|
|
)m
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <resultMap id="MedicalCheckMap" type="com.diagbot.dto.MedicalCheckDTO">
|
|
|
|
|
|
+ <resultMap id="MedicalCheckMap" type="com.lantone.data.dto.MedicalCheckDTO">
|
|
<result column="deptName" property="deptName"/>
|
|
<result column="deptName" property="deptName"/>
|
|
<result column="deptId" property="deptId"/>
|
|
<result column="deptId" property="deptId"/>
|
|
<result column="doctorGroup" property="doctorGroup"/>
|
|
<result column="doctorGroup" property="doctorGroup"/>
|
|
@@ -11832,7 +11832,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 病历稽查表最新sql、id&&name-->
|
|
<!-- 病历稽查表最新sql、id&&name-->
|
|
- <select id="getMedicalEntryIds" resultType="com.diagbot.dto.MedicalCheckIdNameDTO">
|
|
|
|
|
|
+ <select id="getMedicalEntryIds" resultType="com.lantone.data.dto.MedicalCheckIdNameDTO">
|
|
SELECT
|
|
SELECT
|
|
d.id,
|
|
d.id,
|
|
d.name
|
|
d.name
|
|
@@ -11847,13 +11847,13 @@
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
- <resultMap id="MedicalCheckExcelMap" type="com.diagbot.dto.MedicalCheckExportDTO">
|
|
|
|
|
|
+ <resultMap id="MedicalCheckExcelMap" type="com.lantone.data.dto.MedicalCheckExportDTO">
|
|
<result column="deptName" property="deptName"/>
|
|
<result column="deptName" property="deptName"/>
|
|
<collection property="medicalDoctorExportDTOS" javaType="ArrayList"
|
|
<collection property="medicalDoctorExportDTOS" javaType="ArrayList"
|
|
- ofType="com.diagbot.dto.MedicalDoctorExportDTO">
|
|
|
|
|
|
+ ofType="com.lantone.data.dto.MedicalDoctorExportDTO">
|
|
<result column="doctorName" property="doctorName"/>
|
|
<result column="doctorName" property="doctorName"/>
|
|
<collection property="medicalCheckTitleDTOS" javaType="ArrayList"
|
|
<collection property="medicalCheckTitleDTOS" javaType="ArrayList"
|
|
- ofType="com.diagbot.dto.MedicalCheckTitleDTO">
|
|
|
|
|
|
+ ofType="com.lantone.data.dto.MedicalCheckTitleDTO">
|
|
<result column="RYJLW_24" property="ryjlw_24"/>
|
|
<result column="RYJLW_24" property="ryjlw_24"/>
|
|
<result column="SCBCJLW_8H" property="scbcjlw_8h"/>
|
|
<result column="SCBCJLW_8H" property="scbcjlw_8h"/>
|
|
<result column="ZRSCCFW_72H" property="zrsccfw_72h"/>
|
|
<result column="ZRSCCFW_72H" property="zrsccfw_72h"/>
|
|
@@ -11878,13 +11878,13 @@
|
|
</collection>
|
|
</collection>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
- <resultMap id="MedicalCheckByDeptMap" type="com.diagbot.dto.MedicalDeptDTO">
|
|
|
|
|
|
+ <resultMap id="MedicalCheckByDeptMap" type="com.lantone.data.dto.MedicalDeptDTO">
|
|
<result column="deptName" property="deptName"/>
|
|
<result column="deptName" property="deptName"/>
|
|
<collection property="medicalDoctorExportDTOS" javaType="ArrayList"
|
|
<collection property="medicalDoctorExportDTOS" javaType="ArrayList"
|
|
- ofType="com.diagbot.dto.MedicalDoDeptDTO">
|
|
|
|
|
|
+ ofType="com.lantone.data.dto.MedicalDoDeptDTO">
|
|
<result column="doctorGroup" property="doctorGroup"/>
|
|
<result column="doctorGroup" property="doctorGroup"/>
|
|
<collection property="medicalCheckTitleDTOS" javaType="ArrayList"
|
|
<collection property="medicalCheckTitleDTOS" javaType="ArrayList"
|
|
- ofType="com.diagbot.dto.MedicalSeeByDeptDTO">
|
|
|
|
|
|
+ ofType="com.lantone.data.dto.MedicalSeeByDeptDTO">
|
|
<result column="doctorName" property="doctorName"/>
|
|
<result column="doctorName" property="doctorName"/>
|
|
<result column="RYJLW_24" property="ryjlw_24"/>
|
|
<result column="RYJLW_24" property="ryjlw_24"/>
|
|
<result column="SCBCJLW_8H" property="scbcjlw_8h"/>
|
|
<result column="SCBCJLW_8H" property="scbcjlw_8h"/>
|
|
@@ -12100,7 +12100,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 未整改病历统计-->
|
|
<!-- 未整改病历统计-->
|
|
- <select id="unModifyMRStatistics" resultType="com.diagbot.dto.UnModifyMRDetailDTO" parameterType="com.diagbot.vo.FilterUnModifyMRVO">
|
|
|
|
|
|
+ <select id="unModifyMRStatistics" resultType="com.lantone.data.dto.UnModifyMRDetailDTO" parameterType="com.lantone.data.vo.FilterUnModifyMRVO">
|
|
SELECT
|
|
SELECT
|
|
a.beh_dept_id AS deptId,
|
|
a.beh_dept_id AS deptId,
|
|
a.beh_dept_name AS deptName,
|
|
a.beh_dept_name AS deptName,
|
|
@@ -12162,7 +12162,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 未整改病历统计-科室-->
|
|
<!-- 未整改病历统计-科室-->
|
|
- <select id="unModifyMRSByDept" resultType="com.diagbot.dto.UnModifyMRDetailDTO" parameterType="com.diagbot.vo.FilterUnModifyMRVO">
|
|
|
|
|
|
+ <select id="unModifyMRSByDept" resultType="com.lantone.data.dto.UnModifyMRDetailDTO" parameterType="com.lantone.data.vo.FilterUnModifyMRVO">
|
|
SELECT
|
|
SELECT
|
|
a.beh_dept_id AS deptId,
|
|
a.beh_dept_id AS deptId,
|
|
a.beh_dept_name AS deptName,
|
|
a.beh_dept_name AS deptName,
|
|
@@ -12237,7 +12237,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- 不合格/合格数病历号(内页)科室-->
|
|
<!-- 不合格/合格数病历号(内页)科室-->
|
|
- <select id="getIsGoodLevelByDept" resultType="com.diagbot.dto.QcResultShortDTO">
|
|
|
|
|
|
+ <select id="getIsGoodLevelByDept" resultType="com.lantone.data.dto.QcResultShortDTO">
|
|
SELECT t.*
|
|
SELECT t.*
|
|
FROM
|
|
FROM
|
|
(SELECT DISTINCT
|
|
(SELECT DISTINCT
|
|
@@ -12435,7 +12435,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 不合格/合格数病历号(内页)全院-->
|
|
<!-- 不合格/合格数病历号(内页)全院-->
|
|
- <select id="badLevelPage" resultType="com.diagbot.dto.QcResultShortDTO">
|
|
|
|
|
|
+ <select id="badLevelPage" resultType="com.lantone.data.dto.QcResultShortDTO">
|
|
SELECT t.*
|
|
SELECT t.*
|
|
FROM
|
|
FROM
|
|
(SELECT DISTINCT
|
|
(SELECT DISTINCT
|
|
@@ -12627,7 +12627,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 不合格/合格数病历号XY(内页)全院-->
|
|
<!-- 不合格/合格数病历号XY(内页)全院-->
|
|
- <select id="badLevelXYPage" resultType="com.diagbot.dto.QcResultShortDTO">
|
|
|
|
|
|
+ <select id="badLevelXYPage" resultType="com.lantone.data.dto.QcResultShortDTO">
|
|
SELECT t.*
|
|
SELECT t.*
|
|
FROM
|
|
FROM
|
|
(SELECT DISTINCT
|
|
(SELECT DISTINCT
|
|
@@ -12843,7 +12843,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- 未整改病历质控评分页(内页)-->
|
|
<!-- 未整改病历质控评分页(内页)-->
|
|
- <select id="unModifyMRPage" resultType="com.diagbot.dto.QcResultShortDTO">
|
|
|
|
|
|
+ <select id="unModifyMRPage" resultType="com.lantone.data.dto.QcResultShortDTO">
|
|
SELECT t.*
|
|
SELECT t.*
|
|
FROM
|
|
FROM
|
|
(SELECT DISTINCT
|
|
(SELECT DISTINCT
|
|
@@ -13042,7 +13042,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 未整改病历质控评分页-科室(内页)-->
|
|
<!-- 未整改病历质控评分页-科室(内页)-->
|
|
- <select id="unModifyMRByDept" resultType="com.diagbot.dto.QcResultShortDTO">
|
|
|
|
|
|
+ <select id="unModifyMRByDept" resultType="com.lantone.data.dto.QcResultShortDTO">
|
|
SELECT t.*
|
|
SELECT t.*
|
|
FROM
|
|
FROM
|
|
(SELECT DISTINCT
|
|
(SELECT DISTINCT
|
|
@@ -15590,7 +15590,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- 31天再入院详情页-->
|
|
<!-- 31天再入院详情页-->
|
|
- <select id="reHos31DaysPage" resultType="com.diagbot.dto.ReBeHosMergeDTO">
|
|
|
|
|
|
+ <select id="reHos31DaysPage" resultType="com.lantone.data.dto.ReBeHosMergeDTO">
|
|
SELECT
|
|
SELECT
|
|
t.fileCode,
|
|
t.fileCode,
|
|
t.diagnose,
|
|
t.diagnose,
|
|
@@ -15950,7 +15950,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 31天再入院详情页-科室-->
|
|
<!-- 31天再入院详情页-科室-->
|
|
- <select id="reHos31DaysPageByDept" resultType="com.diagbot.dto.ReBeHosMergeDTO">
|
|
|
|
|
|
+ <select id="reHos31DaysPageByDept" resultType="com.lantone.data.dto.ReBeHosMergeDTO">
|
|
SELECT
|
|
SELECT
|
|
t.fileCode,
|
|
t.fileCode,
|
|
t.diagnose,
|
|
t.diagnose,
|
|
@@ -16353,7 +16353,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 单条条目缺陷统计-->
|
|
<!-- 单条条目缺陷统计-->
|
|
- <select id="casesEntryStatisticsById" parameterType="com.diagbot.vo.FilterVO" resultType="com.diagbot.dto.NumDTO">
|
|
|
|
|
|
+ <select id="casesEntryStatisticsById" parameterType="com.lantone.data.vo.FilterVO" resultType="com.lantone.data.dto.NumDTO">
|
|
SELECT
|
|
SELECT
|
|
a.beh_dept_id AS id,
|
|
a.beh_dept_id AS id,
|
|
a.beh_dept_name AS NAME,
|
|
a.beh_dept_name AS NAME,
|
|
@@ -16396,7 +16396,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 单条条目缺陷统计-->
|
|
<!-- 单条条目缺陷统计-->
|
|
- <select id="casesEntryStatisticsByDept" parameterType="com.diagbot.vo.FilterVO" resultType="com.diagbot.dto.AdmissionCountDTO">
|
|
|
|
|
|
+ <select id="casesEntryStatisticsByDept" parameterType="com.lantone.data.vo.FilterVO" resultType="com.lantone.data.dto.AdmissionCountDTO">
|
|
SELECT
|
|
SELECT
|
|
a.beh_dept_id AS deptId,
|
|
a.beh_dept_id AS deptId,
|
|
a.beh_dept_name AS deptName,
|
|
a.beh_dept_name AS deptName,
|
|
@@ -16450,7 +16450,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 病案首页改善率质控评分页(内页)-->
|
|
<!-- 病案首页改善率质控评分页(内页)-->
|
|
- <select id="hmImproveMRPage" resultType="com.diagbot.dto.QcResultShortDTO">
|
|
|
|
|
|
+ <select id="hmImproveMRPage" resultType="com.lantone.data.dto.QcResultShortDTO">
|
|
SELECT
|
|
SELECT
|
|
t.*
|
|
t.*
|
|
FROM
|
|
FROM
|
|
@@ -16684,7 +16684,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 病案首页改善率质控评分页(内页)-科室-->
|
|
<!-- 病案首页改善率质控评分页(内页)-科室-->
|
|
- <select id="hmImproveMRPageByDept" resultType="com.diagbot.dto.QcResultShortDTO">
|
|
|
|
|
|
+ <select id="hmImproveMRPageByDept" resultType="com.lantone.data.dto.QcResultShortDTO">
|
|
SELECT
|
|
SELECT
|
|
t.*
|
|
t.*
|
|
FROM
|
|
FROM
|
|
@@ -16941,7 +16941,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- 质控核查质控评分页(内页)-->
|
|
<!-- 质控核查质控评分页(内页)-->
|
|
- <select id="qcCheckMRPage" resultType="com.diagbot.dto.QcResultShortDTO">
|
|
|
|
|
|
+ <select id="qcCheckMRPage" resultType="com.lantone.data.dto.QcResultShortDTO">
|
|
SELECT
|
|
SELECT
|
|
t.*
|
|
t.*
|
|
FROM
|
|
FROM
|
|
@@ -17111,7 +17111,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 质控核查质控评分页-科室(内页)-->
|
|
<!-- 质控核查质控评分页-科室(内页)-->
|
|
- <select id="qcCheckMRPageByDept" resultType="com.diagbot.dto.QcResultShortDTO">
|
|
|
|
|
|
+ <select id="qcCheckMRPageByDept" resultType="com.lantone.data.dto.QcResultShortDTO">
|
|
SELECT
|
|
SELECT
|
|
t.*
|
|
t.*
|
|
FROM
|
|
FROM
|
|
@@ -19201,7 +19201,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 入院,手术,出院病案情况-->
|
|
<!-- 入院,手术,出院病案情况-->
|
|
- <select id="medicalRecordIndicator" parameterType="com.diagbot.vo.FilterVO" resultType="java.util.Map">
|
|
|
|
|
|
+ <select id="medicalRecordIndicator" parameterType="com.lantone.data.vo.FilterVO" resultType="java.util.Map">
|
|
SELECT
|
|
SELECT
|
|
count(
|
|
count(
|
|
DISTINCT
|
|
DISTINCT
|
|
@@ -19285,7 +19285,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 时间段出院,住院, 手术费,抗菌药物,手术和病理费等含有人数 -->
|
|
<!-- 时间段出院,住院, 手术费,抗菌药物,手术和病理费等含有人数 -->
|
|
- <select id="selectOperationNum" parameterType="com.diagbot.vo.FilterVO" resultType="java.util.Map">
|
|
|
|
|
|
+ <select id="selectOperationNum" parameterType="com.lantone.data.vo.FilterVO" resultType="java.util.Map">
|
|
select
|
|
select
|
|
d.behospital_code behospitalCode,
|
|
d.behospital_code behospitalCode,
|
|
b.operation_fee operationFee,
|
|
b.operation_fee operationFee,
|
|
@@ -19319,7 +19319,7 @@
|
|
AND b.is_deleted = 'N'
|
|
AND b.is_deleted = 'N'
|
|
</select>
|
|
</select>
|
|
<!-- 关于触发规则不符合人数-->
|
|
<!-- 关于触发规则不符合人数-->
|
|
- <select id="triggeringRules" parameterType="com.diagbot.vo.FilterVO" resultType="java.util.Map">
|
|
|
|
|
|
+ <select id="triggeringRules" parameterType="com.lantone.data.vo.FilterVO" resultType="java.util.Map">
|
|
SELECT
|
|
SELECT
|
|
count(
|
|
count(
|
|
DISTINCT
|
|
DISTINCT
|
|
@@ -19538,7 +19538,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 跟病案首页关联的出院病历-->
|
|
<!-- 跟病案首页关联的出院病历-->
|
|
- <select id="getMedicalRecords" parameterType="com.diagbot.vo.FilterVO" resultType="java.util.Map">
|
|
|
|
|
|
+ <select id="getMedicalRecords" parameterType="com.lantone.data.vo.FilterVO" resultType="java.util.Map">
|
|
SELECT
|
|
SELECT
|
|
d.behospital_code,
|
|
d.behospital_code,
|
|
d.behospital_date,
|
|
d.behospital_date,
|
|
@@ -19577,7 +19577,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 首页恶性肿瘤-->
|
|
<!-- 首页恶性肿瘤-->
|
|
- <select id="malignancy" parameterType="com.diagbot.vo.FilterVO" resultType="java.util.Map">
|
|
|
|
|
|
+ <select id="malignancy" parameterType="com.lantone.data.vo.FilterVO" resultType="java.util.Map">
|
|
select
|
|
select
|
|
a.behospital_code,
|
|
a.behospital_code,
|
|
a.hospital_id,
|
|
a.hospital_id,
|
|
@@ -19624,7 +19624,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 获取患者年龄信息(通过出生日期和入院日期重新计算) -->
|
|
<!-- 获取患者年龄信息(通过出生日期和入院日期重新计算) -->
|
|
- <select id="getBehospitalInfoAge" resultType="com.diagbot.dto.BehospitalInfoAgeDTO">
|
|
|
|
|
|
+ <select id="getBehospitalInfoAge" resultType="com.lantone.data.dto.BehospitalInfoAgeDTO">
|
|
SELECT
|
|
SELECT
|
|
mbi.behospital_code behospitalCode,
|
|
mbi.behospital_code behospitalCode,
|
|
mhp.age,
|
|
mhp.age,
|