package thyyxxk.webserver.entity.dictionary.pathwayTemplates.dto;

import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "clinical_pathway_order")
public class ClinicalPathwayOrder implements Serializable {

    private static final long serialVersionUID = 5467512206939846470L;

    /**
     * id
     */
    @TableId
    private String id;

    /**
     * 工作内容id
     */
    @TableField(value = "work_id")
    private String workId;

    /**
     * 医嘱编码
     */
    @TableField(value = "order_code")
    private String orderCode;

    /**
     * 执行频率
     */
    @TableField(value = "frequ_code")
    private String frequCode;

    /**
     * 药品标志
     */
    @TableField(value = "drug_flag")
    private String drugFlag;

    /**
     * 给药方式
     */
    @TableField(value = "supply_code")
    private String supplyCode;

    /**
     * 一次剂量
     */
    @TableField(value = "drug_quan")
    private BigDecimal drugQuan;

    /**
     * 嘱托
     */
    @TableField(value = "instruction")
    private String instruction;

    /**
     * 规格
     */
    @TableField(value = "specification")
    private String specification;

    /**
     * 最小单位
     */
    @TableField(value = "mini_unit")
    private String miniUnit;

    /**
     * 药品的重量
     */
    @TableField(value = "drug_weight")
    private BigDecimal drugWeight;

    /**
     * 药品的重量单位
     */
    @TableField(value = "drug_weight_unit")
    private String drugWeightUnit;

    /**
     * 父医嘱
     */
    @TableField(value = "parent_no")
    private String parentNo;

    /**
     * 药品的卷大小
     */
    @TableField(value = "drug_volume")
    private BigDecimal drugVolume;

    /**
     * 单位
     */
    @TableField(value = "drug_vol_unit")
    private String drugVolUnit;

    /**
     * 一次剂量
     */
    @TableField(value = "dose")
    private BigDecimal dose;

    /**
     * 剂量单位
     */
    @TableField(value = "dose_unit")
    private String doseUnit;

    /**
     * 医嘱名称
     */
    @TableField(value = "order_name")
    private String orderName;

    /**
     * 00 项目 01 小包装 99 大包装
     */
    @TableField(value = "serial")
    private String serial;

    /**
     * 执行科室
     */
    @TableField(value = "exec_unit")
    private String execUnit;

    /**
     * 0-医嘱  1-检验 2-检查
     */
    @TableField(value = "type")
    private Integer type;

    @TableField(value = "drug_occ")
    private BigDecimal drugOcc;

    /**
     * 执行几天
     */
    @TableField(value = "exec_day")
    private Integer execDay;

    public static LambdaQueryWrapper<ClinicalPathwayOrder> lambdaQueryWrapper() {
        return new LambdaQueryWrapper<>();
    }

    public static QueryWrapper<ClinicalPathwayOrder> queryWrapper() {
        return new QueryWrapper<>();
    }


}
