|
@@ -4537,7 +4537,7 @@
|
|
</if>
|
|
</if>
|
|
t1.behospitalCode
|
|
t1.behospitalCode
|
|
)tp
|
|
)tp
|
|
- LEFT JOIN (SELECT * FROM med_check_info WHERE is_deleted = 'N' AND check_type = 0 ) g
|
|
|
|
|
|
+ LEFT JOIN (SELECT * FROM med_check_info WHERE is_deleted = 'N' AND check_type in(0,2) ) g
|
|
ON tp.behospitalCode = g.behospital_code
|
|
ON tp.behospitalCode = g.behospital_code
|
|
AND tp.hospitalId = g.hospital_id
|
|
AND tp.hospitalId = g.hospital_id
|
|
LEFT JOIN (SELECT * FROM med_check_info WHERE is_deleted = 'N'AND check_type = 1 ) h
|
|
LEFT JOIN (SELECT * FROM med_check_info WHERE is_deleted = 'N'AND check_type = 1 ) h
|