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

When revising an order, the previous order should be stopped an instant before the new one starts

    Details

    • Complexity:
      Undetermined

      Description

      Currently when you revise an order, previousOrder.dateStopped is set to the same instant as dateActivated.

      This is inconsistent with the way we calculate autoExpireDate (it is set to an instant before start+duration) and the way we query for active orders (which is inclusive of stopDate).

      We need to change the code so that it stops the previous order 1s before the new one is activated.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                darius Darius Jazayeri
                Reporter:
                darius Darius Jazayeri
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: