package com.fufan.mtsaas.modules.unsafeevent.baqsjrecorduntowardeffect.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_untowardeffect")
public class BaqsjRecordUntowardeffect 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 eventClass;
    @ApiModelProperty(value = "住院号")
    private String patientNo;
    @ApiModelProperty(value = "患者姓名")
    private String patientName;
    @ApiModelProperty(value = "年龄")
    private Integer patientAge;
    @ApiModelProperty(value = "出生年月")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthDate;
    @ApiModelProperty(value = "性别")
    private String patientSex;
    @ApiModelProperty(value = "民族")
    private String nation;
    @ApiModelProperty(value = "体重")
    private Integer weight;
    @ApiModelProperty(value = "联系方式")
    private String contactNo;
    @ApiModelProperty(value = "目前用药情况")
    private String currentDrug;
    @ApiModelProperty(value = "既往药品不良反应/事件:0-不详,1-无,2-有")
    private Integer passedDruggery;
    @ApiModelProperty(value = "家族药品不良反应/事件:0-不详,1-无,2-有")
    private Integer familyDruggery;
    @ApiModelProperty(value = "相关重要信息：320-吸烟史,321-饮酒史,322-妊娠期,323-肝病史,324-肾病史,325-过敏史,326-其它")
    private String relatedImportance;
    @ApiModelProperty(value = "相关重要信息其它说明")
    private String relatedImportanceOther;
    @ApiModelProperty(value = "患者目前情况:0-无伤害,1-表皮损伤、扭伤等,2-器官，功能受损，不造成永久伤害,3-死亡,4-目前难以判断")
    private Integer patientStatus;
    @ApiModelProperty(value = "附件")
    private String attachedFiles;
    @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;

}
