package thyyxxk.webserver.entity.medicalinsurance.psnrcd;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
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;

/**
 * @description: 人员慢特病备案
 * @author: DingJie
 * @create: 2021/7/1615:51
 */
@Data
@TableName(value = "t_si_slw_spc_dise_rcd")
public class SlwSpcDiseRcd {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @JSONField(name = "psn_no")
    private String psnNo;

    private String insutype;
    /**
     * 门慢门特病种目录代码
     * */
    @NotBlank(message = "病种编码不能为空！")
    @JSONField(name = "opsp_dise_code")
    private String opspDiseCode;

    @NotBlank(message = "病种名称不能为空！")
    @JSONField(name = "opsp_dise_name")
    private String opspDiseName;

    private String tel;

    private String addr;

    /**
     * 参保机构医保区划
     * */
    @JSONField(name = "insu_optins")
    private String insuOptins;

    /**
     * 鉴定定点医药机构编号
     * */
    @JSONField(name = "ide_fixmedins_no")
    private String ideFixmedinsNo;

    @JSONField(name = "ide_fixmedins_name")
    private String ideFixmedinsName;

    /**
     * 医院鉴定日期
     * */
    @NotNull(message = "医院鉴定日期不能为空！")
    @JSONField(name = "hosp_ide_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date hospIdeDate;

    /**
     * 诊断医师编码
     * */
    @NotBlank(message = "诊断医师编码不能为空！")
    @JSONField(name = "diag_dr_codg")
    private String diagDrCodg;

    @NotBlank(message = "诊断医师姓名不能为空！")
    @JSONField(name = "diag_dr_name")
    private String diagDrName;

    @NotNull(message = "开始日期不能为空！")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date begndate;

    @NotNull(message = "结束日期不能为空！")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date enddate;

    /**
     * 慢特备案明细流水号
     * */
    private String trtDclaDetlSn;

    private String psnName;

    private String socialNo;
}
