Uploaded image for project: 'Webservices REST Module'
  1. Webservices REST Module
  2. RESTWS-757

Expand Order Search Handler

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.27.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Medium

      Description

      Description

      As we switch the Lab Workflow main lab page to be paginated on the server side, we need all the things we currently filter on on the client-side to be valid search parameters when hitting the Order endpoint.

      These include:

      • Patient (we will assume we change the patient/identifier search box to search for a patient independanly)
      • Order Action (currently we filter out discontinue orders on the client side in the filterAndSetOrders action
      • Fulfiller Status
      • Date Stopped (specifically, whether or not date stopped is not null, because status "Canceled" is when dateStopped is not null
      • Autoexpire date (specifically, if auto expire date is in the past, order is expired)
      • Orderable (ie concept id, so we can search on test type)

      The OrderSearchHandler2_2 ( https://github.com/openmrs/openmrs-module-webservices.rest/blob/master/omod-2.2/src/main/java/org/openmrs/module/webservices/rest/web/v1_0/search/openmrs2_2/OrderSearchHandler2_2.java ‑ Connect your account to preview links ) already supports Patient and Orderable (Concept ID). So for this ticket we need to expand this to support:

      • Fulfiller Status
      • Order Action
      • Date Stopped (and allowing to test for null)
      • Auto expire date

      (Mark Goodrich this is the ticket you entered in PIH JIRA)

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              cioan Cosmin Ioan
              Reporter:
              cioan Cosmin Ioan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: