Stream: hapi
Topic: Multiple Tenants
Jörn Bungartz (Apr 14 2020 at 17:09):
There is a doc and example snippets for implementing multi tenancy in Hapi FHIR in the github repo. According to the snippet, adding multi tenancy capability requires adding functionality to the resource providers (filter on RequestDetails.getTenantId).
As far as I can see, the included standard resource providers are generated from velocity templates. Should a project wanting to implement multi tenancy fork the HAPI FHIR repo and extend the vm templates accordingly?
Trying to figure out what the best/ intended approach is to avoid too much hassle in the future when Hapi FHIR is updated.
Thanks for any hint or for sharing your experience in this regard in advance!
James Agnew (Apr 16 2020 at 15:52):
There is a branch implementing multitenancy / partitioning in the JPA server that will be landing within the week.
If you need multitenancy in that part of the API, my best advice is to wait a few days :)
Jörn Bungartz (Apr 17 2020 at 10:45):
Perfect, thanks for the quick and positive answer. :) Will do as you suggest. Just found the md in the branch. Should I get in touch about opening a PR in case we will come across a need to implement one of the missing aspects mentioned there?
Last updated: Apr 12 2022 at 19:14 UTC