|
@@ -1,8 +1,11 @@
|
|
|
package cn.tr.module.phototherapy.common.dto;
|
|
package cn.tr.module.phototherapy.common.dto;
|
|
|
|
|
|
|
|
|
|
+import cn.hutool.core.util.EnumUtil;
|
|
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
import cn.tr.core.pojo.BaseDTO;
|
|
import cn.tr.core.pojo.BaseDTO;
|
|
|
import cn.tr.core.validation.Insert;
|
|
import cn.tr.core.validation.Insert;
|
|
|
import cn.tr.core.validation.Update;
|
|
import cn.tr.core.validation.Update;
|
|
|
|
|
+import cn.tr.module.common.menus.SexEnum;
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import jakarta.validation.constraints.NotBlank;
|
|
import jakarta.validation.constraints.NotBlank;
|
|
@@ -36,8 +39,8 @@ public class BusClinicAddDTO extends BaseDTO {
|
|
|
@Schema(description = "患者年龄")
|
|
@Schema(description = "患者年龄")
|
|
|
private Integer patientAge;
|
|
private Integer patientAge;
|
|
|
|
|
|
|
|
- @Schema(description = "患者性别(0女 1男 2未知)")
|
|
|
|
|
- private Integer patientGender;
|
|
|
|
|
|
|
+ @Schema(description = "患者性别文本(0女 1男 2未知)")
|
|
|
|
|
+ private String patientGenderText;
|
|
|
|
|
|
|
|
@Schema(description = "患者联系电话")
|
|
@Schema(description = "患者联系电话")
|
|
|
private String patientPhone;
|
|
private String patientPhone;
|
|
@@ -49,39 +52,46 @@ public class BusClinicAddDTO extends BaseDTO {
|
|
|
@Schema(description = "阶段开始时间")
|
|
@Schema(description = "阶段开始时间")
|
|
|
private Date phaseStartTime;
|
|
private Date phaseStartTime;
|
|
|
|
|
|
|
|
- @Schema(description = "阶段类型")
|
|
|
|
|
- private Integer phaseType;
|
|
|
|
|
|
|
+ @Schema(description = "强化期阶段")
|
|
|
|
|
+ private String intensivePhaseType;
|
|
|
|
|
|
|
|
- @Schema(description = "负责医生id")
|
|
|
|
|
- @NotBlank(message = "负责医生id不能为空", groups = {Update.class, Insert.class})
|
|
|
|
|
- private String userId;
|
|
|
|
|
|
|
+ @Schema(description = "强化期阶段频率")
|
|
|
|
|
+ private Integer intensivePhaseFreq;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "强化期阶段建议时长")
|
|
|
|
|
+ private Integer intensivePhaseDurationMin;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "次续期阶段")
|
|
|
|
|
+ private String continuousPhaseType;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "次续期阶段频率")
|
|
|
|
|
+ private Integer continuousPhaseFreq;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "次续期阶段建议时长")
|
|
|
|
|
+ private Integer continuousPhaseDurationMin;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "强化期阶段日文本(每日/隔日)")
|
|
|
|
|
+ @NotBlank(message = "阶段日不能为空", groups = {Update.class, Insert.class})
|
|
|
|
|
+ private String intensivePhaseDayText;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "次续期阶段日文本(每日/隔日)")
|
|
|
|
|
+ @NotBlank(message = "阶段日不能为空", groups = {Update.class, Insert.class})
|
|
|
|
|
+ private String continuousPhaseDayText;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "所属分组(0治疗组 1对照组)")
|
|
|
|
|
+ private String groupTypeText;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "负责医生")
|
|
|
|
|
+ private String planDoctor;
|
|
|
|
|
|
|
|
@Schema(description = "设备id")
|
|
@Schema(description = "设备id")
|
|
|
@NotBlank(message = "设备id不能为空", groups = {Update.class, Insert.class})
|
|
@NotBlank(message = "设备id不能为空", groups = {Update.class, Insert.class})
|
|
|
private String deviceId;
|
|
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 = "设备与患者的绑定开始时间")
|
|
@Schema(description = "设备与患者的绑定开始时间")
|
|
|
@NotBlank(message = "设备与患者的绑定开始时间不能为空", groups = {Update.class, Insert.class})
|
|
@NotBlank(message = "设备与患者的绑定开始时间不能为空", groups = {Update.class, Insert.class})
|
|
|
private Date bindStartTime;
|
|
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;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|