Question for order entry gurus. I’m working on order entry capabilities, and had been setting “duration” and “durationUnits” on drugOrder, with an assumption that these would lead to an automatic calculation of autoExpireDate and are applicable for all Drug Orders, not just those with particular dosing instructions.
However, I found that this does not happen. For orders that use FreeTextDosingInstructions, or orders that use SimpleDosingInstructions and specify numRefills > 0, autoExpireDate is not autocalculated, but is left as null in the OrderService. This automatic calculation of autoExpireDate is done within the SimpleDosingInstructions implementation, not as something applied to all drug orders in the Order Service.
This seems imply that I had been misconstruing these properties? Is it incorrect to collect duration when using FreeTextDosingInstructions? Should this only apply to SimpleDosingInstructions? How are these intended to be used? From a UI perspective, I’d prefer to just have a duration/units selector that is optional for all orders than an auto-expire date picker that has to be used for some.