diff --git a/openhis-server-new/openhis-application/src/main/resources/mapper/VitalSignMapper.xml b/openhis-server-new/openhis-application/src/main/resources/mapper/VitalSignMapper.xml index 64c5b2403..884a663c4 100644 --- a/openhis-server-new/openhis-application/src/main/resources/mapper/VitalSignMapper.xml +++ b/openhis-server-new/openhis-application/src/main/resources/mapper/VitalSignMapper.xml @@ -2,28 +2,27 @@ - - - - - - - - - - - - - + SELECT + vs.record_time AS recordTime, + vs.temperature, + vs.pulse, + vs.heart_rate AS heartRate + FROM hisdev.vital_sign_record vs + WHERE vs.patient_id = #{patientId} + AND vs.record_time BETWEEN #{startDate} AND #{endDate} + AND vs.is_deleted = 0 + ORDER BY vs.record_time ASC - - INSERT INTO hisdev.vital_sign_record (patient_id, record_date, record_time, temperature, pulse, heart_rate, status, create_time) - VALUES (#{patientId}, #{recordDate}, #{recordTime}, #{temperature}, #{pulse}, #{heartRate}, 'ACTIVE', NOW()) + + INSERT INTO hisdev.vital_sign_record ( + patient_id, record_time, temperature, pulse, heart_rate, + create_by, create_time, is_deleted + ) VALUES ( + #{patientId}, #{recordTime}, #{temperature}, #{pulse}, #{heartRate}, + #{createBy}, NOW(), 0 + ) diff --git a/openhis-ui-vue3/src/views/inpatient/TemperatureChart.vue b/openhis-ui-vue3/src/views/inpatient/TemperatureChart.vue new file mode 100644 index 000000000..fef2c9a79 --- /dev/null +++ b/openhis-ui-vue3/src/views/inpatient/TemperatureChart.vue @@ -0,0 +1,160 @@ + + + + +