Stream: implementers
Topic: Mapping Resources to Tables
Peter Kasson (Oct 16 2017 at 16:37):
Does the FHIR project provide mapping from a Resource to a database table ? I just parsed a bundle successfully and want to persist the Patient and other resources directly to our database. It looks like the FHIR base Java projects on Git have Hibernate support so would assume so, or at least provide a way to map the base resources to a table through some custom mapping.
Abbie Watson (Oct 16 2017 at 19:29):
If you're using a NoSQL document oriented database or JSON store, such as MongoDB or CouchDB, you can use the FHIR schema as the collection schema, and store the FHIR resource directly in the collection/table. Otherwise, it's up to the business and/or app developer to provide mappings to whatever internal database table structure is being used.
Last updated: Apr 12 2022 at 19:14 UTC