HAPI FHIR Android Client Guide: JSON Support and Performance Considerations
Android Client - HAPI FHIR Documentation HAPI FHIR Android developers
HAPI FHIR provides a JAR file enabling Android developers to utilize FHIR model classes and the FHIR client.
Summary
HAPI FHIR provides a dedicated module for Android developers, enabling the use of FHIR model classes and client functionality. The client is optimized to request only JSON responses, requiring caution when integrating with servers that support only XML encoding.
Key Players
Details
HAPI FHIR offers a specialized `hapi-fhir-android` module designed for use on the Android platform. This allows developers to leverage FHIR model classes and client features; however, it should be noted that running a full FHIR server on Android is not yet supported. Technically, this client has been streamlined to request JSON responses only (via the HTTP Accept header), eliminating XML parsing support from previous versions. Performance considerations are critical for mobile devices, making it essential to maintain a single instance of the `FhirContext` object due to its high creation cost. Developers must include this Android client module and an appropriate FHIR structures library (e.g., `hapi-fhir-structures-r4`) via Gradle. Furthermore, specific exclusions are required, such as removing the Woodstox StAX library and certain Apache HTTP components, due to namespace restrictions on Android.
Technology Note
FHIR(Fast Healthcare Interoperability Resources)は医療データ交換の国際標準。このエントリの関連技術: FHIR
Original content copyright by respective publishers