package com.ann.demo.primaryEntity;

import lombok.Data;

import javax.persistence.*;
import java.util.Date;


@Data
@Entity
@Table(name = "Scanning_File")
public class ScanningFile {
    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    @Column(name = "id")
    private String id;

    //住院号
    @Column(name = "FBIHID")
    private String inpNo;

    //住院次数
    @Column(name = "FBINCU")
    private String visitId;

    //患者ID
    @Column(name = "FMRDID")
    private String patientId;

    //0代表 未处理，1代表已处理 2代表失败
    @Column(name = "STATUS")
    private String status;

    //身份证
    @Column(name = "FIDCD")
    private String idCard;

    //入院科室
    @Column(name = "FIOFFI")
    private String admissDept;

    //住院医师
    @Column(name = "FZYYS")
    private String admissDoctor;

    //出院科室
    @Column(name = "FOOFFI")
    private String disDept;

    //主治医师
    @Column(name = "FZZYS")
    private String attending;

    //出生日期
    @Column(name = "FBDATE")
    private Date birthday;

    //出院日期
    @Column(name = "FODATE")
    private Date disDate;

    //入院日期
    @Column(name = "FIHDAT")
    private Date admissDate;

    //性别
    @Column(name = "FSEX")
    private String sex;

    //年龄
    @Column(name = "FAGE")
    private Integer age;

    //备注
    @Column(name = "FREMARK")
    private String remark;

    //申请单号唯一值
    @Column(name = "FRECORDID")
    private String applyId;

    //路径
    @Column(name = "FPATH1")
    private String path;

    //姓名
    @Column(name = "FNAME")
    private String name;

    //文件名称
    @Column(name = "FILENAME")
    private String fileName;

    // 需要处理
    @Column(name = "FFILENAME")
    private String number;

    //类型
    @Column(name = "FLDM")
    private String assortId;


}
