Details
-
Type:
Bug
-
Status: Closed
-
Priority:
TBD
-
Resolution: Fixed
-
Affects Version/s: HTML Form Entry 2.6
-
Fix Version/s: HTML Form Entry 3.10.0
-
Labels:
Description
The <encounterProviderAndRole/> using the autocompleteProvider="true" providerMatchMode="ANYWHERE" yields the names of all provider roles, even if providerRoles parameter is specified.
To reproduce...
- 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:
<htmlform> <encounterDate/> <encounterLocation/> Doctor: <encounterProviderAndRole encounterRole="2" providerRoles="1" autocompleteProvider="true" providerMatchMode="ANYWHERE" /> Nurse: <encounterProviderAndRole encounterRole="2" providerRoles="3" autocompleteProvider="true" providerMatchMode="ANYWHERE" /> <submit/> </htmlform>
- 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.