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

OrderService getActiveOrders as of date does not consider start date

    XMLWordPrintable

    Details

      Description

      Scenario: Consider a case where a patient has 2 drug orders
      order1 =>

      { active_date: '2014-05-01', auto_expire_date: '2014-05-10'}

      order2 =>

      { active_date: '2014-07-01', auto_expire_date: '2014-07-10'}

      Then getActiveOrders(asOf='2014-05-03') returns both order1 and order2.

      It should return only order1.

      The logic in HibernateOrderDAO#getActiveOrders does not seem to use startDate as suggested in https://wiki.openmrs.org/pages/viewpage.action?pageId=57507986

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                harsha89 Harsha Kumara
                Reporter:
                endeepak Deepak N
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 4 hours Original Estimate - 4 hours
                    4h
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 4 hours, 10 minutes
                    4h 10m