新增增加离院方式

广东省中医_gdszy
宇宙皮皮娃 1 year ago
parent 941eb07ba1
commit 67fd6d57e8

@ -40,5 +40,6 @@ public class TBasicDto {
//入院状态 1更新 2删除
private String statu;
private Integer isOther;
private String leaveMethod;
}

@ -39,4 +39,7 @@ public class TBasicExtend implements Serializable {
@ApiModelProperty(value = "责任护士 对应护士节点")
private String dutyNurse;
@ApiModelProperty(value = "离院方式")
private Integer leaveMethod;
}

@ -1,6 +1,7 @@
package com.docus.server.collection.service.impl;
import cn.hutool.core.util.NumberUtil;
import cn.hutool.core.util.ObjectUtil;
import com.docus.core.util.DateUtil;
import com.docus.core.util.Func;
import com.docus.infrastructure.core.exception.BaseException;
@ -101,6 +102,11 @@ public class TBasicServiceImpl implements ITBasicService {
if ("死亡".equals(isDeadStr)) {
isDead = 1;
}
String leaveMethodStr = tBasicDto.getLeaveMethod();
Integer leaveMethod = null;
if (ObjectUtil.isNotEmpty(leaveMethodStr)&&NumberUtil.isInteger(leaveMethodStr)) {
leaveMethod=Integer.parseInt(leaveMethodStr);
}
//组装数据
TBasic tBasic = new TBasic();
@ -140,6 +146,8 @@ public class TBasicServiceImpl implements ITBasicService {
tBasicExtend.setWardCode(tBasicDto.getWardCode());
tBasicExtend.setWardName(tBasicDto.getWardName());
tBasicExtend.setSdryIndex(sdryIndex == null ? null : sdryIndex.replace("z", "").replace("m", ""));
tBasicExtend.setLeaveMethod(leaveMethod);
//持久化
tBasicMapper.insert(tBasic);
tBasicMapper.insertExtend(tBasicExtend);

@ -303,6 +303,12 @@ public class BasicServiceImpl implements BasicService {
if(Func.isNotEmpty(sdryIndexNode)){
sdryIndex=sdryIndexNode.getNodeValue();
}
//顺德人医第三方索引
String leaveMethod=null;
Node leaveMethodNode = xml.getNode("/PRPA_HIP0032/controlActProcess/subject/encounterEvent/component[@displayName='出院诊断']/section/lhWay/@code");
if(Func.isNotEmpty(leaveMethodNode)){
leaveMethod=leaveMethodNode.getNodeValue();
}
//设置dto
TBasicDto dto=new TBasicDto();
@ -331,6 +337,7 @@ public class BasicServiceImpl implements BasicService {
dto.setWardName(wardName);
dto.setSdryIndex(sdryIndex);
dto.setIsOther(0);
dto.setLeaveMethod(leaveMethod);
return dto;
}

@ -97,9 +97,9 @@
</insert>
<insert id="insertExtend">
INSERT INTO `docus_medicalrecord`.`t_basic_extend`
(`patient_id`,`ward_code`,`ward_name`,`sdry_index`)
(`patient_id`,`ward_code`,`ward_name`,`sdry_index`,`leave_method`)
VALUES
(#{tBasicExtend.patientId},#{tBasicExtend.wardCode},#{tBasicExtend.wardName},#{tBasicExtend.sdryIndex})
(#{tBasicExtend.patientId},#{tBasicExtend.wardCode},#{tBasicExtend.wardName},#{tBasicExtend.sdryIndex},#{tBasicExtend.leaveMethod})
</insert>
<insert id="saveNisRemoveFilesCount">
INSERT INTO `docus_medicalrecord`.`t_basic_extend`

Loading…
Cancel
Save