Stream: implementers
Topic: Data mapping
Andrea del Pozo Ferreira (Nov 07 2018 at 14:28):
Hi, I would like to know how to search or really if you had information to instruct me how to map data from a google sheets so I can dump them to FHIR resources, I am somewhat lost at that point.
Lloyd McKenzie (Nov 07 2018 at 14:39):
In terms of "search", read through the search.html page and, ideally, try some of the examples using one of the test servers listed in the link of the bottom of the home page (e.g. http://test.fhir.org/r3). You can also google to find a wide variety of FHIR education videos. If you have specific questions with how to do a specific type of search, that would be an appropriate question to raise here.
In terms of converting data from a Google sheet, you'll need to save the sheet data into something you can parse with software (CSV or XML, most likely) and then write software to map into the relevant FHIR resource structures - perhaps a Transaction Bundle if you're touching multiple resources. You may find one of the reference implementations in the downloads.html page helpful for this.
I'd also recommend reading the FHIR Rules for asking questions. The community is a welcoming place, but your initial question seems to fall in the "please do my homework for me" category, and those are frowned upon.
Andrea del Pozo Ferreira (Nov 07 2018 at 14:58):
Good morning, thank you for your response and I clarify what I had thinking should be done, and before the last comment let me say that this out of place as I was not looking for that. Again I say thank you for your answer clear my doubts.
Ovidiu Girlan (Nov 08 2018 at 14:25):
Hi All,
I am new to this forum. I have some question regarding mapping data from your backend DB to the FHIR persistent store.
I can see 2 situations here:
1. One has a "non-fhir" repository as SoR
2. For a brand new project, one can have the repository as "fhir enabled"
I wonder if for case #1, you could share any best practices , tools, information etc for mapping an existing data source to FHIR resources.
1. Are there any tools that help with data mapping ?
2. Anybody used Smile CDR ? Do they have any such mapping tools ?
Yunwei Wang (Nov 08 2018 at 14:35):
We use Dapper to map result from no-FHIR SQL database to FHIR resource. https://www.nuget.org/packages/Dapper.
I believe any ERM library/tool can do that.
Lloyd McKenzie (Nov 08 2018 at 14:36):
@James Agnew can comment on Smile.
In terms of tools, one common strategy is to use something like Hybernate to map between the object representation and your particular database.
Ovidiu Girlan (Nov 08 2018 at 14:49):
Thank you guys.
Lloyd, if using Hybernate that will create object classes based on the layout/schema of the source DB, right ? Assume that clinical data is spread across various tables and user schemas. I assume that you need a processing layer that will manipulate Hybernate classes/objects, create fhir resources (assume one uses happi-fhir) and then persist those in FHIR server persistent store ?
What is the approach to create the fhir DB schema, before being able to persist resources ?
Thanks !
Lloyd McKenzie (Nov 08 2018 at 14:56):
If you're designing a FHIR-based persistence layer, there's lots of discussion in the history of this stream. There's also a new-ish stream devoted to #storage for FHIR
James Agnew (Nov 08 2018 at 15:08):
If you're using Java / HAPI FHIR, you have two options. The HAPI FHIR Server framework can be used to provide a FHIR Server on top of your own database design. In other words, you write the storage logic, HAPI handles the FHIR server part (this is situation 1 you note above). If you want HAPI FHIR to provide the database schema, you could use the HAPI FHIR JPA Server. This is situation 2.
Smile CDR certainly supports both of these options if you need commercial support. It also includes an ETL Module that can be used to bulk import CSV/spreadsheet data and a bunch of other converters and the like.
Ovidiu Girlan (Nov 08 2018 at 19:44):
Thanks James !
In my case, we do have the "MDM like source of truth" repository that is read only (cannot be updated via FHIR). This is like a warehouse where data is updated via ETL and batch process.
On top of that there is a FHIR server which should expose DW data as fhir resources. So the FHIR platform will have its own persistence module (DB) where resources are stored. External clients are able to update or create new resources, however the root DW can not be updated in real time.
So FHIR persistence module/DB can be FHIR enabled as long as DW data can be imported.
Marcos Pais (Nov 11 2018 at 09:15):
Greetings,
I am an Computer Science Master degree student in the University of Porto, in Portugal.
My thesis research topic is about "HL7-v2 to FHIR Mappings", I wonder if someone could please advise me some literature about the subject(articles, books).
Or at least give me some orientation were I should start, because about what I have been reading, this is very complex subject.
Thanks,
Marcos Pais.
Lloyd McKenzie (Nov 11 2018 at 11:27):
It is indeed a complex subject :) Certainly look at the v2 comparison (http://build.fhir.org/comparison-v2.html) and at the v2 mappings (e.g. http://build.fhir.org/patient-mappings.html#v2). There's also a stream devoted to v2 and FHIR that might be helpful: #v2 to FHIR. I'm not sure how much - if anything - is formally documented in articles or books yet.
Last updated: Apr 12 2022 at 19:14 UTC