package thyyxxk.webserver.entity.inpatient.inpatientcost;

import java.io.Serializable;

import lombok.Data;

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

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

@Data
@TableName(value = "zy_detail_charge")
public class ZyDetailChargeTable implements Serializable {

    private static final long serialVersionUID = 8458093229289020697L;

    /**
     * 住院号
     */
    @TableField(value = "inpatient_no")
    private String inpatientNo;

    /**
     * 住院次数
     */
    @TableField(value = "admiss_times")
    private Integer admissTimes;

    /**
     * 账页码，在表select isnull(max(ledger_sn),1)  from zy_ledger_file where inpatient_no = ？ and admiss_times = ？这样获取
     */
    @TableField(value = "ledger_sn")
    private Integer ledgerSn;

    /**
     * 流水号，select isnull(max(detail_sn),0) from zy_detail_charge where inpatient_no=? and admiss_times=?
     */
    @TableField(value = "detail_sn")
    private Integer detailSn;

    /**
     * 收费日期
     */
    @TableField(value = "charge_date")
    private Date chargeDate;

    /**
     * opIdCode
     */
    @TableField(value = "op_id_code")
    private String opIdCode;

    /**
     * 收费编码，项目时和charge_code_mx一致，药品不一样。
     */
    @TableField(value = "charge_code")
    private String chargeCode;

    /**
     * 婴儿标志
     */
    @TableField(value = "infant_flag")
    private String infantFlag;

    /**
     * chargeStatus
     */
    @TableField(value = "charge_status")
    private String chargeStatus;

    /**
     * retprice
     */
    @TableField(value = "retprice")
    private BigDecimal retprice;

    /**
     * 费用 数量
     */
    @TableField(value = "charge_amount")
    private BigDecimal chargeAmount;

    /**
     * 费用 金额
     */
    @TableField(value = "charge_fee")
    private BigDecimal chargeFee;

    /**
     * selfFlag
     */
    @TableField(value = "self_flag")
    private String selfFlag;

    /**
     * separateFlag
     */
    @TableField(value = "separate_flag")
    private String separateFlag;

    /**
     * suppressFlag
     */
    @TableField(value = "suppress_flag")
    private String suppressFlag;

    /**
     * 患者的病区
     */
    @TableField(value = "ward_code")
    private String wardCode;

    /**
     * 申请科室，（取患者的科室入院科室  admissDept）
     */
    @TableField(value = "dept_code")
    private String deptCode;

    /**
     * 医嘱号 0-住院费用，3-医技费用，6-门诊转入费用，长度大于2就是医嘱号了。
     */
    @TableField(value = "order_no")
    private BigDecimal orderNo;

    /**
     * opeFlag
     */
    @TableField(value = "ope_flag")
    private String opeFlag;

    /**
     * 执行科室，这个项目是哪个科室执行的。
     */
    @TableField(value = "exec_unit")
    private String execUnit;

    /**
     * 费用执行时间
     */
    @TableField(value = "gen_time")
    private Date genTime;

    /**
     * payPercent
     */
    @TableField(value = "pay_percent")
    private BigDecimal payPercent;

    /**
     * zjFlag
     */
    @TableField(value = "zj_flag")
    private String zjFlag;

    /**
     * zfl
     */
    @TableField(value = "zfl")
    private BigDecimal zfl;

    /**
     * 收费编码明细，查询编码以这个为准。
     */
    @TableField(value = "charge_code_mx")
    private String chargeCodeMx;

    /**
     * 00 | null-项目， 01 - 小包装药品 09 - 大包装药品
     */
    @TableField(value = "serial")
    private String serial;

    /**
     * 住院流水号
     */
    @TableField(value = "zy_serial_no")
    private String zySerialNo;

    /**
     * 医生编码
     */
    @TableField(value = "doctor_code")
    private String doctorCode;

    /**
     * ybSelfFlag
     */
    @TableField(value = "yb_self_flag")
    private String ybSelfFlag;

    /**
     * origChargeFee
     */
    @TableField(value = "orig_charge_fee")
    private BigDecimal origChargeFee;

    /**
     * confirmId
     */
    @TableField(value = "confirm_id")
    private String confirmId;

    /**
     * transFlagYb
     */
    @TableField(value = "trans_flag_yb")
    private String transFlagYb;

    /**
     * 手术编码
     */
    @TableField(value = "ss_code")
    private String ssCode;

    /**
     * gsFlag
     */
    @TableField(value = "gs_flag")
    private String gsFlag;

    /**
     * referPhysician
     */
    @TableField(value = "refer_physician")
    private String referPhysician;

    /**
     * consultPhysician
     */
    @TableField(value = "consult_physician")
    private String consultPhysician;

    /**
     * 原退费流水号
     */
    @TableField(value = "ori_detail_sn")
    private Integer oriDetailSn;

    /**
     * hospApprFlag
     */
    @TableField(value = "hosp_appr_flag")
    private String hospApprFlag;

    /**
     * 药品的类型，在生成药单时使用
     */
    @TableField(exist = false)
    private String drugClass;

}
