health.fhir.r4utils
Module health.fhir.r4utils
ballerinax/health.fhir.r4utils Ballerina library
FHIR R4 Utils module
Module Overview
This module provides processors and utilities for implementing FHIR APIs and creating, 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: 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: 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: Token![](/images/permalink.svg)
Basic token type.
Fields
- value string - value of the token
Errors![](/images/permalink.svg)
health.fhir.r4utils: 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;
Metadata
Released date: over 1 year ago
Version: 1.0.1
Compatibility
Platform: any
Ballerina version: 2201.4.1
GraalVM compatible: Yes
Pull count
Total: 227
Current verison: 3
Weekly downloads
Keywords
Healthcare
FHIR
R4
Utils
Contributors
Other versions
1.0.1
Dependencies