From 83af0e963b77f4d692e05426579b9a6a99c2127b Mon Sep 17 00:00:00 2001 From: lxd <1004405501@qq.com> Date: Mon, 25 Nov 2024 13:29:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AF=B9=E5=A4=96=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../EcganalysisparasController.java | 8 ++ .../vo/EcganalysisparascreateReqVO.java | 79 +++++++++++++++++++ .../PatientexamlistController.java | 19 ++++- .../vo/PatientexamlistcreateReqVO.java | 69 ++++++++++++++++ .../PatientexamlistMapper.java | 5 ++ .../EcganalysisparasService.java | 8 ++ .../EcganalysisparasServiceImpl.java | 9 +++ .../PatientexamlistService.java | 12 +++ .../PatientexamlistServiceImpl.java | 14 ++++ 9 files changed, 221 insertions(+), 2 deletions(-) create mode 100644 yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/ecganalysisparas/vo/EcganalysisparascreateReqVO.java create mode 100644 yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/vo/PatientexamlistcreateReqVO.java diff --git a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/ecganalysisparas/EcganalysisparasController.java b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/ecganalysisparas/EcganalysisparasController.java index d1a6a9055..1aa346df3 100644 --- a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/ecganalysisparas/EcganalysisparasController.java +++ b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/ecganalysisparas/EcganalysisparasController.java @@ -51,6 +51,14 @@ public class EcganalysisparasController { return success(ecganalysisparasService.createEcganalysisparas(createReqVO)); } + + @PostMapping("/insert") + @Operation(summary = "插入心电分析数据") + public CommonResult createEcganalysisparas(@Valid @RequestBody EcganalysisparascreateReqVO createReqVO) { + return success(ecganalysisparasService.insertEcganalysisparas(createReqVO)); + } + + @PutMapping("/update") @Operation(summary = "更新心电分析数据") @PreAuthorize("@ss.hasPermission('tblist:ecganalysisparas:update')") diff --git a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/ecganalysisparas/vo/EcganalysisparascreateReqVO.java b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/ecganalysisparas/vo/EcganalysisparascreateReqVO.java new file mode 100644 index 000000000..27198ee7b --- /dev/null +++ b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/ecganalysisparas/vo/EcganalysisparascreateReqVO.java @@ -0,0 +1,79 @@ +package cn.iocoder.yudao.module.tblist.controller.admin.ecganalysisparas.vo; + +import cn.hutool.core.date.DateTime; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +import java.time.LocalDateTime; + +@Schema(description = "管理后台 - 心电分析数据新增/修改 Request VO") +@Data +public class EcganalysisparascreateReqVO { + + @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "31424") + private String id; + + @Schema(description = "机构ID", example = "32527") + private String orgId; + + @Schema(description = "检查ID:体检编号、住院号、门诊号等", example = "18100") + private String examId; + + @Schema(description = "采集时间") + private DateTime collectionTime; + + @Schema(description = "心率") + private String hr; + + @Schema(description = "P电轴") + private String pAxle; + + @Schema(description = "QRS电轴") + private String qrsAxle; + + @Schema(description = "T电轴") + private String tAxle; + + @Schema(description = "P波时限") + private String pTimeLimit; + + @Schema(description = "PR间期") + private String pr; + + @Schema(description = "QRS时限") + private String qrsTimeLimit; + + @Schema(description = "QT间期") + private String qt; + + @Schema(description = "QTC间期") + private String qtc; + + @Schema(description = "胸导V5导联电压") + private String rv5; + + @Schema(description = "V1导联S波深度") + private String sv1; + + @Schema(description = "RV5+SV1") + private String rv5Sv1; + + @Schema(description = "快照时间:参考心电波形的起始时间") + private DateTime snapshotTime; + + @Schema(description = "算法自动诊断结果") + private String autoDiagResult; + + @Schema(description = "自动诊断的时间") + private DateTime autoDiagTime; + + @Schema(description = "心电数据文件的路径: 路径或URL") + private String ecgDataFilePath; + + @Schema(description = "心电数据json格式的数据文件路径:路径或URL") + private String ecgJsonDataFilePath; + + @Schema(description = "分析参数的创建时间") + private DateTime createDate; + +} \ No newline at end of file diff --git a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/PatientexamlistController.java b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/PatientexamlistController.java index d947d15d0..a9b214aef 100644 --- a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/PatientexamlistController.java +++ b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/PatientexamlistController.java @@ -77,12 +77,18 @@ public class PatientexamlistController { @PostMapping("/create") @Operation(summary = "创建PACS检查列表") - @PreAuthorize("@ss.hasPermission('tblist:patientexamlist:create')") - @LogRecord(type = "检查列表", subType = "创建", bizNo = "{{#createReqVO.getId}}", success = "创建ID为{{#createReqVO.getId}}的患者") + // @PreAuthorize("@ss.hasPermission('tblist:patientexamlist:create')") + @LogRecord(type = "检查列表", subType = "创建", bizNo = "9999", success = "创建ID为{{#createReqVO.getId}}的患者") public CommonResult createPatientexamlist(@Valid @RequestBody PatientexamlistSaveReqVO createReqVO) { return success(patientexamlistService.createPatientexamlist(createReqVO)); } + @PostMapping("/insert") + @Operation(summary = "插入PACS检查列表数据") + public CommonResult insertPatientexamlist(@Valid @RequestBody PatientexamlistcreateReqVO createReqVO) { + return success(patientexamlistService.insertPatientexamlist(createReqVO)); + } + @PutMapping("/update") @Operation(summary = "更新PACS检查列表") @PreAuthorize("@ss.hasPermission('tblist:patientexamlist:update')") @@ -117,6 +123,15 @@ public class PatientexamlistController { return success(BeanUtils.toBean(patientexamlist, PatientexamlistRespVO.class)); } + @GetMapping("/getplexamiddata") + @Operation(summary = "根据examid获得PACS检查列表数据") + public CommonResult getkeyexamidPatientexamlist(@RequestParam("examid") String examid,@RequestParam("orgid") String orgid) { + PatientexamlistDO patientexamlist = patientexamlistService.getkeyexamidPatientexamlist(examid,orgid); + return success(BeanUtils.toBean(patientexamlist, PatientexamlistRespVO.class)); + } + + + @GetMapping("/page") @Operation(summary = "获得PACS检查列表分页") @PreAuthorize("@ss.hasPermission('tblist:patientexamlist:query')") diff --git a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/vo/PatientexamlistcreateReqVO.java b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/vo/PatientexamlistcreateReqVO.java new file mode 100644 index 000000000..9428ca1bc --- /dev/null +++ b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/vo/PatientexamlistcreateReqVO.java @@ -0,0 +1,69 @@ +package cn.iocoder.yudao.module.tblist.controller.admin.patientexamlist.vo; + +import cn.hutool.core.date.DateTime; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +import java.time.LocalDateTime; +import java.util.Date; + +@Schema(description = "管理后台 - PACS检查列表新增/修改 Request VO") +@Data +public class PatientexamlistcreateReqVO { + + @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "23598") + private String id; + + @Schema(description = "检查ID:体检编号、住院号、门诊号等", example = "26467") + private String examId; + + @Schema(description = "患者姓名", example = "赵六") + private String pName; + + @Schema(description = "性别") + private String gender; + + @Schema(description = "出生日期") + private Date birthday; + + @Schema(description = "检查日期:年月日时分秒") + private DateTime examDate; + + @Schema(description = "设备类型:CT DR MR B超 彩超等", example = "2") + private String deviceType; + + @Schema(description = "seri_dicomCount:序列数量/dicom数量") + private String seDc; + + @Schema(description = "检查项目名称", example = "张三") + private String examItemName; + + @Schema(description = "报告状态", example = "1") + private String reportstatus; + + @Schema(description = "申请日期:年月日时分秒") + private DateTime applicationDate; + + @Schema(description = "机构名称", example = "芋艿") + private String orgName; + + @Schema(description = "机构ID", example = "29289") + private String orgId; + + @Schema(description = "上级判读机构id列表:orgid1,orgid2,orgid3", example = "26015") + private String highLevelOrgId; + + @Schema(description = "创建时间:年月日时分秒") + private DateTime createDate; + + @Schema(description = "登记单号") + private String regId; + + @Schema(description = "影像设备名称") + private String deviceName; + + @Schema(description = "开单科室") + private String billDoctorDepartment; + +} \ No newline at end of file diff --git a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/dal/mysql/patientexamlist/PatientexamlistMapper.java b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/dal/mysql/patientexamlist/PatientexamlistMapper.java index bbf3d41cb..dd974ee8b 100644 --- a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/dal/mysql/patientexamlist/PatientexamlistMapper.java +++ b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/dal/mysql/patientexamlist/PatientexamlistMapper.java @@ -5,6 +5,7 @@ import java.util.*; import cn.iocoder.yudao.framework.common.pojo.PageResult; import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; +import cn.iocoder.yudao.module.system.dal.dataobject.org.OrgUnitDO; import cn.iocoder.yudao.module.tblist.dal.dataobject.patientexamlist.PatientexamlistDO; import com.baomidou.mybatisplus.annotation.InterceptorIgnore; import org.apache.ibatis.annotations.*; @@ -135,4 +136,8 @@ public interface PatientexamlistMapper extends BaseMapperX { "AND t1.regId=#{regId}\n" + "AND t1.orgId=#{orgId} ") List> getCheckRecord(@Param("regId") String regId, @Param("orgId") String orgId); + + default PatientexamlistDO selectByExamIdKey(String key,String orgid) { + return selectOne(PatientexamlistDO::getExamId, key,PatientexamlistDO::getOrgId,orgid); + } } \ No newline at end of file diff --git a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/ecganalysisparas/EcganalysisparasService.java b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/ecganalysisparas/EcganalysisparasService.java index 8f03c12f8..ed009248f 100644 --- a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/ecganalysisparas/EcganalysisparasService.java +++ b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/ecganalysisparas/EcganalysisparasService.java @@ -25,6 +25,14 @@ public interface EcganalysisparasService extends IService { */ String createEcganalysisparas(@Valid EcganalysisparasSaveReqVO createReqVO); + + /** + * 插入心电分析数据 + * + * @param createReqVO 创建信息 + * @return 编号 + */ + String insertEcganalysisparas(@Valid EcganalysisparascreateReqVO createReqVO); /** * 更新心电分析数据 * diff --git a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/ecganalysisparas/EcganalysisparasServiceImpl.java b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/ecganalysisparas/EcganalysisparasServiceImpl.java index b51f6dac6..9b701088b 100644 --- a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/ecganalysisparas/EcganalysisparasServiceImpl.java +++ b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/ecganalysisparas/EcganalysisparasServiceImpl.java @@ -43,6 +43,15 @@ public class EcganalysisparasServiceImpl extends ServiceImpl { */ String createPatientexamlist(@Valid PatientexamlistSaveReqVO createReqVO); + /** + * 插入PACS检查列表 + * + * @param createReqVO 创建信息 + * @return 编号 + */ + String insertPatientexamlist(@Valid PatientexamlistcreateReqVO createReqVO); + /** * 更新PACS检查列表 * @@ -46,6 +54,10 @@ public interface PatientexamlistService extends IService { */ PatientexamlistDO getPatientexamlist(String id); + /* + * 根据Examid查询表数据 + * */ + PatientexamlistDO getkeyexamidPatientexamlist(String examid,String orgid); /** * 获得PACS检查列表分页 * diff --git a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/patientexamlist/PatientexamlistServiceImpl.java b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/patientexamlist/PatientexamlistServiceImpl.java index 88f5a45a2..8db6730b3 100644 --- a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/patientexamlist/PatientexamlistServiceImpl.java +++ b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/patientexamlist/PatientexamlistServiceImpl.java @@ -55,6 +55,15 @@ public class PatientexamlistServiceImpl extends ServiceImpl getPatientexamlistPage(PatientexamlistPageReqVO pageReqVO) { return patientexamlistMapper.selectPage(pageReqVO);