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

Disable Hibernate cascading for Encounter.orders and Obs.order

    Details

      Description

      We should (probably) turn off cascading for Encounter.orders and explicitly set the one for Obs.order to none
      EncounterServiceImpl.saveEncounter needs to manually call some method in OrderService in order to save all new Orders. (Old orders aren't allowed to be edited.)
      It should avoid duplicating code
      Make sure to test the case where you add a new REVISE or DC order, and ensure this cascades to setting the date stopped on the original order
      Also, ensure that if you void an encounter (and this voids all Orders in that Encounter), this is properly cascaded

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                raff Rafal Korytkowski
                Reporter:
                raff Rafal Korytkowski
                Designated Committer:
                Rafal Korytkowski
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 days
                  3d
                  Remaining:
                  Time Spent - 1 day, 6 hours Remaining Estimate - 1 day, 2 hours
                  1d 2h
                  Logged:
                  Time Spent - 1 day, 6 hours Remaining Estimate - 1 day, 2 hours
                  1d 6h