package thyyxxk.webserver.entity.inpatient.patient;

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

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author dj
 */
@Data
public class Overview {
    private String bedNo;
    private String inpatientNo;
    private Integer admissTimes;
    private String name;
    private Integer sex;
    private String mdtrtId;
    private String injurySerialNo;
    private String medType;
    private String sid;
    private String staffId;
    private Integer ledgerSn;
    private Integer dismissOrder;
    // 以下部分中间断账费用上传用
    private Boolean midSetl;
    private Date begntime;
    private Date endtime;

    private Integer status;

    /**
     * 未确认的医嘱
     */
    private Integer orderNoCount;

    /**
     * 管床医生
     */
    private String referPhysician;
    private String referPhysicianName;

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

    /**
     * 主任医生
     */
    private String deptDirector;
    private String deptDirectorName;

    /**
     * 总费用
     */
    private BigDecimal totalCharge;
    /**
     * 余额
     */
    private BigDecimal balance;
    /**
     * 入院诊断
     */
    private String admissDiag;
    private String admissDiagStr;
    /**
     * 临床诊断
     */
    private String clinicDiagStr;
    /**
     * 医保身份
     */
    private String responceTypeName;

    private Date admissDate;

    private String zkys;
    private String zkysName;

    public Integer getStatus() {
        if (StringUtil.notBlank(mdtrtId) || StringUtil.notBlank(injurySerialNo)) {
            return 1;
        }
        return 0;
    }
}
