We discussed this proposal in the 2021-09-27 TAC call and there was general agreement on the way forward:
- Copy
TestOrderinto a new abstractServiceOrderand addlocationproperty to it. This will include adding location to thetest_ordertable. - Refactor
TestOrderto be an empty class that extendsServiceOrder - Add
ReferralOrderas an order that extendsServiceOrderand introduces a newReferralorder type. This will introduce a newreferral_ordertable that looks just like thetest_ordertable. - As they are needed,
NursingOrder,ActivityOrder,PrecautionOrder, andCallOrdercould be added as additional extensions ofServiceOrder. When they are needed,DietOrderandDeviceOrderwould be added as new extensions ofOrder(alongsideMedicationOrderandServiceOrder).
I’ve updated the description of TRUNK-6029 accordingly.