Good morning, Currently we have orders on our custom lists that are "generic" items since a provider may need to place an order for something that isn't common. Providers are complaining that the details entered in the instructions section of this "generic" item don't populate the note to easily see what has been ordered. So I am looking for a way to add the "Instructions" section and the "Start Date" from the Orders Detail to the office note.
Thank you, Rhonda
You can use ORDERS_NEW("delimited",""), instructions are field 8 and start date is field 4
Michael, Thanks for the reponse. I have tried that, but don't want ALL of the order details and the providers won't like the way it prints out. Can you restrict it to just pull in those 2 fields?
Thanks
Yeah something like this -
{fn Order_w_Details(orders){
local hold = getfield(orders,"|","")
local temp = array()
local rslt = ""
for i = 1, i<=size(hold), i = i + 1 do
temp = getfield(hold[i],"^","")
//use this criteria for deciding to include orders
//currently set to include test or referral orders
if temp[2] == "R" or temp[2] == "T" then
if rslt <> "" then
rslt = rslt + hret
endif
rslt = rslt + temp[1] + " (" + temp[4] + ") " + temp[8]
endif
endfor
return rslt
}}{Order_w_Details(ORDERS_NEW("Delimited",""))}
The italicized line is the one that formats and decides what to put in the output, the bold line decides which orders are included (using orders_new() will only limit this only to orders added during the encounter, bold line additionally excludes service orders)
Thanks Michael. I will work with it and let you know if I have any other questions. I appreciate your help.
Rhonda
Hi,
I just came across this code suggestion and want to thank y'all for posting.
THANK YOU!