Instead of redoing a form with 3 separate obs I was hoping there is a way (I just don't have an example) of push an DOCUMENT.RADIO to 3 OBS.
Per selection of DOCUMENT.RADIO will determine to the OBS it goes to. Something like this:
{
if DOCUMENT.RADIO ==
"Welcome to Visit G0402" then OBSNOW("WELCOMETOMCR")
else if DOCUMENT.RADIO ==
"Initial Wellness Visit G0438" then OBSNOW("MCRSUBWELL")
else if DOCUMENT.RADIO ==
"Subsequent Wellness Visit G0439" then OBSNOW("MCRINITWELL")
endif
endif
endif
}
That was my idea, but it didn't seem to work.
Are you trying to read an OBS? Or, push something out to an OBS code?
obsnow("BP Systolic") will give most recent OBS entry for "BP Systolic"
obsnow("BP Systolic","200") will put a 200 with current date/time into "BP Systolic"
Im trying to push to and obs being selected.
So without one item trying to go to 3 OBS I would have a radio button push to an OBS.
like:
{OBSNOW("WELCOMETOMCR", (DOCUMENT.RADIO))}
{OBSNOW("MCRSUBWELL", (DOCUMENT.RADIO22))}
{OBSNOW("MCRINITWELL", (DOCUMENT.RADIO33))}
Where DOCUMENT.RADIO choice is Welcome to Medicare G0402
DOCUMENT.RADIO22 choice is Medicare Subsequent Visit G0439
DOCUMENT.RADIO33 choice is Medicare Initial Visit G0438
When either those would be clicked it pushes the choice to the OBS. I was think instead of creating three separate radio buttons and tying them to an OBS. I was thinking having DOCUMENT.RADIO with choices of: Welcome to Visit G0402,Initial Wellness Visit G0438,Subsequent Wellness Visit G0439 then going by what is selected is what will determine what the choice is pushed to.
{if DOCUMENT.RADIO == "Welcome to Visit G0402" then
OBSNOW("WELCOMETOMCR", "Welcome to Visit G0402")
OBSNOW("MCRSUBWELL", "")
OBSNOW("MCRINITWELL", "")
else
if DOCUMENT.RADIO == "Initial Wellness Visit G0438" then
OBSNOW("WELCOMETOMCR", "")
OBSNOW("MCRSUBWELL", "Initial Wellness Visit G0438")
OBSNOW("MCRINITWELL", "")
else
if DOCUMENT.RADIO == "Subsequent Wellness Visit G0439" then
OBSNOW("WELCOMETOMCR", "")
OBSNOW("MCRSUBWELL", "")
OBSNOW("MCRINITWELL", "Subsequent Wellness Visit G0439")
endif
endif
endif}
Thanks for reading my mind! I didn't know if I explained that good, but that works exactly like I wanted it to. Now I have an example for the future.