FUME and JSONata Fundamentals: Practical Guide to FHIR Mapping
[FUME TO FHIR] 21 JSONata基礎操作(conditional, string, array, object execution) - iT 邦幫忙
Summary
This article provides a technical guide on mapping methods using the data transformation tool FUME and the programming language JSONata, specifically for FHIR resources. It introduces advanced operations useful in practice, such as checking for input data existence and array handling.
Details
The article focuses on the fundamental usage of FUME and JSONata, which are crucial for data linkage in healthcare information systems. Key topics covered include: 1) a characteristic where FHIR output only occurs if the input attribute exists (existence check), 2) the rule that attributes with the same slice retain only the last value, and 3) methods for combining variables into arrays. Furthermore, advanced JSONata functions are detailed, such as using conditional statements (if-else) for data control, converting DateTime to milliseconds for time manipulation, and utilizing the `$exists()` function to confirm input data presence. This teaches a concrete method to prevent unintended partial FHIR resource output when optional input fields are missing. These techniques are essential for accurately and robustly transforming diverse medical data—such as EHR or claims data—into the standard FHIR format, providing knowledge directly relevant to improving interoperability in Japanese healthcare IT.
Original content copyright by respective publishers