package thyyxxk.webserver.entity.medicalinsurance.inpatient;

import lombok.Data;
import thyyxxk.webserver.utils.StringUtil;

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

/**
 * @description: 住院患者基本信息
 * @author: DingJie
 * @create: 2021-06-15 14:23:13
 **/
@Data
public class ZyPatientInfo {
    private String table = "zy_actpatient";
    private String sid;
    private String inpatientNo;
    private Integer admissTimes;
    private Integer ledgerSn;
    private Integer age;
    private String sex;
    private Date ybRegisterDate;
    private String referPhysician;
    private String referPhysicianName;
    private String smallDept;
    private String smallDeptName;
    private String socialNo;
    private String name;
    private String icdCode;
    private String totalCharge;
    private Date dismissDate;
    private String admissWard;
    private String admissDept;
    private String deptName;
    private String bedNo;
    private Integer dismissWay;
    private Boolean isDbg;
    private Boolean midSetl;
    private Date zjdzDatetime;
    private String staffId;
    private String admdvs;
    private String acctUsedFlag;

    private String psnNo;
    private String balc;
    private String insuplcAdmdvs;
    private String insuplcAdmdvsName;
    private String empName;
    private String medType;
    private String matnType;
    private String latechbFlag;
    private String pretFlag;
    private String psnType;
    private String insutype;
    private String mdtrtId;
    private String admRegMsgid;
    private String revokeRemark;

    private String mdtrtCertType;
    private String mdtrtCertNo;
    private String readCardResult;
    private String busCardInfo;
    private String readCardBizType;

    private Integer feeSize;

    private String zkWard;
    private String disWard;

    private Date admissDate;
    private Date disDate;

    List<Integer> detailSns;

    /**
     * 主治医生
     */
    private String consultPhysician;

    /**
     * 主任医生
     */
    private String deptDirector;
    private Boolean stopHere;

    public Boolean getDbg() {
        return null != isDbg && isDbg;
    }

    public Integer getAge() {
        return null == age ? 0 : age;
    }

    public String getBalc() {
        return StringUtil.isBlank(balc) ? "0" : balc;
    }

    public Boolean getMidSetl() {
        return null != midSetl && midSetl;
    }

    public Boolean getStopHere() {
        return null != stopHere && stopHere;
    }
}
