|
|
@@ -0,0 +1,87 @@
|
|
|
+package cn.tr.module.phototherapy.common.dto;
|
|
|
+
|
|
|
+import cn.tr.core.pojo.BaseDTO;
|
|
|
+import cn.tr.core.validation.Insert;
|
|
|
+import cn.tr.core.validation.Update;
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
+import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
+import jakarta.validation.constraints.NotBlank;
|
|
|
+import jakarta.validation.constraints.NotNull;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
+import lombok.ToString;
|
|
|
+
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 临床表传输对象
|
|
|
+ *
|
|
|
+ * @author CodeGenerator
|
|
|
+ * @date 2026-01-12
|
|
|
+ **/
|
|
|
+@Data
|
|
|
+@Schema(description = "临床表传输对象")
|
|
|
+@EqualsAndHashCode(callSuper = true)
|
|
|
+@ToString
|
|
|
+public class BusClinicAddDTO extends BaseDTO {
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ @Schema(description = "患者唯一标识")
|
|
|
+ @NotBlank(message = "患者唯一标识不能为空", groups = {Update.class, Insert.class})
|
|
|
+ private String patientUniqueId;
|
|
|
+
|
|
|
+ @Schema(description = "患者姓名")
|
|
|
+ private String patientName;
|
|
|
+
|
|
|
+ @Schema(description = "患者年龄")
|
|
|
+ private Integer patientAge;
|
|
|
+
|
|
|
+ @Schema(description = "患者性别(0女 1男 2未知)")
|
|
|
+ private Integer patientGender;
|
|
|
+
|
|
|
+ @Schema(description = "患者联系电话")
|
|
|
+ private String patientPhone;
|
|
|
+
|
|
|
+ @Schema(description = "患者地址")
|
|
|
+ private String patientAddress;
|
|
|
+
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ @Schema(description = "阶段开始时间")
|
|
|
+ private Date phaseStartTime;
|
|
|
+
|
|
|
+ @Schema(description = "阶段类型")
|
|
|
+ private Integer phaseType;
|
|
|
+
|
|
|
+ @Schema(description = "负责医生id")
|
|
|
+ @NotBlank(message = "负责医生id不能为空", groups = {Update.class, Insert.class})
|
|
|
+ private String userId;
|
|
|
+
|
|
|
+ @Schema(description = "设备id")
|
|
|
+ @NotBlank(message = "设备id不能为空", groups = {Update.class, Insert.class})
|
|
|
+ private String deviceId;
|
|
|
+
|
|
|
+ @Schema(description = "删除标志(0代表存在 1代表删除)")
|
|
|
+ @NotNull(message = "删除标志不能为空", groups = {Update.class, Insert.class})
|
|
|
+ private Integer isDelete;
|
|
|
+
|
|
|
+ @Schema(description = "医院id")
|
|
|
+ @NotBlank(message = "医院id不能为空", groups = {Update.class, Insert.class})
|
|
|
+ private String tenantId;
|
|
|
+
|
|
|
+ @Schema(description = "设备与患者的绑定开始时间")
|
|
|
+ @NotBlank(message = "设备与患者的绑定开始时间不能为空", groups = {Update.class, Insert.class})
|
|
|
+ private Date bindStartTime;
|
|
|
+
|
|
|
+ @Schema(description = "设备与患者的绑定结束时间")
|
|
|
+ private Date bindEndTime;
|
|
|
+
|
|
|
+ @Schema(description = "是否当前绑定(1=当前绑定,0=历史绑定)")
|
|
|
+ @NotNull(message = "是否当前绑定不能为空", groups = {Update.class, Insert.class})
|
|
|
+ private Integer isCurrentBind;
|
|
|
+
|
|
|
+ @Schema(description = "所属分组(0治疗组 1对照组)")
|
|
|
+ @NotNull(message = "是否当前所属分组不能为空", groups = {Update.class, Insert.class})
|
|
|
+ private Integer groupType;
|
|
|
+
|
|
|
+
|
|
|
+}
|