Uploaded image for project: 'HTML Form Entry Module'
  1. HTML Form Entry Module
  2. HTML-622

Bug with autocompleteProvider in <encounterProviderAndRole/> tag

    XMLWordPrintable

    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...

      1. Log into OpenMRS and ensure that no user has more than one provider account. System Administration --> Manage Accounts
      2. Create a new HTML Form. System Administration --> Advanced Administration --> Manage HTML Forms --> New HTML Form.
      3. Give it a name "James", Version of "1" and select an encounter type.
      4. 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>
        
      5. 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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                mseaton Mike Seaton
                Reporter:
                arbaughj James Arbaugh
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: