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 abstractServiceOrder
and addlocation
property to it. This will include adding location to thetest_order
table. - Refactor
TestOrder
to be an empty class that extendsServiceOrder
- Add
ReferralOrder
as an order that extendsServiceOrder
and introduces a newReferral
order type. This will introduce a newreferral_order
table that looks just like thetest_order
table. - As they are needed,
NursingOrder
,ActivityOrder
,PrecautionOrder
, andCallOrder
could be added as additional extensions ofServiceOrder
. When they are needed,DietOrder
andDeviceOrder
would be added as new extensions ofOrder
(alongsideMedicationOrder
andServiceOrder
).
I’ve updated the description of TRUNK-6029 accordingly.