出院时间修改

广东省中医_gdszy
宇宙皮皮娃 2 years ago
parent 5c600cae7f
commit 635a1cee5f

@ -218,7 +218,10 @@ public class TBasicServiceImpl implements ITBasicService {
}else if(tBasic.getIsOther()==0){
tBasic.setIsOther(0);
}
//是否取消住院
if("2".equals(tBasicDto.getStatu())){
tBasic.setDisDate(null);
}
String sdryIndex = tBasicDto.getSdryIndex();
TBasicExtend tBasicExtend = new TBasicExtend();
tBasicExtend.setPatientId(patientId);

@ -438,6 +438,13 @@ public class BasicServiceImpl implements BasicService {
sdryIndex=sdryIndexNode.getNodeValue();
}
//出院状态
String statusCode=null;
Node statusCodeNode = xml.getNode("/PRPA_HIP0033/controlActProcess/subject/encounterEvent/statusCode/@code");
if(Func.isNotEmpty(statusCodeNode)){
statusCode=statusCodeNode.getNodeValue();
}
//设置dto
TBasicDto dto=new TBasicDto();
dto.setSerialId(serialId);
@ -465,6 +472,7 @@ public class BasicServiceImpl implements BasicService {
dto.setWardName(wardName);
dto.setSdryIndex(sdryIndex);
dto.setIsOther(0);
dto.setStatu(statusCode);
return dto;
}

@ -85,9 +85,6 @@
<if test="tBasic.admissDeptName !=null ">
`admiss_dept_name`=#{tBasic.admissDeptName},
</if>
<if test="tBasic.disDate !=null ">
`dis_date`=#{tBasic.disDate},
</if>
<if test="tBasic.disDeptName !=null ">
`dis_dept_name`=#{tBasic.disDeptName},
</if>
@ -107,6 +104,7 @@
`is_other`=#{tBasic.isOther},
</if>
b_column5=CONCAT(inpatient_no,'_',admiss_times),
`dis_date`=#{tBasic.disDate},
`update_time`=now()
</set>
WHERE `patient_id`=#{tBasic.patientId,jdbcType=VARCHAR};

Loading…
Cancel
Save