org.opencds.cqf.cql.engine.terminology.TerminologyProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of engine Show documentation
Show all versions of engine Show documentation
The engine library for the Clinical Quality Language Java reference implementation
The newest version!
package org.opencds.cqf.cql.engine.terminology;
import org.opencds.cqf.cql.engine.runtime.Code;
public interface TerminologyProvider {
/**
* Checks if a given Code is a member of a given ValueSetInfo
* @param code the code to check
* @param valueSet the valueSet to check
* @return true if code is a member of the ValueSet
*/
boolean in(Code code, ValueSetInfo valueSet);
/**
* Expands the set of Codes for a given ValueSetInfo
* @param valueSet the ValueSetInfo to expand
* @return the set of Codes
*/
Iterable expand(ValueSetInfo valueSet);
/**
* Looks up the display value for a given Code from a given CodeSystemInfo
* @param code the Code to look up
* @param codeSystem the CodeSystemInfo to look up from
* @return the Code with the display value filled
*/
Code lookup(Code code, CodeSystemInfo codeSystem);
}