From d7c83e87b20460d882f6356f3e536aef9258e871 Mon Sep 17 00:00:00 2001 From: haown <454902499@qq.com> Date: Thu, 27 Jun 2024 15:27:55 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=BB=E5=83=8F=E5=AE=A1=E6=A0=B8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LabelFieldContentController.java | 24 ++++++-- .../SignPatientRecordController.java | 11 ++-- .../signpatientrecord/SignPatientRecord.java | 6 ++ .../signpatientrecord/PortaitCheckDto.java | 37 ++++++++++++ .../ILabelFieldContentService.java | 6 ++ .../impl/LabelFieldContentServiceImpl.java | 46 ++++++++++++--- .../ISignPatientRecordService.java | 8 ++- .../impl/SignPatientRecordServiceImpl.java | 58 ++++++++++++++++--- .../labelfieldcontent/PatientPortaitVo.java | 13 +++++ .../vo/patientinfo/PatientPortaitVo.java | 35 +++++++++++ .../SignPatientRecordMapper.xml | 3 + 11 files changed, 218 insertions(+), 29 deletions(-) create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/dto/signpatientrecord/PortaitCheckDto.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/vo/labelfieldcontent/PatientPortaitVo.java diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/controller/labelfieldcontent/LabelFieldContentController.java b/postdischarge-manage/src/main/java/com/xinelu/manage/controller/labelfieldcontent/LabelFieldContentController.java index d96aa9e4..709ceb67 100644 --- a/postdischarge-manage/src/main/java/com/xinelu/manage/controller/labelfieldcontent/LabelFieldContentController.java +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/controller/labelfieldcontent/LabelFieldContentController.java @@ -3,6 +3,7 @@ package com.xinelu.manage.controller.labelfieldcontent; import com.xinelu.common.annotation.Log; import com.xinelu.common.core.controller.BaseController; import com.xinelu.common.core.domain.AjaxResult; +import com.xinelu.common.core.domain.R; import com.xinelu.common.core.page.TableDataInfo; import com.xinelu.common.enums.BusinessType; import com.xinelu.common.utils.poi.ExcelUtil; @@ -11,12 +12,19 @@ import com.xinelu.manage.dto.labelfieldcontent.LabelFieldContentAddDTO; import com.xinelu.manage.service.labelfieldcontent.ILabelFieldContentService; import com.xinelu.manage.vo.labelfieldcontent.GroupingValue; import com.xinelu.manage.vo.labelfieldcontent.LabelField; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.web.bind.annotation.*; - +import java.util.List; +import java.util.Map; import javax.annotation.Resource; import javax.servlet.http.HttpServletResponse; -import java.util.List; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; /** * 标签字段内容信息Controller @@ -115,4 +123,12 @@ public class LabelFieldContentController extends BaseController { public AjaxResult insertLabelField(@RequestBody LabelField labelField) { return labelFieldContentService.insertLabelField(labelField); } + + /** + * 画像查询 + */ + @GetMapping("/getPortaitByPatient") + public R>>>> getPortaitByPatient(Long patientId) { + return R.ok(labelFieldContentService.getPortaitByPatient(patientId)); + } } diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/controller/signpatientrecord/SignPatientRecordController.java b/postdischarge-manage/src/main/java/com/xinelu/manage/controller/signpatientrecord/SignPatientRecordController.java index c5425b54..400a8a28 100644 --- a/postdischarge-manage/src/main/java/com/xinelu/manage/controller/signpatientrecord/SignPatientRecordController.java +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/controller/signpatientrecord/SignPatientRecordController.java @@ -4,11 +4,13 @@ import com.xinelu.common.core.controller.BaseController; import com.xinelu.common.core.domain.R; import com.xinelu.common.core.page.TableDataInfo; import com.xinelu.manage.dto.signpatientrecord.IntentionalSignDto; +import com.xinelu.manage.dto.signpatientrecord.PortaitCheckDto; import com.xinelu.manage.dto.signpatientrecord.RouteCheckDto; import com.xinelu.manage.dto.signpatientrecord.SignPatientAddDto; import com.xinelu.manage.dto.signpatientrecord.SignPatientListDto; import com.xinelu.manage.dto.signpatientrecord.SignPatientStatusDto; import com.xinelu.manage.service.signpatientrecord.ISignPatientRecordService; +import com.xinelu.manage.vo.patientinfo.PatientPortaitVo; import com.xinelu.manage.vo.signpatientrecord.SignPatientInfoVo; import com.xinelu.manage.vo.signpatientrecord.SignPatientListVo; import com.xinelu.manage.vo.signpatientrecord.SignPatientRecordVo; @@ -110,9 +112,8 @@ public class SignPatientRecordController extends BaseController { */ @ApiOperation("路径审核->左侧画像信息列表") @GetMapping("/getPortaitInfo/{patientId}") - public R getPortaitInfo(@PathVariable("patientId") Long patientId) { - signPatientRecordService.getPortaitInfo(patientId); - return R.ok(); + public R getPortaitInfo(@PathVariable("patientId") Long patientId) { + return R.ok(signPatientRecordService.getPortaitInfo(patientId)); } /** @@ -120,8 +121,8 @@ public class SignPatientRecordController extends BaseController { */ @ApiOperation("画像审核") @PostMapping("/updatePortaitCheckStatus") - public R updatePortaitCheckStatus(@RequestBody RouteCheckDto checkDto) { - int flag = signPatientRecordService.updatePortaitCheckStatus(checkDto); + public R updatePortaitCheckStatus(@RequestBody PortaitCheckDto portaitCheckDto) { + int flag = signPatientRecordService.updatePortaitCheckStatus(portaitCheckDto); return flag < 0 ? R.fail() : R.ok(); } /** diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/domain/signpatientrecord/SignPatientRecord.java b/postdischarge-manage/src/main/java/com/xinelu/manage/domain/signpatientrecord/SignPatientRecord.java index 52d855c2..a191cf84 100644 --- a/postdischarge-manage/src/main/java/com/xinelu/manage/domain/signpatientrecord/SignPatientRecord.java +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/domain/signpatientrecord/SignPatientRecord.java @@ -245,6 +245,12 @@ public class SignPatientRecord extends BaseEntity { @ApiModelProperty(value = "画像审核时间") private LocalDateTime portaitCheckDate; + /** + * 画像审核备注信息,存储审核备注信息以及审核不通过原因等信息 + */ + @ApiModelProperty(value = "画像审核备注信息,存储审核备注信息以及审核不通过原因等信息") + private String portaitCheckRemark; + /** * 专病路径审核状态,同意:AGREE,不同意:DISAGREE */ diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/dto/signpatientrecord/PortaitCheckDto.java b/postdischarge-manage/src/main/java/com/xinelu/manage/dto/signpatientrecord/PortaitCheckDto.java new file mode 100644 index 00000000..ad2dadd5 --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/dto/signpatientrecord/PortaitCheckDto.java @@ -0,0 +1,37 @@ +package com.xinelu.manage.dto.signpatientrecord; + +import com.xinelu.manage.vo.labelfieldcontent.GroupingValue; +import io.swagger.annotations.ApiModelProperty; +import java.util.List; +import lombok.Data; + +/** + * @description: 画像审核传输对象 + * @author: haown + * @create: 2024-06-27 11:31 + **/ +@Data +public class PortaitCheckDto { + + @ApiModelProperty("画像信息") + List> labelFieldContentList; + + @ApiModelProperty("患者主键") + private Long patientId; + + @ApiModelProperty("签约记录主键") + private Long signPatientRecordId; + + /** + * 画像审核状态,同意:AGREE,不同意:DISAGREE + */ + @ApiModelProperty(value = "画像审核状态,同意:AGREE,不同意:DISAGREE") + private String portaitCheckStatus; + + + /** + * 画像审核备注信息,存储审核备注信息以及审核不通过原因等信息 + */ + @ApiModelProperty(value = "画像审核备注信息,存储审核备注信息以及审核不通过原因等信息") + private String portaitCheckRemark; +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/service/labelfieldcontent/ILabelFieldContentService.java b/postdischarge-manage/src/main/java/com/xinelu/manage/service/labelfieldcontent/ILabelFieldContentService.java index 5babb5d8..7328ce38 100644 --- a/postdischarge-manage/src/main/java/com/xinelu/manage/service/labelfieldcontent/ILabelFieldContentService.java +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/service/labelfieldcontent/ILabelFieldContentService.java @@ -7,6 +7,7 @@ import com.xinelu.manage.vo.labelfieldcontent.GroupingValue; import com.xinelu.manage.vo.labelfieldcontent.LabelField; import java.util.List; +import java.util.Map; /** * 标签字段内容信息Service接口 @@ -91,4 +92,9 @@ public interface ILabelFieldContentService { * @return AjaxResult */ AjaxResult insertLabelField(LabelField labelField); + + /** + * 画像审核->查询患者画像信息 + */ + List>>> getPortaitByPatient(Long patientId); } diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/service/labelfieldcontent/impl/LabelFieldContentServiceImpl.java b/postdischarge-manage/src/main/java/com/xinelu/manage/service/labelfieldcontent/impl/LabelFieldContentServiceImpl.java index b4020a41..f549417b 100644 --- a/postdischarge-manage/src/main/java/com/xinelu/manage/service/labelfieldcontent/impl/LabelFieldContentServiceImpl.java +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/service/labelfieldcontent/impl/LabelFieldContentServiceImpl.java @@ -20,20 +20,24 @@ import com.xinelu.manage.service.labelfieldcontent.ILabelFieldContentService; import com.xinelu.manage.vo.labelfieldcontent.GroupingValue; import com.xinelu.manage.vo.labelfieldcontent.LabelField; import com.xinelu.manage.vo.labelfieldcontent.LabelFieldContentVO; +import java.lang.reflect.Field; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.concurrent.TimeUnit; +import java.util.stream.Collectors; +import javax.annotation.Resource; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.ObjectUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; -import javax.annotation.Resource; -import java.lang.reflect.Field; -import java.time.LocalDateTime; -import java.time.format.DateTimeFormatter; -import java.util.*; -import java.util.concurrent.TimeUnit; -import java.util.stream.Collectors; - /** * 标签字段内容信息Service业务层处理 * @@ -281,7 +285,31 @@ public class LabelFieldContentServiceImpl implements ILabelFieldContentService { return AjaxResult.success(); } - /** + @Override public List>>> getPortaitByPatient(Long patientId) { + List>>> retMap = new ArrayList<>(); + List labelFieldContents = labelFieldContentMapper.groupingValue(null, patientId, null); + if (CollectionUtils.isEmpty(labelFieldContents)) { + return null; + } + // 按照任务细分分组 + Map> groupByPartition = labelFieldContents.stream().collect(Collectors.groupingBy(GroupingValue::getTaskPartitionDictId)); + + for (Long taskPartitionDictId : groupByPartition.keySet()) { + Map>> retObj = new HashMap<>(); + List> lists = new ArrayList<>(); + // 按照sn分组 + List partitionList = groupByPartition.get(taskPartitionDictId); + Map> groupBySn = partitionList.stream().collect(Collectors.groupingBy(GroupingValue::getPortraitSn)); + for (String sn : groupBySn.keySet()) { + lists.add(groupBySn.get(sn)); + } + retObj.put(partitionList.get(0).getTaskPartitionDictName(), lists); + retMap.add(retObj); + } + return retMap; + } + + /** * 根据任务细分类型获取患者的真实信息 * * @param patientId 患者主键 diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/service/signpatientrecord/ISignPatientRecordService.java b/postdischarge-manage/src/main/java/com/xinelu/manage/service/signpatientrecord/ISignPatientRecordService.java index a76eac57..0ddf5104 100644 --- a/postdischarge-manage/src/main/java/com/xinelu/manage/service/signpatientrecord/ISignPatientRecordService.java +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/service/signpatientrecord/ISignPatientRecordService.java @@ -1,10 +1,12 @@ package com.xinelu.manage.service.signpatientrecord; import com.xinelu.manage.dto.signpatientrecord.IntentionalSignDto; +import com.xinelu.manage.dto.signpatientrecord.PortaitCheckDto; import com.xinelu.manage.dto.signpatientrecord.RouteCheckDto; import com.xinelu.manage.dto.signpatientrecord.SignPatientAddDto; import com.xinelu.manage.dto.signpatientrecord.SignPatientListDto; import com.xinelu.manage.dto.signpatientrecord.SignPatientStatusDto; +import com.xinelu.manage.vo.patientinfo.PatientPortaitVo; import com.xinelu.manage.vo.signpatientrecord.SignPatientInfoVo; import com.xinelu.manage.vo.signpatientrecord.SignPatientListVo; import com.xinelu.manage.vo.signpatientrecord.SignPatientRecordVo; @@ -48,13 +50,13 @@ public interface ISignPatientRecordService { */ int intentionalSign(IntentionalSignDto intentionalSignDto); - void getPortaitInfo(Long patientId); + PatientPortaitVo getPortaitInfo(Long patientId); /** * 画像审核 - * @param checkDto 画像审核传输对象 + * @param portaitCheckDto 画像审核传输对象 * @return */ - int updatePortaitCheckStatus(RouteCheckDto checkDto); + int updatePortaitCheckStatus(PortaitCheckDto portaitCheckDto); /** * 路径审核 diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/service/signpatientrecord/impl/SignPatientRecordServiceImpl.java b/postdischarge-manage/src/main/java/com/xinelu/manage/service/signpatientrecord/impl/SignPatientRecordServiceImpl.java index e6c8bbef..9809caa7 100644 --- a/postdischarge-manage/src/main/java/com/xinelu/manage/service/signpatientrecord/impl/SignPatientRecordServiceImpl.java +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/service/signpatientrecord/impl/SignPatientRecordServiceImpl.java @@ -22,6 +22,7 @@ import com.xinelu.manage.domain.specialdiseaseroute.SpecialDiseaseRoute; import com.xinelu.manage.dto.signpatientmanageroutenode.SignPatientManageRouteNodeDto; import com.xinelu.manage.dto.signpatientpackage.SignPatientPackageSaveDto; import com.xinelu.manage.dto.signpatientrecord.IntentionalSignDto; +import com.xinelu.manage.dto.signpatientrecord.PortaitCheckDto; import com.xinelu.manage.dto.signpatientrecord.RouteCheckDto; import com.xinelu.manage.dto.signpatientrecord.SignPatientAddDto; import com.xinelu.manage.dto.signpatientrecord.SignPatientListDto; @@ -39,8 +40,10 @@ import com.xinelu.manage.mapper.signroutetriggercondition.SignRouteTriggerCondit import com.xinelu.manage.mapper.specialdiseasenode.SpecialDiseaseNodeMapper; import com.xinelu.manage.mapper.specialdiseaseroute.SpecialDiseaseRouteMapper; import com.xinelu.manage.mapper.specialdiseasetriggercondition.SpecialDiseaseTriggerConditionMapper; +import com.xinelu.manage.service.labelfieldcontent.ILabelFieldContentService; import com.xinelu.manage.service.signpatientmanageroutenode.ISignPatientManageRouteNodeService; import com.xinelu.manage.service.signpatientrecord.ISignPatientRecordService; +import com.xinelu.manage.vo.labelfieldcontent.LabelField; import com.xinelu.manage.vo.labelfieldcontent.LabelFieldInfoContentVo; import com.xinelu.manage.vo.patientinfo.PatientPortaitVo; import com.xinelu.manage.vo.signpatientrecord.SignPatientInfoVo; @@ -97,6 +100,8 @@ public class SignPatientRecordServiceImpl implements ISignPatientRecordService { private ISignPatientManageRouteNodeService signPatientManageRouteNodeService; @Resource private LabelFieldContentMapper labelFieldContentMapper; + @Resource + private ILabelFieldContentService labelFieldContentService; @Override @DataScope(agencyAlias = "sign") @@ -319,7 +324,7 @@ public class SignPatientRecordServiceImpl implements ISignPatientRecordService { * @param patientId 患者主键 */ @Override - public void getPortaitInfo(Long patientId) { + public PatientPortaitVo getPortaitInfo(Long patientId) { // 查询患者诊断信息、手术信息 PatientInfo patientInfo = patientInfoMapper.selectPatientInfoById(patientId); if (ObjectUtils.isEmpty(patientInfo)) { @@ -355,14 +360,15 @@ public class SignPatientRecordServiceImpl implements ISignPatientRecordService { // 查询复诊日期 List consultationList = labelFieldContentList.stream().filter(labelField->labelField.getFieldCode().equals("CONSULTATIONDATE")).collect(Collectors.toList()); + Map> groupByPartitionDictId = consultationList.stream().collect(Collectors.groupingBy(LabelFieldInfoContentVo::getTaskPartitionDictId)); // 包含复诊的标签列表 List consultationLabelList = new ArrayList<>(); - for (LabelFieldInfoContentVo consultation : consultationList) { - consultationLabelList.addAll(groupByPartition.get(consultation.getTaskPartitionDictId())); + for (Long taskPartitionDictId : groupByPartitionDictId.keySet()) { + consultationLabelList.addAll(groupByPartition.get(taskPartitionDictId)); } // 按照sn分组,每个分组是一个复诊 if (!CollectionUtils.isEmpty(consultationLabelList)) { - Map> patientConsultationList = drugLabelList.stream().collect(Collectors.groupingBy(LabelFieldInfoContentVo::getPortraitSn)); + Map> patientConsultationList = consultationLabelList.stream().collect(Collectors.groupingBy(LabelFieldInfoContentVo::getPortraitSn)); for (String sn : patientConsultationList.keySet()) { List propertyList = patientConsultationList.get(sn); JSONObject consultation = new JSONObject(); @@ -374,12 +380,48 @@ public class SignPatientRecordServiceImpl implements ISignPatientRecordService { } } - PatientPortaitVo.builder().mainDiagnosis(patientInfo.getMainDiagnosis()) - .surgicalName(patientInfo.getSurgicalName()).drugInfo(drugInfo).consultationInfo(consultationInfo).build(); + return PatientPortaitVo.builder().patientName(patientInfo.getPatientName()) + .birthDate(patientInfo.getBirthDate()) + .sex(patientInfo.getSex()) + .visitMethod(patientInfo.getVisitMethod()) + .patientSource(patientInfo.getPatientSource()) + .mainDiagnosis(patientInfo.getMainDiagnosis()) + .surgicalName(patientInfo.getSurgicalName()) + .drugInfo(drugInfo) + .consultationInfo(consultationInfo).build(); } - @Override public int updatePortaitCheckStatus(RouteCheckDto checkDto) { - return 0; + @Override + @Transactional(rollbackFor = Exception.class) + public int updatePortaitCheckStatus(PortaitCheckDto portaitCheckDto) { + // 画像信息保存 + if (CollectionUtils.isEmpty(portaitCheckDto.getLabelFieldContentList())) { + throw new ServiceException("请输入画像信息"); + } + if (StringUtils.isBlank(portaitCheckDto.getPortaitCheckStatus())) { + throw new ServiceException("请输入审核信息"); + } + LabelField labelField = new LabelField(); + labelField.setGroupingValues(portaitCheckDto.getLabelFieldContentList()); + labelFieldContentService.insertLabelField(labelField); + + // 修改签约记录 + SignPatientRecord signPatientRecord = signPatientRecordMapper.selectByPrimaryKey(portaitCheckDto.getSignPatientRecordId()); + if (ObjectUtils.isEmpty(signPatientRecord)) { + throw new ServiceException("未找到该签约记录"); + } + signPatientRecord.setPortaitCheckStatus(portaitCheckDto.getPortaitCheckStatus()); + signPatientRecord.setPortaitCheckRemark(portaitCheckDto.getPortaitCheckRemark()); + signPatientRecord.setPortaitCheckDate(LocalDateTime.now()); + signPatientRecord.setPortaitCheckPerson(SecurityUtils.getLoginUser().getUser().getNickName()); + int flag = signPatientRecordMapper.updateByPrimaryKeySelective(signPatientRecord); + if (StringUtils.equals(RouteCheckStatusEnum.AGREE.getInfo(), signPatientRecord.getRouteCheckStatus()) && StringUtils.equals(RouteCheckStatusEnum.AGREE.getInfo(), signPatientRecord.getPortaitCheckStatus())) { + // 路径、画像都审核通过则生成主路径任务 + signPatientManageRouteNodeService.generateMainRouteTask(portaitCheckDto.getSignPatientRecordId()); + // 替换手动生成的任务中的标签 + signPatientManageRouteNodeService.manualCreateTaskLabelReplace(portaitCheckDto.getSignPatientRecordId()); + } + return flag; } @Override diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/vo/labelfieldcontent/PatientPortaitVo.java b/postdischarge-manage/src/main/java/com/xinelu/manage/vo/labelfieldcontent/PatientPortaitVo.java new file mode 100644 index 00000000..eb464372 --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/vo/labelfieldcontent/PatientPortaitVo.java @@ -0,0 +1,13 @@ +package com.xinelu.manage.vo.labelfieldcontent; + +import java.util.List; +import java.util.Map; + +/** + * @description: 画像审核返回视图类 + * @author: haown + * @create: 2024-06-27 15:01 + **/ +public class PatientPortaitVo { + Map>> portaitInfo; +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/vo/patientinfo/PatientPortaitVo.java b/postdischarge-manage/src/main/java/com/xinelu/manage/vo/patientinfo/PatientPortaitVo.java index dc479b94..e76bbdae 100644 --- a/postdischarge-manage/src/main/java/com/xinelu/manage/vo/patientinfo/PatientPortaitVo.java +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/vo/patientinfo/PatientPortaitVo.java @@ -1,7 +1,10 @@ package com.xinelu.manage.vo.patientinfo; import com.alibaba.fastjson2.JSONObject; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.xinelu.common.annotation.Excel; import io.swagger.annotations.ApiModelProperty; +import java.time.LocalDate; import java.util.List; import lombok.AllArgsConstructor; import lombok.Builder; @@ -18,6 +21,38 @@ import lombok.NoArgsConstructor; @NoArgsConstructor @AllArgsConstructor public class PatientPortaitVo { + /** + * 患者姓名 + */ + @ApiModelProperty(value = "患者姓名") + @Excel(name = "患者姓名") + private String patientName; + + /** + * 出生日期,格式:yyyy-MM-dd + */ + @ApiModelProperty(value = "出生日期,格式:yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDate birthDate; + + /** + * 性别,男:MALE,女:FEMALE + */ + @ApiModelProperty(value = "性别,男:MALE,女:FEMALE") + private String sex; + + /** + * 就诊方式,门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL + */ + @ApiModelProperty(value = "就诊方式,门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL") + private String visitMethod; + + /** + * 患者来源,微信小程序:WE_CHAT_APPLET,微信公众号:WE_CHAT_OFFICIAL_ACCOUNT,管理端:MANAGE_END + */ + @ApiModelProperty(value = "患者来源,微信小程序:WE_CHAT_APPLET,微信公众号:WE_CHAT_OFFICIAL_ACCOUNT,管理端:MANAGE_END") + private String patientSource; + /** * 主要诊断 */ diff --git a/postdischarge-manage/src/main/resources/mapper/manage/signpatientrecord/SignPatientRecordMapper.xml b/postdischarge-manage/src/main/resources/mapper/manage/signpatientrecord/SignPatientRecordMapper.xml index a7fc8cff..4efeb6ac 100644 --- a/postdischarge-manage/src/main/resources/mapper/manage/signpatientrecord/SignPatientRecordMapper.xml +++ b/postdischarge-manage/src/main/resources/mapper/manage/signpatientrecord/SignPatientRecordMapper.xml @@ -306,6 +306,9 @@ portait_check_date = #{portaitCheckDate,jdbcType=TIMESTAMP}, + + portait_check_remark = #{portaitCheckRemark,jdbcType=VARCHAR}, + route_check_status = #{routeCheckStatus,jdbcType=VARCHAR},