Here is what I am trying to do and I hope someone has an idea.
I have a medication that is either Prescribed or Not Prescribed. The Not Prescribed option will allow a selection of items from a drop down menu. If the users selects the drop down option of 'other' I would like another text field to appear where they can type the reason why.
What I have right now for example is for Beta Blocker;
If Prescribed is the choice then everything is good and it stores that in the obs term.
If the option is Not Prescribed then it follows below:
Visibility region:
(((OBSNOW("BETABLOCKRTX"))=="Not prescribed"))
Then offer the drop down list with reasons storing in an obs term of BTABLCCONTRA.
The last drop down reason is other. **Here is where I get stuck***
Another Visibility region:
(((OBSNOW("BTABLCCONTRA"))=="other"))
Followed by an edit field storing to a new observation of MISC 9.
In my form instead of creating a new field to enter the data in you can type in the same reason field as the drop down selections but it automatically adds other in there. I was thinking I wanted a clean field for typing but am open to suggestions.
Text translation is doing this now:
IF (STR(OBSNOW("BETABLOCKRTX")) == "") THEN "" ELSE ("
" + FMT("Beta Blocker Therapy ", "B,1") + "
" + IF (STR(OBSNOW("BETABLOCKRTX"), OBSNOW("BETABLOCKRTX")) == "") THEN "" ELSE (CFMT(OBSNOW("BETABLOCKRTX"), "", "", "", "
")) ENDIF) ENDIF + IF (STR(OBSNOW("BTABLCCONTRA"), OBSNOW("BTABLCCONTRA")) == "") THEN "" ELSE (CFMT(OBSNOW("BTABLCCONTRA"), "", "Reason: ", "", "
")) ENDIF
Thanks in advance!!