package org.dromara.system.domain.bo;

import org.dromara.system.domain.NutritionScreening;
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 java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 营养筛查业务对象 nutrition_screening
 *
 * @author Lion Li
 * @date 2025-07-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = NutritionScreening.class, reverseConvertGenerate = false)
public class NutritionScreeningBo extends BaseEntity {

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

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

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

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

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

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

    /**
     * 营养筛查分数
     */
    private BigDecimal screeningScore;

    /**
     * 营养筛查结论
     */
    private String screeningConclusion;

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

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

    private String content;
}
