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

Model for Referral Orders

    XMLWordPrintable

    Details

      Description

      Design & decisions for how referrals should be modeled.

      From this discussion on OpenMRS Talk, we determined this model for Referral orders:

      • Copy TestOrder into a new abstract ServiceOrder and add location property to it. This will include adding location to the test_order table.
      • Refactor TestOrder to be an empty class that extends ServiceOrder
      • Add ReferralOrder as an order that extends ServiceOrder and introduces a new Referral order type. This will introduce a new referral_order table that looks just like the test_order table.
      • As they are needed, NursingOrderActivityOrderPrecautionOrder, and CallOrder could be added as additional extensions of ServiceOrder. When they are needed, DietOrder and DeviceOrder would be added as new extensions of Order (alongside MedicationOrder and ServiceOrder).

      The end result for ReferralOrder is that it will be a new order type alongside TestOrder and they will both extend an abstract ServiceOrder class that has everything currently in TestOrder along with a location property.

       

        Gliffy Diagrams

          Attachments

            Issue Links

            There are no Sub-Tasks for this issue.

              Activity

                People

                Assignee:
                burke Burke Mamlin
                Reporter:
                grace Grace Potma
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: