package thyyxxk.webserver.entity.inpatient.patient;

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

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;

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