Set Your Data on FHIR With the Right Database
FHIR Façade or Repository: How to Choose the Best One
First of all, if you're asking if a façade is better than a repository, you're looking at the decision the wrong way. You wouldn't ask a carpenter if a hammer is better than a screwdriver. Or if a finishing nail is better than a galvanized screw. The carpenter couldn't answer you because one isn’t inherently better than the other. While they accomplish similar goals—connecting things—they do so very differently, for specific, strategic purposes.
The same is true about Fast Healthcare Interoperability Resources (HL7® FHIR®) server models. While they accomplish a similar goal, which is to make healthcare data more accessible, they store and handle the data differently for specific, strategic purposes. So the question isn't if you will adopt FHIR, but how.
Let’s look at the differences between façade and repository models through some sample use cases to understand what strategies should be employed when choosing one over the other. Be sure to take a look at the compatibility table at the end to see which model might best suit your needs.
Façade/Hybrid or Repository: What's the Difference?
The primary difference between these two models is the location of the data.
In a façade model (aka HAPI FHIR Plain Server or Smile Digital Health's Hybrid Provider), data remains in its existing source system. When queried, data is mapped to FHIR on the fly and delivered in real-time from existing data sources.
-
Data stays in place
-
A translation layer exists
-
At query run time, data is converted to FHIR and returned to the client
In the repository model (HAPI FHIR's JPA Server or Smile's CDR), a new asset is created to store a copy of the data separately—a native FHIR clinical data repository. This way, the data can be converted to FHIR before any query is made, establishing a connection to the purpose-built repository rather than the back-end data sources. The critical difference is that the repository model houses a FHIR copy of all data so that any relevant information can be immediately sent to the requestor.
-
Data is copied to the repository and converted to FHIR at that time
-
Query talks to the repository
-
Data from the repository is returned to the client
Use Cases for FHIR Façade and FHIR Repository
The following examples are fictionalized, based on a collection of real-life design considerations. They aren't meant to encompass the full breadth of design considerations that go into each model.
When to Use a FHIR Façade (Hybrid)
Company X is a mobile app that helps patients send messages and updates to their mental health provider. They are cautiously optimistic about the adoption of FHIR to develop more integrations and improve the user experience (UX), but their team is otherwise very comfortable with their current database. They already have a rich set of data services that predate FHIR and want to leverage their existing investments into their service-oriented architecture (SOA).
As they explore FHIR, Company X creates a list of must-haves:
-
easy integration
-
shorter timeline
-
soft transition
-
ability to test what their other resources could look like in FHIR.
After reaching out to a FHIR expert (Smile Representative), Company X realizes the façade (Hybrid) model is right for them. Here's why:
-
They want to—and still can—maintain their own database and take advantage of it in a new way;
-
They appreciate the simplicity of a single source of truth for data;
-
They can map data to FHIR with their schema to preview what their resources will look like in FHIR;
-
When they preview their resources in FHIR, they can identify challenges in data migration and determine any other difficulties with their schema on a much smaller scale.
Company X is also comfortable choosing a façade model because it can be a decision “for now.” They know that they can move to a repository model at a later date if the façade limits them from developing more advanced FHIR features and capabilities.
When to Use a FHIR Repository
Company Y gives patients access to their electronic health records (EHRs), syncs with their wearable devices, offers appointment scheduling and facilitates virtual care appointments. They have a large and complex library of data and are eager to adopt FHIR. Because they store so much sensitive data, however, they are especially cautious about any data exposure during the transition to FHIR.
As they explore FHIR, Company Y creates a list of must-haves:
- minimal data exposure
- reduced time/cost to maintain complex data
- meet any and all upcoming ONC compliance requirements
After reaching out to a FHIR expert (Smile Representative), Company Y realizes the repository model is the most strategic solution for them now and years down the road. Here's why:
-
Data in the repository can be limited, minimizing data exposure. For example, the data copied to the repository can be limited to only the last two years, or limited to a specific type of data. All other data would remain "untouched" or "unseen" by the FHIR query, making them a less attractive target to hackers;
-
They're comfortable copying their data into the repository, even though it takes a good amount of time and effort with very low margin for error. They also have sufficient storage for their volumes of data;
-
Smile will maintain their extensive complex data on their behalf, manage upcoming FHIR compliance requirements and manage search functionality. Company Y will save significant time, energy and cost by avoiding the complex demands of maintaining two separate databases and the unnecessary expense of writing custom search functionality for their data;
-
Settings can be tweaked to match their risk profile.
Smile Digital Health’s FHIR Compatibility Tables
You may have recognized that your company aligns with some qualities or must-haves of Company X as well as Company Y. So how do you know which FHIR deployment model to choose?
While the best, most accurate, method to determine your company's database compatibility is to chat with a FHIR expert, you can start on your own by browsing through Smile’s FHIR compatibility table:
Façade/Hybrid Database |
Repository Database |
|
|
|
|
|
|
|
|
|
|
Now, after reading through the compatibility table, what's your conclusion? Is a repository model right for your company, or is the better choice a façade/hybrid model?
Either way, Smile is HAPI to help.
How? Review our façade vs. repository model comparative table to learn more about the functional differences that separate the two databases.
And if you still have more questions, hop on a call with one of our FHIR experts. They'll help you identify the other questions you need to answer and explain in more depth the technical details that go into making this decision.
Repo Model |
Hybrid Model |
|
Scalability & Performance |
|
|
Maintenance |
|
|
Search Functionality |
|
|
Typical Use Case with Timelines & Effort |
|
|
Cost |
|
|
Testing |
|
|