患者基础数据入参加参数

3.2.4.44
宇宙皮皮娃 2 years ago
parent 85d49db3b0
commit a7a2fbfb74

@ -34,4 +34,5 @@ public class TBasicDto {
private String admissDays;
private String wardCode;
private String wardName;
private String sdryIndex;
}

@ -33,4 +33,7 @@ public class TBasicExtend implements Serializable {
@ApiModelProperty(value = "病区名称")
private String wardName;
@ApiModelProperty(value = "第三方索引")
private String sdryIndex;
}

@ -105,6 +105,7 @@ public class TBasicServiceImpl implements ITBasicService {
tBasicExtend.setPatientId(patientId.toString());
tBasicExtend.setWardCode(tBasicDto.getWardCode());
tBasicExtend.setWardName(tBasicDto.getWardName());
tBasicExtend.setSdryIndex(tBasicDto.getSdryIndex());
//持久化
tBasicMapper.insert(tBasic);
@ -183,6 +184,7 @@ public class TBasicServiceImpl implements ITBasicService {
tBasicExtend.setPatientId(patientId);
tBasicExtend.setWardCode(tBasicDto.getWardCode());
tBasicExtend.setWardName(tBasicDto.getWardName());
tBasicExtend.setSdryIndex(tBasicDto.getSdryIndex());
//持久化
tBasicMapper.update(tBasic);

@ -205,7 +205,12 @@ public class BasicServiceImpl implements BasicService {
if(Func.isNotEmpty(wardNameNode)){
wardName=wardNameNode.getTextContent();
}
//顺德人医第三方索引
String sdryIndex=null;
Node sdryIndexNode = xml.getNode("/PRPA_HIP0032/controlActProcess/subject/encounterEvent/subject/patient/id/item/@extension");
if(Func.isNotEmpty(sdryIndexNode)){
sdryIndex=sdryIndexNode.getNodeValue();
}
//设置dto
TBasicDto dto=new TBasicDto();
@ -231,6 +236,7 @@ public class BasicServiceImpl implements BasicService {
dto.setAdmissDays(admissDays);
dto.setWardCode(wardCode);
dto.setWardName(wardName);
dto.setSdryIndex(sdryIndex);
return dto;
}
@ -368,7 +374,12 @@ public class BasicServiceImpl implements BasicService {
if(Func.isNotEmpty(wardNameNode)){
wardName=wardNameNode.getTextContent();
}
//顺德人医第三方索引
String sdryIndex=null;
Node sdryIndexNode = xml.getNode("/PRPA_HIP0032/controlActProcess/subject/encounterEvent/subject/patient/id/item/@extension");
if(Func.isNotEmpty(sdryIndexNode)){
sdryIndex=sdryIndexNode.getNodeValue();
}
//设置dto
TBasicDto dto=new TBasicDto();
@ -394,6 +405,7 @@ public class BasicServiceImpl implements BasicService {
dto.setAdmissDays(admissDays);
dto.setWardCode(wardCode);
dto.setWardName(wardName);
dto.setSdryIndex(sdryIndex);
return dto;
}

@ -28,7 +28,7 @@ spring:
redis:
host: redis.docus.cn
password: JSdocus@702
# password: JSdocus@702
cloud:
nacos:
discovery:

@ -24,9 +24,9 @@
</insert>
<insert id="insertExtend">
INSERT INTO `docus_medicalrecord`.`t_basic_extend`
(`patient_id`,`ward_code`,`ward_name`)
(`patient_id`,`ward_code`,`ward_name`,`sdry_index`)
VALUES
(#{tBasicExtend.patientId},#{tBasicExtend.wardCode},#{tBasicExtend.wardName})
(#{tBasicExtend.patientId},#{tBasicExtend.wardCode},#{tBasicExtend.wardName},#{tBasicExtend.sdryIndex})
</insert>
<update id="update">
@ -86,16 +86,14 @@
</update>
<update id="updateExtend">
UPDATE `docus_medicalrecord`.`t_basic_extend`
<set>
<if test="tBasicExtend.wardCode !=null ">
`ward_code`=#{tBasicExtend.wardCode},
</if>
<if test="tBasicExtend.wardName !=null ">
`ward_name`=#{tBasicExtend.wardName},
</if>
</set>
WHERE `patient_id`=#{tBasicExtend.patientId};
INSERT INTO `docus_medicalrecord`.`t_basic_extend`
(`patient_id`,`ward_code`,`ward_name`,`sdry_index`)
VALUES
(#{tBasicExtend.patientId},#{tBasicExtend.wardCode},#{tBasicExtend.wardName},#{tBasicExtend.sdryIndex})
on DUPLICATE KEY UPDATE
`ward_code`=#{tBasicExtend.wardCode},
`ward_name`=#{tBasicExtend.wardName},
`sdry_index`=#{tBasicExtend.sdryIndex}
</update>
<select id="selectOne" resultType="java.lang.Integer">

Loading…
Cancel
Save