package thyyxxk.webserver.entity.inpatient.dismiss;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class HrgDismissParam {
    @NotBlank(message = "操作员id不能为空。")
    private String staffId;
    @NotBlank(message = "患者住院号不能为空。")
    private String inpatientNo;
    @NotNull(message = "住院次数不能为空。")
    private Integer admissTimes;
    @NotNull(message = "结算标志不能为空，1：出院结算，2：中间断账")
    private Integer dismissFlag;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date zjdzDatetime;
}
