|
|
@@ -111,7 +111,7 @@
|
|
|
<select id="selectPHRLatestCount" parameterType="PatientPHRLatestDTO" resultType="int">
|
|
|
<![CDATA[
|
|
|
SELECT count(*) AS total
|
|
|
- FROM patient_phr_latest p INNER JOIN patient_care c ON p.patient_idx = c.patient_idx
|
|
|
+ FROM patient_care c LEFT JOIN patient_phr_latest p ON p.patient_idx = c.patient_idx
|
|
|
WHERE c.center_code = #{centerCode}
|
|
|
]]>
|
|
|
</select>
|
|
|
@@ -119,7 +119,7 @@
|
|
|
<![CDATA[
|
|
|
SELECT c.patient_name AS patientName,
|
|
|
c.ward_number AS wardNumber,
|
|
|
- c_room_number AS roomNumber,
|
|
|
+ c.room_number AS roomNumber,
|
|
|
p.temperature AS temperature,
|
|
|
p.temperature_create_date AS temperatureCreateDate,
|
|
|
p.oxygen_saturation AS oxygenSaturation,
|
|
|
@@ -132,7 +132,7 @@
|
|
|
p.diastolic_blood_pressure_create_date AS diastolicBloodPressureCreateDate,
|
|
|
p.blood_sugar AS bloodSugar,
|
|
|
p.blood_sugar_create_date AS bloodSugarCreateDate
|
|
|
- FROM patient_phr_latest p INNER JOIN patient_care c ON p.patient_idx = c.patient_idx
|
|
|
+ FROM patient_care c LEFT JOIN patient_phr_latest p ON p.patient_idx = c.patient_idx
|
|
|
WHERE c.center_code = #{centerCode}
|
|
|
ORDER BY c.room_number ASC
|
|
|
LIMIT #{limit}, #{limitMax}
|