Example code for evaluating FhirPath expressions using Firely. Self hosts endpoints for REST calls to locate external Fhir resources with sample json files. Examples include:
- Basic expression compilation and evaluation
- Use of
resolve()
FhirPath function to resolve referenced resources- Contained resources
- Requirement of
ScopedNode
when usingresolve()
to locate contained resources
- Requirement of
- External resources
- Use of the
ElementResolver
property of theFhirEvaluationContext
class to resolve external resources
- Use of the
- Contained resources
- Standard and extended functions in the
SymbolTable
- Use of
FhirClient
to query a REST endpoint for resources - Custom FhirPath function used in an expression
- Custom
EvaluationContext
for passing custom instance into a custom function