A provider would like a form where he can pull lab values into the note from a specific date. He doesn't always want the last lab values. He wants to be able to select the labs to pull into the note by entering or selecting a date on the form. Is this possible via VFE?
Thank you in advance for your help.
Katie Kopp
Clinical Informatics RN
{ fn GetOrderedList()
{
local strRet=""
local i=0
local strArray=""
local arrayOL
strArray=List_Obs("your obs term","signed","value","delimited")
if strArray<>"" then
arrayOL=getfield(strArray,"|","")
for i=1,i<=size(arrayOL),i=i+1 do
arrayOL[i]=getfield(arrayOL[i],"^","")
strRet=strRet+(if strRet=="","",",")+arrayOL[i][2]+"--"+arrayOL[i][1]
endfor
endif
document.DesiredList=str
}
}
There are NO promises about the above code!!!! There are many was to skin a cat. You need to call the function either at form load or by some other mechanism. You may want to enter the function with the delimited string. You can fill the list document variable at the function call, e.g. document.DesiredList=GetOrderedList() or as above in the function call. There are many options, the above is offered to you to get started.
I have a form that can do this. Email me if you're interested.
Laurie
[email protected]