Since I am so new at this I am looking to fellow chuggers for help. We have POCT form for in office testing, we are now being told that we need to have the reference ranges show in the note beside the result. I am pretty sure I need to do an "if then" statement, but not 100%. Any help would be apprecietd. This is a screen shot of the form and some mel language from my error.
in each field you probably have something that looks like this in the text translation
{CFMT(OBSNOW("Color"),"","Color: ","B","
")}
The last two parenthesis are the post text (higlighted red) you can use those to put text after the field, and it will show up only if the field, in this case OBSNOW("Color"), is not blank.
{CFMT(OBSNOW("Color"),"","Color: ","B","\tReference Range: Yellow
")}
That will do the same thing but add a tab space, the text "Reference Range: Yellow" before starting a new line.
gibsonmi said:
in each field you probably have something that looks like this in the text translation
{CFMT(OBSNOW("Color"),"","Color: ","B","
")}
The last two parenthesis are the post text (higlighted red) you can use those to put text after the field, and it will show up only if the field, in this case OBSNOW("Color"), is not blank.
{CFMT(OBSNOW("Color"),"","Color: ","B","\tReference Range: Yellow
")}
That will do the same thing but add a tab space, the text "Reference Range: Yellow" before starting a new line.
Thanks, it was the \t that I was missing. Your help is much appreciated.
Laurie
Adding Reference Range to each field made the form too busy. So I made a heading of Reference range, and put the range in the chart translation., but everything is on the right side of the page. Is there a way to make it look like it is on the form:
Yes but it gets really complex.
First the form needs to be in a fixed-width font, like courier new
Then you need a spacing function, like the one I included, then text translations needs to be like this -
{CFMT(OBSNOW("Color"),"","Color: ","B",AddSpace("Color: " + OBSNOW("Color"),50) + "Yellow
")}
So, how it works. The var field includes all of the text from the observation and the label, it starts the reference range "column" at 50 characters over from the left. It adds spaces to whatever var is to get to 50 so you need to make sure you include the label and observtaion correctly where it says var. The 50 can be adjusted to whatever you think is appropriate.
{fn AddSpace(var,total){
local howmuch = total - size(var)
if howmuch < 0 then return "" endif
local rslt = ""
for i = 1,i<=howmuch, i = i + 1 do
rslt =rslt + " "
endfor
return rslt
}}
I hope that all makes sense
gibsonmi said:
Yes but it gets really complex.
First the form needs to be in a fixed-width font, like courier new
Then you need a spacing function, like the one I included, then text translations needs to be like this -
{CFMT(OBSNOW("Color"),"","Color: ","B",AddSpace("Color: " + OBSNOW("Color"),50) + "Yellow
")}
So, how it works. The var field includes all of the text from the observation and the label, it starts the reference range "column" at 50 characters over from the left. It adds spaces to whatever var is to get to 50 so you need to make sure you include the label and observtaion correctly where it says var. The 50 can be adjusted to whatever you think is appropriate.
{fn AddSpace(var,total){
local howmuch = total - size(var)
if howmuch < 0 then return "" endif
local rslt = ""
for i = 1,i<=howmuch, i = i + 1 do
rslt =rslt + " "
endfor
return rslt
}}
I hope that all makes sense
It does, but it is over my head. Time to get out my MEL book.
Thanks
Laurie
Laurie,
You have a MEL book? Do you know where I can get my hands on that?
Thanks,
Brandy