Class CqlBuilder
- java.lang.Object
-
- org.linuxforhealth.fhir.cql.helpers.CqlBuilder
-
public class CqlBuilder extends java.lang.Object
This is a very rudimentary attempt at providing an interface for code to build CQL on the fly. There is a lot more to the CQL grammar than what is supported here, but this hits the high points.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
build()
static CqlBuilder
builder()
CqlBuilder
context(java.lang.String context)
CqlBuilder
expression(java.lang.String exprName, java.lang.String exprValue)
CqlBuilder
include(java.lang.String libName)
CqlBuilder
include(java.lang.String libName, java.lang.String version)
CqlBuilder
includes(java.lang.String libName, java.lang.String version, java.lang.String alias)
CqlBuilder
library(java.lang.String name)
CqlBuilder
library(java.lang.String name, java.lang.String version)
CqlBuilder
parameter(java.lang.String paramName, java.lang.String type)
CqlBuilder
parameter(java.lang.String paramName, java.lang.String type, java.lang.String defaultValue)
CqlBuilder
using(java.lang.String model)
CqlBuilder
using(java.lang.String model, java.lang.String version)
CqlBuilder
valueset(java.lang.String vsId, java.lang.String externalRef)
-
-
-
Method Detail
-
builder
public static CqlBuilder builder()
-
library
public CqlBuilder library(java.lang.String name)
-
library
public CqlBuilder library(java.lang.String name, java.lang.String version)
-
using
public CqlBuilder using(java.lang.String model)
-
using
public CqlBuilder using(java.lang.String model, java.lang.String version)
-
include
public CqlBuilder include(java.lang.String libName)
-
include
public CqlBuilder include(java.lang.String libName, java.lang.String version)
-
includes
public CqlBuilder includes(java.lang.String libName, java.lang.String version, java.lang.String alias)
-
parameter
public CqlBuilder parameter(java.lang.String paramName, java.lang.String type)
-
parameter
public CqlBuilder parameter(java.lang.String paramName, java.lang.String type, java.lang.String defaultValue)
-
valueset
public CqlBuilder valueset(java.lang.String vsId, java.lang.String externalRef)
-
context
public CqlBuilder context(java.lang.String context)
-
expression
public CqlBuilder expression(java.lang.String exprName, java.lang.String exprValue)
-
build
public java.lang.String build()
-
-