Notifications
Clear all
Topic starter
I have been searching the forums for a possible suggestion on how to do this, but I haven't found anything. One of our urology clinics would like to pull the last four signed PSA lab results into a note using quick text. I know you can use the symbol LAST_SIGNED_LAB_VALUE to get the last lab resulted, but what about the previous four?
I was wondering if I need to do a text component with some sort of more advanced MEL programming that can be called by the Quick Text, but I am not quite sure. Has anyone been able to do this?
Thanks,
Wendy Walecka, MS, RN
Affinity and Ministry Health System
Posted : February 10, 2015 12:33 pm
Wendy, I had done a little function in a quicktext, based on the last 4 WEIGHT values. You can substitute your own obsterm name:
I put this into quicktext named .wt4 (for weight last 4 values):
{local S1=""
if OBSPREV("WEIGHT")<>"" then
local A1=getfield(LIST_OBS("WEIGHT","signed","comma","valuedate"),",","")
local ix=(if size(A1)>4,4,size(A1))
local i=0
S1=""
for i=1,i<=ix,i=i+1 do
S1=S1 + (if S1<>"",HRET," ") + A1[i]
endfor
else "" endif
S1}
Result of Quicktext to Chart Note:
185 (01/28/2015 4:53:25 PM)
198 (12/01/2014 4:53:25 PM)
180 (08/01/2014 4:53:25 PM)
200 (04/01/2014 4:53:25 PM)
- Beverly
Posted : February 10, 2015 2:03 pm