Please advise about the best approach to design and implement multitenancy.
Of course, the best approach is to have a separate FHIR server for each tenant, but it is not an option.
I need to filter resources based on requester claims.
I will have a wrapper/facade application, so no direct access to the FHIR server.
So my options:
- Add something like FacilityId into the Resource.Meta.tag tags and use them for filtering.
- I saw this https://github.com/microsoft/health-architectures/tree/master/FHIR/FHIRProxy
But it really doesn’t seem like ready for a production solution.
Any notes, advice? Will option 1 work?