package org.dromara.system.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.system.domain.NutritionEvaluation;
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 java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 营养评估视图对象 nutrition_evaluation
 *
 * @author Lion Li
 * @date 2025-07-17
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = NutritionEvaluation.class)
public class NutritionEvaluationVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

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

    /**
     * 营养评估类型
     */
    @ExcelProperty(value = "营养评估类型")
    private Long configId;

    private String configName;

    /**
     * 筛查时间
     */
    @ExcelProperty(value = "筛查时间")
    private Date screeningTime;

    /**
     * 看诊类型（0门诊 1住院）
     */
    @ExcelProperty(value = "看诊类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=门诊,1=住院")
    private String visitType;

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

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

    /**
     * 内容
     */
    @ExcelProperty(value = "内容")
    private String content;

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

    private Long createBy;

    private String createByName;
}
