Mobile health apps in the United States face a recurring architectural question for code lookup. Do you call a cloud terminology API every time the app needs a LOINC code, or do you embed a slim LOINC table inside the app and search locally? Both approaches ship in production today; the right one depends on the app's latency budget, its offline story, and the cost model the team can sustain. The notes below cover what usually decides the call.
You can also pull related FHIR tooling explainers for context first.
What Cloud Terminology APIs Bring
A cloud terminology API gives the app access to a full code system, kept up to date by the vendor or by the open-source community behind the server. The app makes a request, the server returns the codes, and the local app does not have to ship a database. Updates happen on the server's release cadence; the app just keeps calling.
The trade-off is connectivity. If the app loses network, the code lookup fails. For an app that runs in a hospital with reliable Wi-Fi, that is fine; for an app that runs in a rural ambulance or a home health visit, it is not.
For the broader buyer's-guide framing on terminology server selection, choosing a FHIR terminology server for US vision-care practices covers cross-cutting concerns.
What Embedded LOINC Tables Bring
Embedding a slim LOINC table inside the app lets the app search codes locally, fast, with no network dependency. For apps that need to work in low-connectivity settings, the embedded approach is the only honest choice. Releasing app updates is the cost of staying current with LOINC's release cadence.
The trade-off is app size and update friction. A full LOINC table is large; even a slim subset adds megabytes to the app bundle. And every LOINC update requires an app release, which means coordinating with the app store review cycle.
Where They Diverge in Practice
Five factors decide which approach fits.
- Connectivity expectations. App used only in well-connected settings: cloud API wins. App used in low-connectivity settings: embed.
- Code coverage. Embedded tables typically ship a curated subset. Cloud APIs give you the full code system. If the app needs broad coverage, the cloud option is hard to beat.
- Latency budget. Embedded searches are tens of milliseconds; cloud API calls are hundreds. For a real-time charting flow, embedded is faster.
- Update cadence. Cloud APIs reflect new LOINC releases automatically. Embedded tables require an app release on the same cadence.
- Cost model. Cloud APIs typically charge per query or per active user; embedded tables have no per-query cost. For a high-volume app, embedded is cheaper to run.
For overlapping outpatient EHR architectural patterns, the $expand vs SQL-based code lookup for outpatient EHRs comparison covers the parallel decision. For genomics labs that face a similar reference-data question, the top 4 FHIR terminology tools for genomics lab workflows write-up is a useful neighbor.
How to Pick for Your App
Build a small prototype each way. Measure code search latency on each, model the cost of running each at your target user volume, and test both in a deliberately degraded network. Whichever combination meets the latency budget, the connectivity requirements, and the cost ceiling is the right one. The honest answer for most mobile health apps in 2026 is a hybrid: embed a slim, curated table for hot-path lookups and call a cloud API for broader or rarer codes when connectivity allows. Picking one over the other dogmatically tends to ship an app that frustrates users in the field.
Sources
- Using LOINC with HL7 Standards - HTML, HL7 terminology, evergreen
- Terminology Service spec - HTML, HL7 FHIR R5, evergreen
- Use cases for FHIR Terminology Service APIs - HTML, CSIRO / Ontoserver, evergreen