新增对外接口
Some checks are pending
Java CI with Maven / build (11) (push) Waiting to run
Java CI with Maven / build (17) (push) Waiting to run
Java CI with Maven / build (8) (push) Waiting to run
yudao-ui-admin CI / build (14.x) (push) Waiting to run
yudao-ui-admin CI / build (16.x) (push) Waiting to run

This commit is contained in:
lxd 2024-11-25 13:29:47 +08:00
parent 538dedf9f4
commit 83af0e963b
9 changed files with 221 additions and 2 deletions

View File

@ -51,6 +51,14 @@ public class EcganalysisparasController {
return success(ecganalysisparasService.createEcganalysisparas(createReqVO));
}
@PostMapping("/insert")
@Operation(summary = "插入心电分析数据")
public CommonResult<String> createEcganalysisparas(@Valid @RequestBody EcganalysisparascreateReqVO createReqVO) {
return success(ecganalysisparasService.insertEcganalysisparas(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新心电分析数据")
@PreAuthorize("@ss.hasPermission('tblist:ecganalysisparas:update')")

View File

@ -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;
}

View File

@ -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<String> createPatientexamlist(@Valid @RequestBody PatientexamlistSaveReqVO createReqVO) {
return success(patientexamlistService.createPatientexamlist(createReqVO));
}
@PostMapping("/insert")
@Operation(summary = "插入PACS检查列表数据")
public CommonResult<String> 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<PatientexamlistRespVO> 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')")

View File

@ -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;
}

View File

@ -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<PatientexamlistDO> {
"AND t1.regId=#{regId}\n" +
"AND t1.orgId=#{orgId} ")
List<Map<String, Object>> getCheckRecord(@Param("regId") String regId, @Param("orgId") String orgId);
default PatientexamlistDO selectByExamIdKey(String key,String orgid) {
return selectOne(PatientexamlistDO::getExamId, key,PatientexamlistDO::getOrgId,orgid);
}
}

View File

@ -25,6 +25,14 @@ public interface EcganalysisparasService extends IService<EcganalysisparasDO> {
*/
String createEcganalysisparas(@Valid EcganalysisparasSaveReqVO createReqVO);
/**
* 插入心电分析数据
*
* @param createReqVO 创建信息
* @return 编号
*/
String insertEcganalysisparas(@Valid EcganalysisparascreateReqVO createReqVO);
/**
* 更新心电分析数据
*

View File

@ -43,6 +43,15 @@ public class EcganalysisparasServiceImpl extends ServiceImpl<EcganalysisparasMap
return ecganalysisparas.getId();
}
@Override
public String insertEcganalysisparas(EcganalysisparascreateReqVO createReqVO) {
// 插入
EcganalysisparasDO ecganalysisparas = BeanUtils.toBean(createReqVO, EcganalysisparasDO.class);
ecganalysisparasMapper.insert(ecganalysisparas);
// 返回
return ecganalysisparas.getId();
}
@Override
public void updateEcganalysisparas(EcganalysisparasSaveReqVO updateReqVO) {
// 校验存在

View File

@ -24,6 +24,14 @@ public interface PatientexamlistService extends IService<PatientexamlistDO> {
*/
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> {
*/
PatientexamlistDO getPatientexamlist(String id);
/*
* 根据Examid查询表数据
* */
PatientexamlistDO getkeyexamidPatientexamlist(String examid,String orgid);
/**
* 获得PACS检查列表分页
*

View File

@ -55,6 +55,15 @@ public class PatientexamlistServiceImpl extends ServiceImpl<PatientexamlistMappe
return patientexamlist.getId();
}
@Override
public String insertPatientexamlist(PatientexamlistcreateReqVO createReqVO) {
// 插入
PatientexamlistDO patientexamlist = BeanUtils.toBean(createReqVO, PatientexamlistDO.class);
patientexamlistMapper.insert(patientexamlist);
// 返回
return patientexamlist.getId();
}
@Override
public void updatePatientexamlist(PatientexamlistSaveReqVO updateReqVO) {
// 校验存在
@ -83,6 +92,11 @@ public class PatientexamlistServiceImpl extends ServiceImpl<PatientexamlistMappe
return patientexamlistMapper.selectById(id);
}
@Override
public PatientexamlistDO getkeyexamidPatientexamlist(String examid,String orgid) {
return patientexamlistMapper.selectByExamIdKey(examid,orgid);
}
@Override
public PageResult<PatientexamlistDO> getPatientexamlistPage(PatientexamlistPageReqVO pageReqVO) {
return patientexamlistMapper.selectPage(pageReqVO);