|
@@ -79,15 +79,15 @@
|
|
|
<![CDATA[
|
|
|
INSERT
|
|
|
INTO patient_care
|
|
|
- ( patient_name, gender, ward_number, room_number, final_clinic_date, hospitalization_date, state,
|
|
|
- center_code, jumin, patient_phone, guardian_phone, symptom_start_date, confirmation_date, disisolation_date,
|
|
|
- basal_disease_yn, drug_yn, drug_content, pregnancy_status, pregnancy_week, id, pw,
|
|
|
- create_date, create_by, update_by)
|
|
|
+ ( patient_name, gender, ward_number, room_number, hospitalization_date, state,
|
|
|
+ center_code, jumin, patient_phone, guardian_phone, symptom_start_date, confirmation_date, disisolation_date,
|
|
|
+ basal_disease_yn, drug_yn, drug_content, pregnancy_status, pregnancy_week, id, pw,
|
|
|
+ create_date, create_by, update_by )
|
|
|
|
|
|
- VALUES ( #{patientName}, #{gender}, #{wardNumber}, #{roomNumber}, NOW(), NOW(), #{state},
|
|
|
- #{centerCode}, #{jumin}, #{patientPhone}, #{guardianPhone}, #{symptomStartDate}, #{confirmationDate}, #{disisolationDate},
|
|
|
- #{basalDiseaseYn}, #{drugYn}, #{drugContent}, #{pregnancyStatus}, #{pregnancyWeek}, #{id}, #{pw},
|
|
|
- NOW(), #{createBy}, '')
|
|
|
+ VALUES ( #{patientName}, #{gender}, #{wardNumber}, #{roomNumber}, ${hospitalizationDate}, #{state},
|
|
|
+ #{centerCode}, #{jumin}, #{patientPhone}, #{guardianPhone}, #{symptomStartDate}, #{confirmationDate}, #{disisolationDate},
|
|
|
+ #{basalDiseaseYn}, #{drugYn}, #{drugContent}, #{pregnancyStatus}, #{pregnancyWeek}, #{id}, #{pw},
|
|
|
+ NOW(), #{createBy}, '' )
|
|
|
]]>
|
|
|
</insert>
|
|
|
|
|
@@ -211,4 +211,93 @@
|
|
|
AND PC.PATIENT_IDX = #{patientIdx}
|
|
|
]]>
|
|
|
</select>
|
|
|
+
|
|
|
+ <update id="updatePatientCare" parameterType="PatientDTO" useGeneratedKeys="true">
|
|
|
+ <![CDATA[
|
|
|
+ UPDATE patient_care
|
|
|
+ SET patient_name = ${patientName},
|
|
|
+ gender = ${gender},
|
|
|
+ ward_number = ${wardNumber},
|
|
|
+ room_number = ${roomNumber},
|
|
|
+ hospitalization_date = ${hospitalizationDate},
|
|
|
+ state = ${state},
|
|
|
+ center_code = ${centerCode},
|
|
|
+ jumin = ${jumin},
|
|
|
+ patient_phone = ${patientPhone},
|
|
|
+ guardian_phone = ${guardianPhone},
|
|
|
+ symptom_start_date = ${symptomStartDate},
|
|
|
+ confirmation_date = ${confirmationDate},
|
|
|
+ disisolation_date = ${disisolationDate},
|
|
|
+ basal_disease_yn = ${basalDiseaseYn},
|
|
|
+ drug_yn = ${drugYn},
|
|
|
+ drug_content = ${drugContent},
|
|
|
+ pregnancy_status = ${pregnancyStatus},
|
|
|
+ pregnancy_week = ${pregnancyWeek},
|
|
|
+ id = ${id},
|
|
|
+ pw = ${pw},
|
|
|
+ update_date = NOW(),
|
|
|
+ update_by = ${updateBy}
|
|
|
+ WHERE patient_idx = ${patientIdx}
|
|
|
+ ]]>
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <update id="updatePatientDisease" parameterType="PatientDTO" useGeneratedKeys="true">
|
|
|
+ <![CDATA[
|
|
|
+ UPDATE patient_disease
|
|
|
+ SET high_blood_pressure_check = #{highBloodPressureCheck},
|
|
|
+ low_blood_pressure_check = #{lowBloodPressureCheck},
|
|
|
+ organ_transplant_check = #{organTransplantCheck},
|
|
|
+ diabetes_check = , #{diabetesCheck},
|
|
|
+ respiratory_disease_check = #{respiratoryDiseaseCheck},
|
|
|
+ immunological_disease_check = #{immunologicalDiseaseCheck},
|
|
|
+ dyspnea_check = #{dyspneaCheck},
|
|
|
+ cold_fit_check = #{coldFitCheck},
|
|
|
+ muscle_pain_check = #{musclePainCheck},
|
|
|
+ headache_check = #{headacheCheck},
|
|
|
+ sore_throat_check = #{soreThroatCheck},
|
|
|
+ smell_palate_check = #{smellPalateCheck},
|
|
|
+ fatigue_check = #{fatigueCheck},
|
|
|
+ heart_disease = #{heartDisea},
|
|
|
+ liver_disease = #{liverDisease},
|
|
|
+ `operation` = #{operation},
|
|
|
+ operation_content = #{operationContent},
|
|
|
+ allergy_check = #{allergyCheck},
|
|
|
+ kidney_disease = #{kidneyDisease},
|
|
|
+ cancer_check = #{cancerCheck},
|
|
|
+ cancer_name = #{cancerName},
|
|
|
+ etc_check = #{etcCheck},
|
|
|
+ etc_content=${etcContent}
|
|
|
+ WHERE patient_idx = ${patientIdx}
|
|
|
+ ]]>
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <update id="updatePatientSymptom" parameterType="PatientDTO" useGeneratedKeys="true">
|
|
|
+ <![CDATA[
|
|
|
+ UPDATE patient_symptom
|
|
|
+ SET fever_check = #{feverCheck},
|
|
|
+ cough_check = #{coughCheck},
|
|
|
+ colic = #{colic},
|
|
|
+ cold_fit_check = #{coldFitCheck},
|
|
|
+ sputum_check = #{sputumCheck},
|
|
|
+ ocin_check = #{ocinCheck},
|
|
|
+ fever_right = #{feverRight},
|
|
|
+ fever_left = #{feverLeft},
|
|
|
+ fatigue_check = #{fatigueCheck},
|
|
|
+ etc_check = #{etcCheck},
|
|
|
+ etc_content = #{etcContent},
|
|
|
+ chest_pain = #{chestPain},
|
|
|
+ nose_check = #{noseCheck},
|
|
|
+ vomiting_check = #{vomitingCheck},
|
|
|
+ muscle_pain_check = #{musclePainCheck},
|
|
|
+ sore_throat_check = #{soreThroatCheck},
|
|
|
+ diarrhea_check = #{diarrheaCheck},
|
|
|
+ headache_check = #{headacheCheck},
|
|
|
+ dyspnea_check = #{dyspneaCheck},
|
|
|
+ pulse_rate = #{pulseRate},
|
|
|
+ respiration_rate = #{respirationRate},
|
|
|
+ blood_pressure_level = #{bloodPressureLevel},
|
|
|
+ oxygen_saturation = #{oxygenSaturation}
|
|
|
+ WHERE patient_idx = #{patient_idx}
|
|
|
+ ]]>
|
|
|
+ </update>
|
|
|
</mapper>
|