Medical Office using FreePBX

FreePBX is not designed to be a multi-tenant system, and depending on how strict the partitioning needs to be, you will find yourself investing a moderate to massive amount of time trying to make your round peg fit the square hole.

For multi-tenant built into the system I recommend another application, like FusionPBX/FreeSwitch.
https://www.fusionpbx.com/