|
@@ -7,6 +7,8 @@ import javax.validation.constraints.NotBlank;
|
|
import javax.validation.constraints.NotEmpty;
|
|
import javax.validation.constraints.NotEmpty;
|
|
import javax.validation.constraints.NotNull;
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
|
|
|
|
+import org.hibernate.validator.constraints.Range;
|
|
|
|
+
|
|
import com.diagbot.dto.InquiryDetailDTO;
|
|
import com.diagbot.dto.InquiryDetailDTO;
|
|
|
|
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModel;
|
|
@@ -63,12 +65,14 @@ public class SaveInquiryVO {
|
|
* 就诊状态(0待接诊,1接诊中,2完成接诊)
|
|
* 就诊状态(0待接诊,1接诊中,2完成接诊)
|
|
*/
|
|
*/
|
|
@ApiModelProperty(value="就诊状态(0待接诊,1接诊中,2完成接诊)")
|
|
@ApiModelProperty(value="就诊状态(0待接诊,1接诊中,2完成接诊)")
|
|
- private Integer regVisitedState=1;
|
|
|
|
|
|
+ @Range(min=0,max=2,message="就诊状态必须是0、1、2")
|
|
|
|
+ private Integer regVisitedState=1;
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 分类(1:门诊,2:住院)
|
|
|
|
|
|
+ * 病历分类(1:门诊,2:住院)
|
|
*/
|
|
*/
|
|
- @ApiModelProperty(value="分类(1:门诊,2:住院)")
|
|
|
|
|
|
+ @ApiModelProperty(value="病历分类(1:门诊,2:住院)")
|
|
|
|
+ @Range(min=1,max=2,message="病历分类必须是1、2")
|
|
private Integer type=1;
|
|
private Integer type=1;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -79,9 +83,10 @@ public class SaveInquiryVO {
|
|
private String diagnose;
|
|
private String diagnose;
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 类型:1:结构化 2:文本模式
|
|
|
|
|
|
+ * 内容输入类型:1:结构化 2:文本模式
|
|
*/
|
|
*/
|
|
- @ApiModelProperty(value="类型:1:结构化 2:文本模式")
|
|
|
|
|
|
+ @ApiModelProperty(value="内容输入类型:1:结构化 2:文本模式")
|
|
|
|
+ @Range(min=1,max=2,message="内容输入类型必须是1、2")
|
|
private Integer sign=1;
|
|
private Integer sign=1;
|
|
|
|
|
|
/**
|
|
/**
|