package com.ruoyi.web.work.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * 就诊记录
 */
@Data
@TableName(value = "tb_visit")
@Accessors(chain = true)
public class Visit{

    private Long id;
    @ApiModelProperty(value = "患者ID")
    private Long patId;
    @ApiModelProperty(value = "就诊卡号")
    private Long cardId;

    @ApiModelProperty(value = "部门id")
    private Long deptId;

    @ApiModelProperty(value = "患者分类")
    private String patClass;

    @ApiModelProperty(value = "科室Code")
    private String deptCode;

    @ApiModelProperty(value = "科室")
    private String department;
    @ApiModelProperty(value = "床位")
    private String bed;
    @ApiModelProperty(value = "医生代码")
    private String doctorCode;
    @ApiModelProperty(value = "主治医师")
    private String physician;
    @ApiModelProperty(value = "主管护士代码")
    private String nurseCode;
    @ApiModelProperty(value = "入院次数")
    private String hospitalizedNumber;
    @ApiModelProperty(value = "收费类别")
    private String feeCategory;
    @ApiModelProperty(value = "出院方式")
    private String dischargeMethod;
    @ApiModelProperty(value = "医疗机构代码")
    private String medicalCode;
    @ApiModelProperty(value = "在院状态")
    private String hospitalStatus;
    @ApiModelProperty(value = "门诊挂号状态")
    private String registrationStatus;
    @ApiModelProperty(value = "入院时间")
    private String admissionTime;
    @ApiModelProperty(value = "出院时间")
    private String dischargeTime;

    @ApiModelProperty(value = "危重级别:0-一般病人1-危重病人")
    private String level;

    @ApiModelProperty(value = "出区原因")
    private String reasonArea;

    @ApiModelProperty(value = "病区代码")
    private String wardCode;

    @ApiModelProperty(value = "病区名称")
    private String wardName;

    @ApiModelProperty(value = "入区时间")
    private String entryTime;

    @ApiModelProperty(value = "出区时间")
    private String exitTime;

    @ApiModelProperty(value = "婴儿信息标识：Y-是 N-否")
    private String babyCode;

    @TableField(exist = false)
    private String startTime;//开始时间

    @TableField(exist = false)
    private String endTime;//结束时间

//    private String createBy;  //创建人
//    @TableField(fill = FieldFill.INSERT)
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    private Data createTime;  //创建时间
//    private String updateBy;  //更新人
//    @TableField(fill = FieldFill.UPDATE)
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    private Data updateTime;  //更新时间

    @TableField(exist = false)
    private List<Patient> patients;

}
