A 'UI Framework Error' occurs when the user tries to register a patient with an account with is not a provider.
Steps to reproduce:
1) Create a new user account.
2)In the "Capabilities" section, check the "Registers Patients" checkbox.
3) Login with the credentials of the newly created account.
4) On the current screen, click on "Register a patient" button.