FHIR Chat · Partitions in HAPI FHIR · hapi

Stream: hapi

Topic: Partitions in HAPI FHIR


view this post on Zulip Shreshta Balachandar (Oct 28 2020 at 03:12):

Hey all,

Had some questions on the HAPI partitions:

  1. Is it possible to programmatically update a specific record's partition (i.e. to move a record from one partition to another)? I assume I could do a hard write into the database, but wanted to check if this would mess with the search indexes or any other feature.
  2. If I want to allow a specific user to access data from multiple partitions (though not all), does the interceptor hook allow this?

Thanks!

view this post on Zulip James Agnew (Oct 28 2020 at 12:46):

1- This is not currently possible via the APIs. Any updates to a resource will not modify the partition, so it is effectively "locked" once the record is created. It is possible to move a resource manually by directly manipulating the various partition_id columns in the DB however. Nothing in the JPA design will break if you do this.

2- Not currently, but this is on our very short term roadmap (ie probably weeks away).

view this post on Zulip Shreshta Balachandar (Oct 28 2020 at 14:22):

Thanks James! This is really helpful!


Last updated: Apr 12 2022 at 19:14 UTC