Does anyone know where the "Signed on" date is for a referral, test, or service is stored?
Is there MEL Code that can access this?
You can see this if you right click on a signed order and choose "View details".
It displays on the right side of the box.
Thanks.
Signed on is the pubtime field in the database. Its not directly accessible using something like ORDERS_AFTER() but you can get to it. For example - this will get the signed on time for an order with the order num 123456-1.
{ADDDATES("01/01/1960","0","0",str(find("_MasterOrders","pubtime","ordernum","123456-1")/86400000000))}
Pubtime is encoded as number of seconds since 01/01/1960 plus 6 digits that represent (according to the documentation at least) a workstation id. So if you loop something like orders_after("delimited") to get the order you want to display, pass in the order number which is element 25 of the subarray, and you should get the signed on date.
Here is a working example
{fn ordersWithSignedOn(list){
local hold = getfield(list,"|","")
local temp, i
local rslt = ""
for i = 1, i<=size(hold), i = i + 1 do
temp = getfield(hold[i],"^","")
if rslt <> "" then
rslt = rslt + hret
endif
rslt= rslt + temp[1] + " (" + temp[3] + ")" + " Signed On: " + ADDDATES("01/01/1960","0","0",str(find("_MasterOrders","pubtime","ordernum",temp[25])/86400000000))
endfor
return rslt
}}
Thanks very much for that.
On a similar subject, how is "sent to provider" set? In our environment it's not clear to me what it does or how it is supposed to be used. Some orders don't have it and some orders seem to get a timestamp when they are signed.