package com.fufan.mtsaas.modules.unsafeevent.baqsjrecordwrongdrug.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_wrongdrug")
public class BaqsjRecordWrongdrug 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 = "给药类型：330-口服，331-肌内注射,332-皮下注射，333-静脉注射，334-吸入剂，335-外用药，336-其他")
    private String doseType;
    @ApiModelProperty(value = "给药类型其他说明")
    private String doseTypeOther;
    @ApiModelProperty(value = "发生阶段：341-医嘱开具错误,342-医嘱输入错误,343-药房调剂错误,344-传送过程错误,345-给药阶段错误,346-其他")
    private String concurrentPhase;
    @ApiModelProperty(value = "发生阶段其他说明")
    private String concurrentPhaseOther;
    @ApiModelProperty(value = "差错项目：351-药名,352-途径,353-剂型,354-频率,355-病人,356-时间,357-多种药物交叉作用,358-开具不适用病人病情的药物(如造成病人过敏的药物、药物不符病情或具有禁忌症),359-给药顺序错误,360-错误速率,361-其他")
    private String wrongProject;
    @ApiModelProperty(value = "差错项目其他说明")
    private String wrongProjectOther;
    @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;

}
