|
@@ -14518,6 +14518,7 @@
|
|
|
t1.grade_type AS gradeType,
|
|
|
t1.score_res AS scoreRes,
|
|
|
t1.NAME AS NAME,
|
|
|
+ t1.scoreBn,
|
|
|
t1.sex AS sex,
|
|
|
t1.beh_dept_id AS behDeptId,
|
|
|
t1.beh_dept_name AS behDeptName,
|
|
@@ -14550,6 +14551,7 @@
|
|
|
ifnull( hm_mci.STATUS, 0 ) AS mrStatus,
|
|
|
mci.check_name AS chName,
|
|
|
hm_mci.check_name AS mrName,
|
|
|
+ e.score_res as scoreBn,
|
|
|
mci.gmt_create AS chTime,
|
|
|
hm_mci.gmt_create AS mrTime
|
|
|
FROM
|
|
@@ -14720,6 +14722,11 @@
|
|
|
AND hm_mci.check_type = 1
|
|
|
AND be.hospital_id = hm_mci.hospital_id
|
|
|
AND be.behospital_code = hm_mci.behospital_code
|
|
|
+ LEFT JOIN med_qcresult_cases e
|
|
|
+ on be.behospital_code = e.behospital_code
|
|
|
+ and be.hospital_id = e.hospital_id
|
|
|
+ AND e.is_deleted = 'N'
|
|
|
+ and e.cases_id = 243
|
|
|
) t1
|
|
|
LEFT JOIN med_home_page t2 ON t1.hospital_id = t2.hospital_id
|
|
|
AND t1.behospital_code = t2.behospital_code
|
|
@@ -15672,6 +15679,7 @@
|
|
|
f1.patName,
|
|
|
f1.behospitalCode,
|
|
|
f1.hospitalId,
|
|
|
+ f1.scoreBn,
|
|
|
f1.behospitalDate,
|
|
|
f1.leaveHospitalDate,
|
|
|
f1.score,
|
|
@@ -15734,7 +15742,7 @@
|
|
|
t1.gmt_create AS gradeTime,
|
|
|
t1.diagnose,
|
|
|
t1.ward_name AS wardName,
|
|
|
- t2.age,
|
|
|
+ t1.scoreBn,
|
|
|
t1.file_code AS fileCode,
|
|
|
t1.checkStatus,
|
|
|
t1.mrStatus,
|
|
@@ -15749,6 +15757,7 @@
|
|
|
ifnull( mci.STATUS, 0 ) AS checkStatus,
|
|
|
ifnull( hm_mci.STATUS, 0 ) AS mrStatus,
|
|
|
mci.check_name AS chName,
|
|
|
+ e.score_res as scoreBn,
|
|
|
hm_mci.check_name AS mrName,
|
|
|
mci.gmt_create AS chTime,
|
|
|
hm_mci.gmt_create AS mrTime
|
|
@@ -15920,6 +15929,11 @@
|
|
|
AND hm_mci.check_type = 1
|
|
|
AND be.hospital_id = hm_mci.hospital_id
|
|
|
AND be.behospital_code = hm_mci.behospital_code
|
|
|
+ LEFT JOIN med_qcresult_cases e
|
|
|
+ on be.behospital_code = e.behospital_code
|
|
|
+ and be.hospital_id = e.hospital_id
|
|
|
+ AND e.is_deleted = 'N'
|
|
|
+ and e.cases_id = 243
|
|
|
) t1
|
|
|
LEFT JOIN med_home_page t2 ON t1.hospital_id = t2.hospital_id
|
|
|
AND t1.behospital_code = t2.behospital_code
|
|
@@ -16641,7 +16655,7 @@
|
|
|
SELECT
|
|
|
f1.behDeptId,
|
|
|
f1.behDeptName,
|
|
|
- f1.doctorName AS behDoctorName,
|
|
|
+ f1.doctorName,
|
|
|
f1.doctorId,
|
|
|
f1.patName,
|
|
|
f1.behospitalCode,
|