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

OrderService.saveOrder should apply duplicate/overlap checking to DrugOrders based on Drug formulation if it is specified (not Concept), and also pay attention to CareSetting

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: TBD
    • Resolution: Change Request Cancelled
    • Affects Version/s: None
    • Fix Version/s: Platform 1.10.2
    • Component/s: None
    • Labels:
    • Complexity:
      Undetermined

      Description

      Per design discussion at https://notes.openmrs.org/Design-Forum-2015-04-29

      It should be allowed to have active overlapping drug orders for "amoxicillin 500mg tablet" and "amoxicillin 1g vial".

      It should also be allowed to have active overlapping drug orders in different care settings.

      Scope

      Other tickets will describe more significant changes to the way we do this duplicate/overlapping checking. This ticket describes one specific fix that we can make quickly.

      Acceptance Criteria

      1. It is allowed to have two active DrugOrders in the same CareSetting with the same Concept but different non-null values of Drug
      2. It is allowed to have two active DrugOrders in different CareSettings with the same Drug
      3. It is not allowed to have two active DrugOrders in the same CareSetting with the same non-null value of Drug
      4. It is not allowed to have two active DrugOrders in the same CareSetting which both have drug==null and have the same Concept

      Dev Notes

      Make this change in OrderServiceImpl.saveOrder, around the comment "//Reject if..."

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: