HealthRecordCommunity
FHIR🌏 InternationalEnriched

FUME Array Functions: Technical Reference for Data Manipulation

Array Functions | FUME - FHIR Coverter

July 6, 2026

Summary

The FHIR converter 'FUME' provides various functions ($count, $append, $sort, $distinct) designed to handle data arrays. These functions enable JSON-based data manipulation, offering capabilities such as duplicate removal and sorting.

Details

This document is a technical reference section from the FUME documentation, detailing array handling functions for FHIR data transformation. The core functions include: $count() (counting elements in an array), $append() (concatenating multiple arrays), $sort() (sorting arrays based on specified criteria), and $distinct() (removing duplicate values). These functions are highly valuable for data set validation and structuring processes. For instance, $count() is designed to return 1 even when given a single non-array value, demonstrating its flexibility. Furthermore, $sort() allows for complex custom sorting via a comparator function, which is crucial for maintaining data integrity. In the context of standard-based data exchange like FHIR, checking the consistency and ensuring the correct order of input data arrays are essential tasks, making these advanced array manipulation features practically valuable.

📰
Read Original Article
fume.health

Original content copyright by respective publishers