Creating duplicates when adding new e.g. Encounter Types or Location will be shown an error message. But for adding a new Encounter Role specifically, the error message only shows a failed method.
How to reproduce:
- Go to Configure Metadata
- Select Manage Encounter Roles
- Add a New Encounter Role
- Name it with the same name as an existing Encounter Role (I named it "Clinician" which already exists)
- Add a random description and hit Save
Now you should see the unclear error message shown in the top right corner of your page.
It should show a similar message like other duplicate errors.