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
createFhirPathError
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
function evaluateFhirPath(map<json> fhirResource, string fhirPathExpression) returns string|json|int|float|boolean|byte|error
Evaluate the fhirpath expression.
getFhirPathResult
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
health.fhir.r4utils: arrayAccessToken
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
Client record to hold the results of fhirpath evaluation.
Fields
- resultenError string? - Error message if the result is an error
health.fhir.r4utils: Token
Basic token type.
Fields
- value string - value of the token
Errors
health.fhir.r4utils: FHIRPathError
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.2
Compatibility
Platform: any
Ballerina version: 2201.5.0
GraalVM compatible: Yes
Pull count
Total: 228
Current verison: 225
Weekly downloads
Keywords
Healthcare
FHIR
R4
Utils
Contributors
Other versions
1.0.2
1.0.1