Referrals in OpenMRS

We discussed this proposal in the 2021-09-27 TAC call and there was general agreement on the way forward:

  • 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, NursingOrder , ActivityOrder , PrecautionOrder , 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 ).

I’ve updated the description of TRUNK-6029 accordingly.

1 Like