医学评估基础信息作废显示异常
患者死亡信息作废显示异常
| | |
| | | FROM |
| | | service_donatebaseinfo sd |
| | | LEFT JOIN service_deathinfo sdi ON sd.ID = sdi.InfoID |
| | | AND sd.del_flag = 0 |
| | | |
| | | AND sdi.del_flag = 0 |
| | | AND sdi.ID IS NOT NULL |
| | | <where> |
| | | sd.termination_case = 0 |
| | | sd.termination_case = 0 AND sd.del_flag = 0 |
| | | <if test="infoid != null ">and sd.ID = #{infoid}</if> |
| | | <if test="inpatientno != null ">and sd.InpatientNo = #{inpatientno}</if> |
| | | <if test="caseNo != null and caseNo != ''">and sd.case_no = #{caseNo}</if> |
| | |
| | | sm.assess_state |
| | | FROM service_donatebaseinfo sb |
| | | LEFT JOIN service_medicalevaluation sm ON sb.ID = sm.InfoID and sm.del_flag = 0 |
| | | and sb.del_flag = 0 and sm.ID is not null |
| | | and sm.ID is not null |
| | | <where> |
| | | sb.termination_case = 0 |
| | | sb.termination_case = 0 and sb.del_flag = 0 |
| | | <if test="infoid != null">AND sb.ID = #{infoid}</if> |
| | | <if test="inpatientno != null">AND sb.InpatientNo = #{inpatientno}</if> |
| | | <if test="currentMedicalInstitution != null">AND sb.current_medical_institution = #{currentMedicalInstitution}</if> |