HAPI as persistent storage for FHIR records from external EMR's

184 views
Skip to first unread message

Jason Kulatunga

unread,
May 31, 2023, 10:56:43 AM5/31/23
to HAPI FHIR
Hi,

I'm here on behalf of Fasten Health which an open-source, self-hosted, personal/family electronic medical record aggregator, designed to integrate with 100,000's of insurance companies, healthcare providers and laboratories. It securely connects patient healthcare providers together, creating a personal health record that never leaves the patient's hands without their consent.

We're  considering ripping out Fasten’s direct FHIR processing pipeline and replacing it with a CDR like HAPI, but we have a couple of questions/concerns:

  1. Fasten is not the source-of-truth for it’s patient data, so ideally I’m looking for a persistent storage solution that will guarantee that I can retrieve the raw data sent by the healthcare provider — is that possible with HAPI?
  2. Building off the previous question, does HAPI have a mechanism for linking together multiple Patient records without merging them together? IE. A user can import their Hospital MyChart records (which has its own Patient ID) and their Clinic Allscripts records (with a different Patient ID), and link them together to their user.

Thanks!

Blessed Tabvirwa

unread,
Jun 1, 2023, 6:06:17 AM6/1/23
to HAPI FHIR
Hi there

"... persistent storage solution that will guarantee that I can retrieve the raw data sent by the healthcare provider — is that possible with HAPI?" 
- Yes

"...does HAPI have a mechanism for linking together multiple Patient records without merging them together? IE. A user can import their Hospital MyChart records (which has its own Patient ID) and their Clinic Allscripts records (with a different Patient ID), and link them together to their user." 

- Not sure if HAPI has something built-in but I imagine this would be a feature of the FHIR standard i.e. you can use the Patient.identifier for that, however matching records of the same patient from various sources is an interesting problem that requires looking at multiple ways of verifying that is the same patient; thus you may end up having to use more than just Patient.Identifier to group all the various records under one patient. You may benefit from looking into existing health information exchanges to get a sense of how they are currently doing this. Also here are some links that may help:

Jason Kulatunga

unread,
Jun 1, 2023, 9:56:07 AM6/1/23
to HAPI FHIR
Hi!

Thanks for the detailed response.

Regarding Q2 ("does HAPI have a mechanism for linking together multiple Patient records without merging them together") I was told to investigate Master Data Management (MDM) and it seems like it should do exactly what we need.

However I was unable to find any information about Q1 ("persistent storage solution that will guarantee that I can retrieve the raw data sent by the healthcare provider"). You answered "yes" it is possible, however I couldn't find any corresponding documentation that mentioned the untouched/raw FHIR data will be available via the API. Could you link me to a reference?

Thanks!

James Agnew

unread,
Jun 1, 2023, 10:25:57 AM6/1/23
to Jason Kulatunga, HAPI FHIR
I think you would need to define that requirement a bit more before it would be realistic to answer it.

HAPI FHIR's JPA server will by default store exactly what it is sent, and will not modify it in any way. The only exception is that the server won't persist data elements that don't exist in the FHIR standard (e.g. an element named "foo" in the Patient resource would either be ignored or rejected with an error depending on config, but would not be persisted either way. FHIR does not allow undeclared elements outside of the defined extension mechanism.) so unless you have specifically configured the system to make modifications to data before saving, the data won't be modified.

Cheers,
James

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/44c043e2-c4ba-40f7-ba8d-28562696dfcfn%40googlegroups.com.

Jason Kulatunga

unread,
Jun 1, 2023, 12:17:44 PM6/1/23
to HAPI FHIR
Straight from the horses mouth! Thanks for confirming James!

Basically one of the promises we'd like to make to our users is that that data in Fasten exactly matches the data provided by their healthcare institution. This guarantee has a number of technical advantages (signature comparison between old/new resources during provider sync, etc) and we're hopeful that we can leverage signatures + Provenance information for trusted patient-contributed data initiatives in the future. 

Thanks again
Reply all
Reply to author
Forward
0 new messages