
Package ca.uhn.fhir.fhirpath
Interface IFhirPath
public interface IFhirPath
-
Method Summary
Modifier and TypeMethodDescriptionApply the given FhirPath expression against the given input and return all results in a listevaluateFirst
(IBase theInput, String thePath, Class<T> theReturnType) Apply the given FhirPath expression against the given input and return the first match (if any)void
Parses the expression and throws an exception if it can not parse correctlyvoid
setEvaluationContext
(IFhirPathEvaluationContext theEvaluationContext) This method can be used optionally to supply an evaluation context for the FHIRPath evaluator instance.
-
Method Details
-
evaluate
Apply the given FhirPath expression against the given input and return all results in a list- Parameters:
theInput
- The input object (generally a resource or datatype)thePath
- The fluent path expressiontheReturnType
- The type to return (in order to avoid casting)
-
evaluateFirst
Apply the given FhirPath expression against the given input and return the first match (if any)- Parameters:
theInput
- The input object (generally a resource or datatype)thePath
- The fluent path expressiontheReturnType
- The type to return (in order to avoid casting)
-
parse
Parses the expression and throws an exception if it can not parse correctly- Throws:
Exception
-
setEvaluationContext
This method can be used optionally to supply an evaluation context for the FHIRPath evaluator instance. The context can be used to supply data needed by specific functions, e.g. allowing theresolve()
function to fetch referenced resources.- Since:
- 6.4.0
-