package com.fufan.mtsaas.modules.unsafeevent.baqsjrecordproperty.model;

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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;

/**
 * 不安全事件属性表
 *
 * @author Liby
 * @date 2025-02-18
 */
@Data
@ApiModel(description = "不安全事件属性表")
@TableName("baqsj_record_property")
public class BaqsjRecordProperty implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    @ApiModelProperty(value = "事件明细ID")
    private Long id;
    @ApiModelProperty(value = "事件记录ID")
    private Long eventId;
    @ApiModelProperty(value = "当事人：0-特定患者;1-非特定患者")
    private Integer partyType;
    @ApiModelProperty(value = "是否需紧急通知：0-是,1-否")
    private Integer isEmergence;
    @ApiModelProperty(value = "事件概要")
    private String eventAbstract;
    @ApiModelProperty(value = "当事性质：0-实际发送，1-隐患临差")
    private Integer eventClass;
    @ApiModelProperty(value = "住院号")
    private String patientNo;
    @ApiModelProperty(value = "患者姓名")
    private String patientName;
    @ApiModelProperty(value = "年龄")
    private Integer patientAge;
    @ApiModelProperty(value = "性别")
    private String patientSex;
    @ApiModelProperty(value = "病区")
    private String wardName;
    @ApiModelProperty(value = "床号")
    private String bedNo;
    @ApiModelProperty(value = "入院时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date inTime;
    @ApiModelProperty(value = "当前诊断")
    private String currentDiagnosis;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @ApiModelProperty(value = "创建人")
    private String createBy;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    @ApiModelProperty(value = "更新人")
    private String updateBy;

}
