package org.dromara.web.domain.bo;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.web.domain.NutritionEvaluation;

import java.util.Date;

/**
 * 营养评估业务对象 nutrition_evaluation
 *
 * @author Lion Li
 * @date 2025-07-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = NutritionEvaluation.class, reverseConvertGenerate = false)
public class NutritionEvaluationBo extends BaseEntity {

    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 结算管理id
     */
    private Long settlementId;

    /**
     * 患者ID
     */
    @NotNull(message = "患者不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long patientId;

    /**
     * 营养评估类型
     */
    @NotNull(message = "营养评估类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long configId;

    /**
     * 筛查时间
     */
    private Date screeningTime;

    /**
     * 看诊类型（0门诊 1住院）
     */
    @NotBlank(message = "看诊类型（0门诊 1住院）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String visitType;

    /**
     * 门诊/住院号
     */
    @NotBlank(message = "门诊/住院号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String patientNo;

    /**
     * 支付状态(未支付/已支付/已退款)
     */
    private String paymentStatus;

    /**
     * 内容
     */
    private String content;

    /**
     * 状态（0正常 1停用）
     */
    private String status;


}
