|
@@ -6,16 +6,16 @@
|
|
|
resultType="org.jeecg.modules.medical.common.bo.before.PatientInformationResponse">
|
|
|
SELECT
|
|
|
ad.patient_id AS patientId, -- 患者编码
|
|
|
- p.patient_name AS patientName, -- 患者姓名
|
|
|
- p.gender AS gender, -- 性别
|
|
|
+ ad.patient_name AS patientName, -- 患者姓名
|
|
|
+ ad.patient_gender AS gender, -- 性别
|
|
|
p.birthday AS birthday, -- 生日
|
|
|
- "" AS age, -- 年龄
|
|
|
+ patient_age AS age, -- 年龄
|
|
|
"" AS medicalInsurance, -- 是否医保(从主表查询)
|
|
|
ad.visit_time AS visitDate, -- 就诊日期
|
|
|
"" AS visitSerialNumber, -- 就诊流水号(从主表查询)
|
|
|
ad.medical_dept_name AS medicalDeptName, -- 科室名称
|
|
|
ad.medical_dept_code AS medicalDeptCode -- 科室编码
|
|
|
- ,ad.treatment_type as treatmentType -- 就诊类型
|
|
|
+ ,ad.treatment_type as treatmentType -- 就诊类型
|
|
|
FROM mid_incident_audit as ad
|
|
|
LEFT JOIN his_patient as p on ad.patient_id = p.patient_no
|
|
|
WHERE ad.id = #{id,jdbcType=INTEGER}
|