I am using ORDERS_NEW("delimited") to display orders within a custom VFE form but am seeing strange results. The orders are being added with custom buttons within a VFE form and have been confirmed that the modifiers are correctly associated with the order by reviewing the Orders Module.
This strange behavior is only being seen on the most recently added order within the VFE form. All orders created prior to the most recent one will show the modifiers when ORDERS_NEW("delimited") is displayed as a Data Display or dumped with USEROK("Current Orders" + ORDERS_NEW("delimited") ).
If the document is placed On Hold and then re-opened, the ORDERS_NEW() will show all the orders with their associated modifiers. But, if a new order is created in the open document, and ORDERS_NEW() is displayed, the most recent order will not have the associated modifiers listed in the raw output of this function.
Has anyone else seen this behavior with the ORDERS_NEW("delimited") function? Similarly, I get the same behavior with the ORDERS_AFTER("delimited") function.
Any thoughts or assistance would be appreciated.
What version of CPS/CEMR are you using?
I am seeing this behavior is both CEMR 9.8 Standalone (my development environment) and CPS 12.3 in two different customer sites.