完成93需求

This commit is contained in:
chenjinyang
2026-02-05 16:30:25 +08:00
parent f69de5e78f
commit dfdab41c00
30 changed files with 3104 additions and 18 deletions

View File

@@ -0,0 +1,191 @@
package com.openhis.surgicalschedule.domain;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;
import com.core.common.core.domain.HisBaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
/**
* 手术安排Entity实体
*
* @author system
* @date 2026-01-28
*/
@Data
@TableName("op_schedule")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class OpSchedule extends HisBaseEntity {
/** 排程号(主键) */
@TableId(type = IdType.ASSIGN_ID)
private Long scheduleId;
/** 申请单ID */
private Long applyId;
/** 患者ID */
private Long patientId;
/** 就诊ID */
private Long visitId;
/** 手术编码 */
private String operCode;
/** 手术名称 */
private String operName;
/** 术前诊断 */
private String preoperativeDiagnosis;
/** 术后诊断 */
private String postoperativeDiagnosis;
/** 手术安排日期 */
@DateTimeFormat(pattern = "yyyy-MM-dd")
private LocalDate scheduleDate;
/** 手术台次序号 */
private Integer sequenceNo;
/** 是否首台手术 1-是 0-否 */
private Integer isFirstSurgery;
/** 是否有药物过敏 1-是 0-否 */
private Integer isAllergyMedication;
/** 过敏备注 */
private String allergyRemark;
/** 手术性质 */
private String surgeryNature;
/** 手术部位 */
private String surgerySite;
/** 入院时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime admissionTime;
/** 入手术室时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime entryTime;
/** 手术室编码 */
private String roomCode;
/** 手术台号 */
private String tableNo;
/** 麻醉方式 */
private String anesMethod;
/** 麻醉医生1编码 */
private String anesDoctor1Code;
/** 麻醉医生2编码 */
private String anesDoctor2Code;
/** 麻醉医生3编码 */
private String anesDoctor3Code;
/** 洗手护士编码 */
private String scrubNurseCode;
/** 巡回护士1编码 */
private String circuNurse1Code;
/** 巡回护士2编码 */
private String circuNurse2Code;
/** 器械护士1编码 */
private String scrubNurse1Code;
/** 器械护士2编码 */
private String scrubNurse2Code;
/** 主刀医生编码 */
private String surgeonCode;
/** 助手1编码 */
private String assistant1Code;
/** 助手2编码 */
private String assistant2Code;
/** 助手3编码 */
private String assistant3Code;
/** 手术开始时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime startTime;
/** 手术结束时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime endTime;
/** 麻醉开始时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime anesStart;
/** 麻醉结束时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime anesEnd;
/** 手术状态 */
private Integer operStatus;
/** 是否植入耗材 1-是 0-否 */
private Integer implantFlag;
/** 植入物序列号 */
private String implantSerial;
/** 失血量(ml) */
private Integer bloodLoss;
/** 输血量(ml) */
private Integer bloodTrans;
/** 感染诊断 */
private String infectionDiagnosis;
/** 隔离类型 */
private String isolationType;
/** 患者体重(kg) */
private BigDecimal patientWeight;
/** 患者身高(cm) */
private BigDecimal patientHeight;
/** 沟通信息 */
private String communicationInfo;
/** 备注信息 */
private String remark;
/**
* 创建人id
*/
private Long creatorId;
/**
* 更新人id
*/
private Long updaterId;
/**
* 租户id
*/
private Integer tenantId;
}

View File

@@ -0,0 +1,18 @@
package com.openhis.surgicalschedule.mapper;
import com.openhis.surgicalschedule.domain.OpSchedule;
import org.springframework.stereotype.Repository;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* 手术安排Mapper接口
*
* @author system
* @date 2026-01-28
*/
@Repository
public interface OpScheduleMapper extends BaseMapper<OpSchedule> {
}

View File

@@ -0,0 +1,14 @@
package com.openhis.surgicalschedule.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.openhis.surgicalschedule.domain.OpSchedule;
/**
* 手术安排Service接口
*
* @author system
* @date 2026-01-28
*/
public interface IOpScheduleService extends IService<OpSchedule> {
}

View File

@@ -0,0 +1,18 @@
package com.openhis.surgicalschedule.service.impl;
import com.openhis.surgicalschedule.domain.OpSchedule;
import com.openhis.surgicalschedule.mapper.OpScheduleMapper;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.openhis.surgicalschedule.service.IOpScheduleService;
/**
* 手术安排Service业务层处理
*
* @author system
* @date 2026-01-28
*/
@Service
public class OpScheduleServiceImpl extends ServiceImpl<OpScheduleMapper, OpSchedule> implements IOpScheduleService {
}