I'm attempting to have my dropdown fill with a list of all the patients diagnoses. Can anyone help me with this? I'm not sure if there is a fx available to do so. I'm also assuming Dynamic choice list needs to be checked.
Thanks!
Here is code for dropdown list:
/* get problems for problem selection list*/
{ ! fn Get_Problems(strNull)
{
local arrayProb
local i=0
local strProb=""
arrayProb=getfield(Prob_After("delimited"),"|","")
if arrayProb[1]<>"" then
for i=1,i<=size(arrayProb),i=i+1 do
arrayProb[i]=getfield(arrayProb[i],"^","")
strProb=strProb+(if strprob<>"",",","")+replacestr(arrayProb[i][2],",","~")+"^"+arrayProb[i][3]+"^"+arrayProb[i][8]
endfor
endif
return strProb
}
}
The dropdown list uses dynamic list, called as follows:
{Get_Problems(Prob_After("List"))}
Contact me directly if you have questions, [email protected]