|
|
@@ -0,0 +1,89 @@
|
|
|
+package com.tuoren.web.layer.vo;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author wangzl
|
|
|
+ * @description: TODO
|
|
|
+ * @date 2025/8/15 8:03
|
|
|
+ */
|
|
|
+
|
|
|
+import cn.hutool.core.collection.CollectionUtil;
|
|
|
+import cn.hutool.core.date.DateUtil;
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
+
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+@Data
|
|
|
+@EqualsAndHashCode(callSuper = false)
|
|
|
+@ApiModel(value = "PumpNewParam")
|
|
|
+public class PumpNewParam {
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "患者ID")
|
|
|
+ private String patientId;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "住院号")
|
|
|
+ private String patientCode;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "医院编码")
|
|
|
+ private String hospitalCode;
|
|
|
+
|
|
|
+ @ApiModelProperty("泵编号")
|
|
|
+ private String pumpCode;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "默认评价时间间隔", hidden = true)
|
|
|
+ private int defaultEvaluateTime = 1;
|
|
|
+
|
|
|
+ //泵类型,病区筛选,排序,评价状态,标识状态,时间,运行状态,报警,提示,管理方式
|
|
|
+ @ApiModelProperty(value = "泵类型")
|
|
|
+ private String productCode;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "病区")
|
|
|
+ private String wardCode;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "排序 true:正序 false:倒序 空:默认排序倒序")
|
|
|
+ private Boolean sort;
|
|
|
+
|
|
|
+ //0 未评价 1 待评价 2 已评价
|
|
|
+ @ApiModelProperty(value = "评价状态| 0 未评价 1 待评价 2 已评价")
|
|
|
+ private Integer scoreType;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "标识状态 ")
|
|
|
+ private Boolean exceptionFlag;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "时间")
|
|
|
+ private List<Date> timeRange;
|
|
|
+
|
|
|
+ // 开机 运行 关机 暂停 待机 不在服务区
|
|
|
+ // Shutdown(0,"关机"), StartUp(1,"开机"), Running(2,"运行"), Pause(3,"暂停"), Waiting(4,"待机"), NoSignal(5,"不在服务区")
|
|
|
+ @ApiModelProperty(value = "运行状态 | 0 关机 1 开机 2 运行 3 暂停 4 待机 5 不在服务区")
|
|
|
+ private Integer runStatus;
|
|
|
+
|
|
|
+ //输液结束 未装药盒 堵塞 极限 电量耗尽 气泡 输注总量 电机失控 机械故障
|
|
|
+ @ApiModelProperty(value = "报警| true 有报警 false 无报警 空 全部 ")
|
|
|
+ private Boolean alarm;
|
|
|
+ //镇痛不足
|
|
|
+ @ApiModelProperty(value = "提示 true 有报警 false 无报警 空 全部 ")
|
|
|
+ private Boolean tip;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "报警",hidden = true)
|
|
|
+ private List<String> alarmList;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "提示",hidden = true)
|
|
|
+ private List<String> tipList;
|
|
|
+
|
|
|
+ public void setTimeRange(List<Date> startTime) {
|
|
|
+ this.timeRange = new ArrayList<>();
|
|
|
+ if (CollectionUtil.isNotEmpty(startTime)) {
|
|
|
+ this.timeRange.add(DateUtil.beginOfDay(CollectionUtil.getFirst(startTime)));
|
|
|
+ if (startTime.size() > 1) {
|
|
|
+ this.timeRange.add(DateUtil.endOfDay(CollectionUtil.getLast(startTime)));
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+}
|