Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-3231

Encounter autocomplete should filter results by patient

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: OpenMRS 1.9.0
    • Fix Version/s: OpenMRS 1.9.4, Platform 1.10.0
    • Component/s: None
    • Labels:
      None

      Description

      In the case of an existing visit, since it is already associated to a patient, when adding encounters, the encounter widget should allow restricting the results to the same patient to stop users from carelessly adding invalid encounters belonging to other patients.
      Tasks:

      • Add a patientId attribute to the tag and edit the encounter call back in OpenmrsAutoComplete.js to take in an argument for the patientId
      • If the attribute is specified the autocomplete should be auto populated with results when the input field gains focus
      • Add a DWREncounterService method that takes in a patientId
      • Update the visitForm to make use of the new attribute

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                wyclif Wyclif Luyima
                Reporter:
                wyclif Wyclif Luyima
                Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 5 hours
                    5h
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 5 hours
                    5h