Has any progress been made in supporting multiple hierarchy configurations on the same instance? If so, in what way:
Where there’s shared data between the two configurations
Completely different configurations that share no data
Alternatively, is there a way where we could omit/filter-out certain levels of the hierarchy for specific login roles?
Consider the following hierarchy:
NPO
- Team Area
-- Indawo
--- Team Area
---- Dwelling
----- Household
------ Household member/patient
We need a way to allow access to the household members/patients in two different “views”. One where the entire hierarchy is considered (metro health services), and one where we care about ALL the patients grouped by the top-level place (rural health services).
Short answer is no. A consistent contact hierarchy is still required.
Some limited support has been added for allowing supervisors to access multiple discrete parts of the contact hierarchy without needing to have access to a single ancestor. However, this feature is currently still tightly scoped to the supervisor use case and is probably not flexible enough (in its current form) to be what you need.
Also relevant is the replication depth setting. But I think this actually does the opposite of what you are looking for here (blocks a user from seeing data from a certain number of levels below them vs allowing them to see the bottom level patients without the rest of the hierarchy.
For your use case, are the metro health services and the rural health services serving different patients or do they need to have access to the same patient contacts?
If the rural/metro contacts were separate, you could just configure different hierarchy structures as needed.
If they need access to the same patient contacts, then I agree with your wording that probably what you need is “different “views”” of the data. Instead of getting into the challenges of modifying how the actual contact hierarchy works (which then affects the replication algorithm), it might be enough to just update the webapp to allow hiding contact levels from some users/roles…