public class LiquidEngine extends Object implements FHIRPathEngine.IEvaluationContext
| Modifier and Type | Class and Description |
|---|---|
static interface |
LiquidEngine.ILiquidEngineIcludeResolver |
static class |
LiquidEngine.LiquidDocument |
FHIRPathEngine.IEvaluationContext.FunctionDetails| Constructor and Description |
|---|
LiquidEngine(IWorkerContext context,
FHIRPathEngine.IEvaluationContext hostServices) |
| Modifier and Type | Method and Description |
|---|---|
TypeDetails |
checkFunction(Object appContext,
String functionName,
List<TypeDetails> parameters)
Check the function parameters, and throw an error if they are incorrect, or return the type for the function
|
boolean |
conformsToProfile(Object appContext,
Base item,
String url) |
String |
evaluate(LiquidEngine.LiquidDocument document,
Resource resource,
Object appContext) |
List<Base> |
executeFunction(Object appContext,
List<Base> focus,
String functionName,
List<List<Base>> parameters) |
LiquidEngine.ILiquidEngineIcludeResolver |
getIncludeResolver() |
boolean |
log(String argument,
List<Base> focus)
when the .log() function is called
|
LiquidEngine.LiquidDocument |
parse(String source,
String sourceName) |
Base |
resolveConstant(Object appContext,
String name,
boolean beforeContext)
A constant reference - e.g.
|
TypeDetails |
resolveConstantType(Object appContext,
String name) |
FHIRPathEngine.IEvaluationContext.FunctionDetails |
resolveFunction(String functionName) |
Base |
resolveReference(Object appContext,
String url)
Implementation of resolve() function.
|
ValueSet |
resolveValueSet(Object appContext,
String url) |
void |
setIncludeResolver(LiquidEngine.ILiquidEngineIcludeResolver includeResolver) |
public LiquidEngine(IWorkerContext context, FHIRPathEngine.IEvaluationContext hostServices)
public LiquidEngine.ILiquidEngineIcludeResolver getIncludeResolver()
public void setIncludeResolver(LiquidEngine.ILiquidEngineIcludeResolver includeResolver)
public LiquidEngine.LiquidDocument parse(String source, String sourceName) throws org.hl7.fhir.exceptions.FHIRException
org.hl7.fhir.exceptions.FHIRExceptionpublic String evaluate(LiquidEngine.LiquidDocument document, Resource resource, Object appContext) throws org.hl7.fhir.exceptions.FHIRException
org.hl7.fhir.exceptions.FHIRExceptionpublic Base resolveConstant(Object appContext, String name, boolean beforeContext) throws org.hl7.fhir.exceptions.PathEngineException
FHIRPathEngine.IEvaluationContextresolveConstant in interface FHIRPathEngine.IEvaluationContextappContext - - content passed into the fluent path enginename - - name reference to resolvebeforeContext - - whether this is being called before the name is resolved locally, or notorg.hl7.fhir.exceptions.PathEngineExceptionpublic TypeDetails resolveConstantType(Object appContext, String name) throws org.hl7.fhir.exceptions.PathEngineException
resolveConstantType in interface FHIRPathEngine.IEvaluationContextorg.hl7.fhir.exceptions.PathEngineExceptionpublic boolean log(String argument, List<Base> focus)
FHIRPathEngine.IEvaluationContextlog in interface FHIRPathEngine.IEvaluationContextpublic FHIRPathEngine.IEvaluationContext.FunctionDetails resolveFunction(String functionName)
resolveFunction in interface FHIRPathEngine.IEvaluationContextpublic TypeDetails checkFunction(Object appContext, String functionName, List<TypeDetails> parameters) throws org.hl7.fhir.exceptions.PathEngineException
FHIRPathEngine.IEvaluationContextcheckFunction in interface FHIRPathEngine.IEvaluationContextorg.hl7.fhir.exceptions.PathEngineExceptionpublic List<Base> executeFunction(Object appContext, List<Base> focus, String functionName, List<List<Base>> parameters)
executeFunction in interface FHIRPathEngine.IEvaluationContextpublic Base resolveReference(Object appContext, String url) throws org.hl7.fhir.exceptions.FHIRException
FHIRPathEngine.IEvaluationContextresolveReference in interface FHIRPathEngine.IEvaluationContexturl - the reference (Reference.reference or the value of the canonicalorg.hl7.fhir.exceptions.FHIRExceptionpublic boolean conformsToProfile(Object appContext, Base item, String url) throws org.hl7.fhir.exceptions.FHIRException
conformsToProfile in interface FHIRPathEngine.IEvaluationContextorg.hl7.fhir.exceptions.FHIRExceptionpublic ValueSet resolveValueSet(Object appContext, String url)
resolveValueSet in interface FHIRPathEngine.IEvaluationContextCopyright © 2014–2021 Health Level 7. All rights reserved.