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
ScopedNodewhen usingresolve()to locate contained resources
- Requirement of
- External resources
- Use of the
ElementResolverproperty of theFhirEvaluationContextclass to resolve external resources
- Use of the
- Contained resources
- Standard and extended functions in the
SymbolTable - Use of
FhirClientto query a REST endpoint for resources - Custom FhirPath function used in an expression
- Custom
EvaluationContextfor passing custom instance into a custom function