FHIR Chat · Same or Different DBs for r4 and dstu3 · hapi

Stream: hapi

Topic: Same or Different DBs for r4 and dstu3


view this post on Zulip Shreshta Balachandar (Oct 12 2020 at 19:20):

Hey everyone,

Have a small question that I might already know the answer to. I am planning for a HAPI FHIR JPA implementation with a Postgres database. Is it possible to use the same database for both R4 and DSTU3 HAPI FHIR servers? Or will I need to provision two separate databases? Thanks in advance!

view this post on Zulip Shreshta Balachandar (Oct 15 2020 at 19:01):

Hi all,

Wanted to follow up on this. I noticed that the hfj_resource table had a res_version column. Does this mean I can point both my r4 and stu3 server to the same database?

Thanks!

view this post on Zulip Jens Villadsen (Oct 16 2020 at 17:52):

res_version is the version of the resource it self - it is not bound to the FHIR version

view this post on Zulip Shreshta Balachandar (Oct 16 2020 at 20:39):

Thanks Jens! In that case, can I connect different versions of a FHIR server to the same database? Wanted to check if I would be required to procure a second database if I want to support both r4 and stu3

view this post on Zulip Shreshta Balachandar (Oct 23 2020 at 16:22):

Got the answer to this. Tons of errors when reading data that is not the server's version and doesn't look like there's a search param for filtering resources of a specific version. Will move forward with the 2 DBs approach


Last updated: Apr 12 2022 at 19:14 UTC