package com.fufan.mtsaas.modules.unsafeevent.baqsjrecordmedicalinstrument.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_medicalinstrument")
public class BaqsjRecordMedicalinstrument implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    @ApiModelProperty(value = "事件明细ID")
    private Long id;
    @ApiModelProperty(value = "事件记录ID")
    private Long eventId;
    @ApiModelProperty(value = "预期治疗疾病或作用")
    private String correctDrug;
    @ApiModelProperty(value = "给错药物")
    private String wrongDrug;
    @ApiModelProperty(value = "使用场所：370-医疗机构,371-家庭，372-其他")
    private String usingLocale;
    @ApiModelProperty(value = "使用场所其他说明")
    private String usingLocaleOther;
    @ApiModelProperty(value = "场所名称")
    private String localeName;
    @ApiModelProperty(value = "器械使用日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date usingDate;
    @ApiModelProperty(value = "事件陈述")
    private String eventDescription;
    @ApiModelProperty(value = "合并用药/械情况")
    private String mergedStatus;
    @ApiModelProperty(value = "设备编码")
    private String instrumentCode;
    @ApiModelProperty(value = "设备文件图片")
    private String instrumentFile;
    @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;

}
