Hi @RaimundE ,
On a related note, @ken recently brought in a very nice mechanism to create modules that can be used to restrict patients for users/facilities: