HealthRecordCommunity
FHIR🌏 TaiwanEnriched

Progress on SMART App Development: From FHIR Data to Screen Display

第一個SMART app - iT 邦幫忙::一起幫忙解決難題,拯救IT 人的一天- iThome

August 16, 2026

Summary

This article details the development process of a SMART application using the FHIR standard. The focus is on implementing solutions for system constraints and data incompleteness when displaying electronic health record information (Patient resource).

Details

The author describes the process of utilizing the FHIR Patient resource to display basic patient information within a LINE-integrated smart app. They emphasize that the biggest challenges were not the FHIR standard itself, but rather the inherent incompleteness of real-world medical data and system constraints. Key technical solutions include: First, implementing custom parsing logic to handle instances where client libraries wrap FHIR resources in extra objects. Second, adding a formatting layer to replace empty values with display strings (e.g., 'Not Provided') due to limitations in the LINE messaging platform. Third, and most complexly, handling name retrieval. Since nearly all fields in the FHIR Patient resource are optional, simple data access often resulted in missing names. This was solved by building a multi-layered fallback logic: prioritizing the Name object marked with `use: official`, and if unavailable, falling back to the first element in the array. Furthermore, the design emphasizes separating the display layer from the data processing layer. Instead of simply substituting values, returning `null` is preferred. This allows the presentation layer to decide on user-friendly text (like 'Not Provided'), thereby preserving the raw data integrity received from the system. The article details how these fallbacks ensure robust name retrieval even when official names are missing or structured differently.

📰
Read Original Article
ithelp.ithome.com.tw
→

Original content copyright by respective publishers