Hello All,
I am updating a form I've inherited and have found a sticking point. What happens is I complete two obs terms on the form, which should interact with each other, but one isn't registering coming off of hold all the time. This is a simplified example of what is going on:
if (obsnow("A")<> "") AND (obsnow("B")<> "") THEN
document.answer = obsnow("A") + " " + "obsnow("B")
else ""
endif
If I put a value in both obs terms it works fine. When I put the visit on hold and bring it back and run a mel trace obsnow("B") returns as NULL even though there is a value in clinical list updates. If I put the visit on hold a second time and bring it back, obsnow("B") has the correct value again.
Has anyone else run into a situation where a obs term returns as a NULL even though the data in the clinical list update remains the same pulling it on and off hold?
Thanks,
Brad
Are you signing clinical list changes when you hold the document? and does document.answer change when the obsnow("B") is returned as null?
Just curious what would be less than ""?
Try just using >"" instead of <>""?