Package org.hl7.fhir.dstu3.fhirpath
Interface FHIRPathEngine.IEvaluationContext
- Enclosing class:
FHIRPathEngine
public static interface FHIRPathEngine.IEvaluationContext
-
Method Summary
Modifier and TypeMethodDescriptioncheckFunction
(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 functionboolean
when the .log() function is calledresolveConstant
(Object appContext, String name) A constant reference - e.g.resolveConstantType
(Object appContext, String name) resolveFunction
(String functionName) resolveReference
(Object appContext, String url) Implementation of resolve() function.
-
Method Details
-
resolveConstant
Base resolveConstant(Object appContext, String name) throws org.hl7.fhir.exceptions.PathEngineException A constant reference - e.g. a reference to a name that must be resolved in context. The % will be removed from the constant name before this is invoked. This will also be called if the host invokes the FluentPath engine with a context of null- Parameters:
appContext
- - content passed into the fluent path enginename
- - name reference to resolve- Returns:
- the value of the reference (or null, if it's not valid, though can throw an exception if desired)
- Throws:
org.hl7.fhir.exceptions.PathEngineException
-
resolveConstantType
TypeDetails resolveConstantType(Object appContext, String name) throws org.hl7.fhir.exceptions.PathEngineException - Throws:
org.hl7.fhir.exceptions.PathEngineException
-
log
when the .log() function is called- Parameters:
argument
-focus
-- Returns:
-
resolveFunction
- Parameters:
functionName
-- Returns:
- null if the function is not known
-
checkFunction
TypeDetails checkFunction(Object appContext, String functionName, List<TypeDetails> parameters) throws org.hl7.fhir.exceptions.PathEngineException Check the function parameters, and throw an error if they are incorrect, or return the type for the function- Parameters:
functionName
-parameters
-- Returns:
- Throws:
org.hl7.fhir.exceptions.PathEngineException
-
executeFunction
- Parameters:
appContext
-functionName
-parameters
-- Returns:
-
resolveReference
Implementation of resolve() function. Passed a string, return matching resource, if one is known - else null- Parameters:
url
-- Returns:
-