The <encounterProviderAndRole/> using the autocompleteProvider="true" providerMatchMode="ANYWHERE" yields the names of all provider roles, even if providerRoles parameter is specified.
- Log into OpenMRS and ensure that no user has more than one provider account. System Administration --> Manage Accounts
- Create a new HTML Form. System Administration --> Advanced Administration --> Manage HTML Forms --> New HTML Form.
- Give it a name "James", Version of "1" and select an encounter type.
- Define the form with the following HTML:
- Save the form, and preview it. Search for "ja" and see that it shows a doctor and a nurse name (the same results) in both provider search boxes.
This happens on the web demo too.