package org.dromara.web.domain.vo;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.web.domain.ChargeRecord;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 收费记录视图对象 charge_record
 *
 * @author Lion Li
 * @date 2025-08-06
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = ChargeRecord.class)
public class ChargeRecordVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ExcelProperty(value = "主键ID")
    private Long id;

    /**
     * 处方id
     */
    @ExcelProperty(value = "处方id")
    private Long settlementId;

    /**
     * 开单时间
     */
    @ExcelProperty(value = "开单时间")
    private Date orderTime;

    /**
     * 看诊类型
     */
    @ExcelProperty(value = "看诊类型")
    private String visitType;

    /**
     * 收费类型
     */
    @ExcelProperty(value = "收费类型")
    private String chargeType;

    /**
     * 患者ID
     */
    @ExcelProperty(value = "患者ID")
    private Long patientId;

    /**
     * 患者姓名
     */
    @ExcelProperty(value = "患者姓名")
    private String patientName;

    /**
     * 患者科室
     */
    private Long doorId;

    @ExcelProperty(value = "患者科室")
    private String patientDepartment;

    /**
     * 门诊/住院号
     */
    @ExcelProperty(value = "门诊/住院号")
    private String patientNo;

    /**
     * 联系电话
     */
    @ExcelProperty(value = "联系电话")
    private String phone;

    /**
     * 身份证号
     */
    @ExcelProperty(value = "身份证号")
    private String idCard;

    /**
     * 订单金额
     */
    @ExcelProperty(value = "订单金额")
    private BigDecimal receivableAmount;

    /**
     * 实收金额
     */
    @ExcelProperty(value = "实收金额")
    private BigDecimal fundsReceived;

    /**
     * 退费金额
     */
    @ExcelProperty(value = "退费金额")
    private BigDecimal refundAmount;

    /**
     * 支付状态(未支付/已支付/已退款)
     */
    @ExcelProperty(value = "支付状态(未支付/已支付/已退款)")
    private String paymentStatus;

    /**
     * 支付方式
     */
    @ExcelProperty(value = "支付方式")
    private String paymentMethod;

    /**
     * 床号
     */
    @ExcelProperty(value = "床号")
    private String bedNo;

    /**
     * 退费时间
     */
    @ExcelProperty(value = "退费时间")
    private Date refundTime;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 病区
     */
    @ExcelProperty(value = "病区")
    private Long wardId;

    /**
     * 病区名称
     */
    @ExcelProperty(value = "病区名称")
    private String wardName;

    /**
     * 诊疗卡号
     */
    @ExcelProperty(value = "诊疗卡号")
    private String treatNum;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /*营养配置费用*/
    private BigDecimal prescriptionFee;

    private List<HospitalMealRecipeVo>hospitalMealRecipeList;

    /*肠内营养*/
    private List<EnteralNutritionVo> enteralNutritionList;
    /*营养筛查数据*/
    private List<NutritionScreeningVo> nutritionScreeningList;
    /*营养评估数据*/
    private List<NutritionEvaluationVo> nutritionEvaluationList;

    private List<ChargeRecordLogVo> recordLogList;

    private Date createTime;

}
