Can someone please help me with the VFE chart note translation for a data display based on a MEL expression.
The MEL fn is :
{fn list_cv_Probs(){
local a,c,d,e,f,j,g,h,i, results
a = PROB_AFTER("delimited")
c = "ICD-4,ICD-25,ICD-27"
results = ""
d = getfield(c,",","")
e = size(d)
g = getfield(a,"|","")
h = size(g)
for f=1, f<=e, f=f+1 do
for i=1, i 0 then
results = results + j[1] + " " + j[2] + " (" + j[3] + ")" + hret
endif
endfor
endfor
return results
}}
The MEL expression for the data display connection is :
{list_cv_Probs()}
How do I write a cmft statement to display the contents of the box on the note based on the function
example if this was an OBS:
{CFMT(OBSNOW("# C-SECTIONS"), "", "Cardiovascular Problems:
", "", "
")}
I figured it out. My initial try I used too many () arount the function.
What works=
{CFMT(list_cv_Probs(),"","Cardiovascular Problems:
","B","
")}
Hope this helps someone else.
Thanks for looking
Jack
You will find that this does not update consistently when problems are changed, you should pass PROB_AFTER() as an argument to that function, like this -
{CFMT(list_cv_Probs(PROB_AFTER("delimited")),"","Cardiovascular Problems:
","B","
")}