package cn.hnthyy.thmz.entity.his.mz;

import cn.hnthyy.thmz.Utils.DateUtil;
import lombok.Data;

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

/**
 * 门诊挂号记录
 */
@Data
public class MzyReqrec implements Serializable {
    //病人ID码 门诊号
    private String patientId;
    //门诊挂号次数
    private Integer times;
    //病人名
    private String name;
    //预约类别
    private String reqType;
    //门诊挂号日期
    private Date requestDay;
    //上午/下午(a/p)
    private String ampm;
    //科室编号
    private String unitCode;
    //组
    private String groupCode;
    //医生编码
    private String doctorCode;
    //号别
    private String chargeType;
    //预约顺序
    private Integer reqOrder;
    //挂号费
    private BigDecimal reqFee;
    //其他费用
    private BigDecimal othFee;
    //退号标志
    private Integer cancelMark;
    //预约时间
    private Date admissTime;
    //操作员代码
    private String opId;
    //发生日期
    private Date opDay;
    //诊查费
    private BigDecimal clinicFee;
    //加号标志,1加号,0普通
    private Integer plusMark;
    //就诊标志,1已就诊,0未接诊
    private Integer visitedMark;
    //结帐日期
    private Date closingDate;
    //发票打印人id
    private String printerId;
    //借用为全免标志:1:全免
    private String printFlag;
    //挂号窗口
    private Integer windowsNo;
    //流水号
    private Integer serialNo;
    //发票号
    private String receiptBill;
    //财务结算状态 已结帐 1 是  0 否
    private Integer dcountNo;
    //工本费
    private BigDecimal brochureFee;
    //
    private String  deptNo;
    //就诊科室
    private String  visitDept;
    //就诊医生
    private String  visitDoctor;
    //就诊日期
    private Date  visitDate;
    //付款方式
    private String paymode;
    //订单号
    private String psordnum;
    //流水号
    private String agtordnum;
    //发票结算状态 已结帐 1 是  0 否
    private Integer printDcountNo;
    //发票结帐日期
    private Date printClosingDate;
    //挂号日期字符串格式  yyyy-MM-dd 格式
    private String requestDayStr;

    //判断当前病人是否可以重复挂号 1 可以  0 不可以
    private Integer canRepeatedly;

    public void setRequestDay(Date requestDay) {
        this.requestDay = requestDay;
        if(requestDay!=null){
            requestDayStr=DateUtil.fomart(requestDay,"yyyy-MM-dd");
        }
    }
}
