package com.ruoyi.web.modules.architecture.domain;

import java.util.List;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 药物禁配标准主表 biz_drug_incompatibility_standard（含子表列表用于读写）
 */
public class BizDrugIncompatibilityStandard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long id;

    @NotBlank(message = "主药名称不能为空")
    @Size(min = 1, max = 20, message = "主药名称长度为1到20个字符")
    private String mainDrugName;

    @Size(max = 50, message = "配伍结果不能超过50个字符")
    private String compatResult;

    /** 0 未同步 1 已同步 */
    private Integer kbSyncStatus;

    private String kbDocId;

    /** 列表：仅 main_drug_name 模糊 */
    private String keyword;

    /** 列表：子表条数（SQL 填充） */
    private Integer companionCount;

    @NotEmpty(message = "配伍药物至少一条")
    @Valid
    private List<BizDrugIncompatibilityCompanion> companions;

    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public String getMainDrugName()
    {
        return mainDrugName;
    }

    public void setMainDrugName(String mainDrugName)
    {
        this.mainDrugName = mainDrugName;
    }

    public String getCompatResult()
    {
        return compatResult;
    }

    public void setCompatResult(String compatResult)
    {
        this.compatResult = compatResult;
    }

    public Integer getKbSyncStatus()
    {
        return kbSyncStatus;
    }

    public void setKbSyncStatus(Integer kbSyncStatus)
    {
        this.kbSyncStatus = kbSyncStatus;
    }

    public String getKbDocId()
    {
        return kbDocId;
    }

    public void setKbDocId(String kbDocId)
    {
        this.kbDocId = kbDocId;
    }

    public String getKeyword()
    {
        return keyword;
    }

    public void setKeyword(String keyword)
    {
        this.keyword = keyword;
    }

    public Integer getCompanionCount()
    {
        return companionCount;
    }

    public void setCompanionCount(Integer companionCount)
    {
        this.companionCount = companionCount;
    }

    public List<BizDrugIncompatibilityCompanion> getCompanions()
    {
        return companions;
    }

    public void setCompanions(List<BizDrugIncompatibilityCompanion> companions)
    {
        this.companions = companions;
    }
}
