health.fhir.r4utils.fhirpath
Module health.fhir.r4utils.fhirpath
ballerinax/health.fhir.r4utils.fhirpath Ballerina library
FHIR R4 Utils FHIRPath module
Module Overview
This module provides processors and utilities for implementing FHIR Path for accessing and manipulating FHIR resources.
Functions![](/images/permalink.svg)
createFhirPathError![](/images/permalink.svg)
Method to create a FHIRPathError
Parameters
- errorMsg string - the reason for the occurence of error
- fhirPath string? - the fhirpath expression that is being evaluated
Return Type
- error - the error object
evaluateFhirPath![](/images/permalink.svg)
function evaluateFhirPath(map<json> fhirResource, string fhirPathExpression) returns string|json|int|float|boolean|byte|error
Evaluate the fhirpath expression.
getFhirPathResult![](/images/permalink.svg)
function getFhirPathResult(map<json> fhirResource, string fhirPath) returns FhirPathResult
Client method to access utils package for fhirpath evaluation.
Parameters
- fhirResource map<json> - requested fhir resource
- fhirPath string - fhirpath requested for evaluvation
Return Type
- FhirPathResult - result of the fhirpath expression
Records![](/images/permalink.svg)
health.fhir.r4utils.fhirpath: arrayAccessToken![](/images/permalink.svg)
Sub type of token for array access tokens.
Fields
- Fields Included from *Token
- value string
- anydata...
- index int - index of the array element
health.fhir.r4utils.fhirpath: FhirPathResult![](/images/permalink.svg)
Client record to hold the results of fhirpath evaluation.
Fields
- resultenError string? - Error message if the result is an error
health.fhir.r4utils.fhirpath: Token![](/images/permalink.svg)
Basic token type.
Fields
- value string - value of the token
Errors![](/images/permalink.svg)
health.fhir.r4utils.fhirpath: FHIRPathError![](/images/permalink.svg)
FhirPathError is the error object that is returned when an error occurs during the evaluation of a FHIRPath expression.
Import
import ballerinax/health.fhir.r4utils.fhirpath;
Metadata
Released date: about 1 year ago
Version: 1.0.0
Compatibility
Platform: any
Ballerina version: 2201.6.0
Pull count
Total: 826
Current verison: 47
Weekly downloads
Keywords
Healthcare
FHIR
R4
Utils
FHIRPath
Contributors
Dependencies