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

/**
 * 药物禁配标准：仅知识库同步维度（无发布/下架）。
 */
public final class DrugIncompatibilityStandardRules
{
    private DrugIncompatibilityStandardRules()
    {
    }

    public static boolean isValidKbSyncStatus(Integer kbSyncStatus)
    {
        return kbSyncStatus != null && (kbSyncStatus == 0 || kbSyncStatus == 1);
    }

    public static boolean canEdit(Integer kbSyncStatus)
    {
        return kbSyncStatus != null && kbSyncStatus == 0;
    }

    public static boolean canDelete(Integer kbSyncStatus)
    {
        return kbSyncStatus != null && kbSyncStatus == 0;
    }

    public static boolean canSyncKb(Integer kbSyncStatus)
    {
        return kbSyncStatus != null && kbSyncStatus == 0;
    }

    public static boolean canRemoveKb(Integer kbSyncStatus)
    {
        return kbSyncStatus != null && kbSyncStatus == 1;
    }
}
