package thyyxxk.webserver.entity.zhuyuanyisheng.patientClinicalPathway.dto;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

import java.util.Date;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

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

    private static final long serialVersionUID = 6756526320542447827L;

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

    /**
     * 住院号
     */
    @TableField(value = "pat_no")
    private String patNo;

    /**
     * 住院次数
     */
    @TableField(value = "times")
    private Integer times;

    /**
     * 选中的临床路径id
     */
    @TableField(value = "template_id")
    private String templateId;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT, value = "create_time")
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT, value = "create_code")
    private String createCode;

    /**
     * 0-入径 1-出径 2-变异 3-完成
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * updateCode
     */
    @TableField(fill = FieldFill.UPDATE, value = "update_code")
    private String updateCode;

    /**
     * updateTime
     */
    @TableField(fill = FieldFill.UPDATE, value = "update_time")
    private Date updateTime;

    /**
     * 出径-变异的理由
     */
    @TableField(value = "reason")
    private String reason;

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

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


}
