org.hisp.dhis.rules.models.RuleVariableNewestEvent Maven / Gradle / Ivy
package org.hisp.dhis.rules.models;
import com.google.auto.value.AutoValue;
import org.hisp.dhis.rules.Option;
import org.hisp.dhis.rules.RuleVariableValue;
import org.hisp.dhis.rules.RuleVariableValueMapBuilder;
import org.hisp.dhis.rules.Utils;
import javax.annotation.Nonnull;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static org.hisp.dhis.rules.Utils.getLastUpdateDate;
@AutoValue
public abstract class RuleVariableNewestEvent
extends RuleVariableDataElement
{
@Nonnull
public static RuleVariableNewestEvent create(@Nonnull String name,
@Nonnull String dataElement, @Nonnull RuleValueType dataElementValueType, boolean useCodeForOptionSet, List