package com.ruoyi.web.work.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.experimental.Accessors;
/**
 * @author lmx
 * @date 2024-07-22
 */
@Data
@TableName(value = "tb_patient")
@Accessors(chain = true)
public class Patient{
    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty(value = "卫宁患者ID")
    private String patId;

    @ApiModelProperty(value = "患者标识符")
    private String patientCode;

    @ApiModelProperty(value = "患者姓名")
    private String name;

    @ApiModelProperty(value = "出生时间")
    private String birthDate;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "患者地址")
    private String address;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "工作电话")
    private String workPhone;

    @ApiModelProperty(value = "婚姻状况")
    private String marital;

    @ApiModelProperty(value = "民族")
    private String nation;

    @ApiModelProperty(value = "职业")
    private String career;

    @ApiModelProperty(value = "国籍")
    private String nationality;

    @ApiModelProperty(value = "事件触发时间")
    private String eventTime;

    @ApiModelProperty(value = "住院业务类型：(1入院登记 2入区登记 3转区接收(出A区后入B区) 4转科转床接收(同科室换床) 5出区 6出区召回 7出院 8取消出院 9新生儿登记 10修改病人信息 门诊业务类型： 1患者建卡 2修改病人信息 3门诊挂号 4取消挂号 5就诊结束)")
    private String eventType;

    @ApiModelProperty(value = "病历号")
    private String blh;

    @ApiModelProperty(value = "病人卡号")
    private String brkh;

    @ApiModelProperty(value = "身份证号")
    private String sfzh;

    @ApiModelProperty(value = "婴儿序号")
    private String yexh;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;


    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    @TableField(fill = FieldFill.UPDATE)
    private String updateBy;


    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty(value = "消息体主表ID")
    private String msgType;


}
