What I am trying to do it if the criteria below or met then translate the info below. Other than that I want it to act like it should without the if then. However, all I am getting is vomit when I try to work on it. Yes I know the statement below will cause the form to do nothing but I can't have it in place with MEL Vomit
{if OBSNOW("INJ_RE_1") == "No reaction." and DOCUMENT.VIAL_1 <> "" then OBSNOW("INJ_RE_1","Patient was observed for 10 minutes. No redness or swelling to injection site.
")
else OBSNOW("INJ_RE_1"),"","","","")
endif}
Why are you passing so many things to the final OBSNOW? It just looks like there is your error.
else OBSNOW(“INJ_RE_1″),””,””,””,””)
perhaps something like --- else OBSNOW(“INJ_RE_1″,””)
So this stopped the vomit but I had not translation. I get the translation for whatever matches my if statement but nothing for the then.
Your then seemed to be writing NOTHING to the OBS Code. What do you want to have happen with your ELSE?
Joe is correct OBSNOW(“INJ_RE_1″),””,””,””,””)
There are a few syntax errors, you have a extra ")" that needs to be removed, replace the single quote with a double quote, and only use one comma unless you need a date added. IE OBSNOW(“INJ_RE_1",”Injection Administered”,"01/01/2001")
What it looks like you need is this OBSNOW(“INJ_RE_1",””)