|
|
@@ -438,6 +438,70 @@
|
|
|
order by e.evaluate_time desc
|
|
|
</select>
|
|
|
|
|
|
+ <select id="listStatsEval" resultMap="combineEvalResult">
|
|
|
+ select
|
|
|
+ i.id as infusion_id,
|
|
|
+ i.last_upload_time as last_upload_time,
|
|
|
+ i.start_time as infusion_start_time,
|
|
|
+ c.patient_code as patient_code,
|
|
|
+ c.ward as ward,
|
|
|
+ c.bed_no as bed_no,
|
|
|
+ c.surgery_name as surgery_name,
|
|
|
+ c.asa as asa,
|
|
|
+ c.patient_gender as patient_gender,
|
|
|
+ c.`patient_name` as patient_name,
|
|
|
+ c.`patient_age` as patient_age,
|
|
|
+ c.weight as weight,
|
|
|
+ c.`height` as height,
|
|
|
+ c.ana_doctor as ana_doctor,
|
|
|
+ c.ana_type as ana_type,
|
|
|
+ c.anal_type as anal_type,
|
|
|
+ c.surgery_doctor as surgery_doctor,
|
|
|
+ c.formula as formula,
|
|
|
+ c.entrust as entrust,
|
|
|
+ e.evaluate_time as evaluate_time,
|
|
|
+ e.statics as statics,
|
|
|
+ e.activity as activity,
|
|
|
+ e.calm as calm,
|
|
|
+ e.left_arm as left_arm,
|
|
|
+ e.left_leg as left_leg,
|
|
|
+ e.right_arm as right_arm,
|
|
|
+ e.right_leg as right_leg,
|
|
|
+ e.nausea_vomit as nausea_vomit,
|
|
|
+ e.itch as itch,
|
|
|
+ e.vertigo as vertigo,
|
|
|
+ e.sore_throat as sore_throat,
|
|
|
+ e.uroschesis as uroschesis,
|
|
|
+ e.breath_depression as breath_depression,
|
|
|
+ e.hoarseness as hoarseness,
|
|
|
+ e.cognition_obstacle as cognition_obstacle,
|
|
|
+ e.satisfaction as satisfaction,
|
|
|
+ e.shrink_pressure as shrink_pressure,
|
|
|
+ e.diastens_pressure as diastens_pressure,
|
|
|
+ e.heart_rate as heart_rate,
|
|
|
+ e.fetal_heart_rate as fetal_heart_rate,
|
|
|
+ e.breath_rate as breath_rate,
|
|
|
+ e.blood_oxygen_saturation as blood_oxygen_saturation,
|
|
|
+ e.id as eval_id,
|
|
|
+ e.evaluator as evaluator
|
|
|
+ from (
|
|
|
+ <include refid="commonInfusionQuery"/>
|
|
|
+ ) as i
|
|
|
+ JOIN (
|
|
|
+ <include refid="commonClinicQuery"/>
|
|
|
+ ) as c
|
|
|
+ on i.clinic_id=c.id
|
|
|
+ join (select * from bus_evaluation) as e
|
|
|
+ on e.infusion_id=i.id
|
|
|
+ <if test="query.warns != null or query.deviceAlarm != null">
|
|
|
+ JOIN (
|
|
|
+ <include refid="commonDeviceAlarmQuery"/>
|
|
|
+ ) as a
|
|
|
+ on a.infusion_id = i.id
|
|
|
+ </if>
|
|
|
+ order by e.evaluate_time desc
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="queryStatsHistory" resultMap="queryStatsHistory">
|
|
|
SELECT i.id AS infusion_id,
|
|
|
c.id as clinic_id,
|