package org.dromara.system.domain.vo;

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

import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.system.domain.NutritionScreening;
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_screening
 *
 * @author Lion Li
 * @date 2025-07-14
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = NutritionScreening.class)
public class NutritionScreeningVo 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;

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

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

    /**
     * 营养筛查分数
     */
    @ExcelProperty(value = "营养筛查分数")
    private BigDecimal screeningScore;

    /**
     * 营养筛查结论
     */
    @ExcelProperty(value = "营养筛查结论")
    private String screeningConclusion;

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

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

    private String content;

    private Long createBy;

    private String createByName;
}
