All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.linuxforhealth.api.EvaluationResult Maven / Gradle / Ivy

Go to download

FHIR converter is a Java based library that enables converting Hl7v2 messages to FHIR resources

There is a newer version: 1.0.19
Show newest version
/*
 * (C) Copyright IBM Corp. 2020, 2021
 *
 * SPDX-License-Identifier: Apache-2.0
 */
package io.github.linuxforhealth.api;

import java.util.List;

/**
 * Represents value returned after the expression is evaluated.
 * 
 *
 * @author pbhallam
 */
public interface EvaluationResult {

    /**
     * Value generated after the evaluation or an resource or an expression
     * 
     * @param  The value to be evaluated
     * 
     * @return V The returned value
     */
     V getValue();

    /**
     * Get name/identifier for the return value;
     * 
     * @return String
     */
    String getIdentifier();

    /**
     * Class type of the value
     * 
     * @return Class type of the value
     */
    Class getValueType();

    /**
     * If the value is empty return true.
     * 
     * @return True if the value is null or empty
     */
    boolean isEmpty();

    /**
     * Additional resources generated during evaluation or an resource or an expression
     * 
     * @return List of {@link ResourceValue}
     */
    List getAdditionalResources();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy