I have a listbox tied to an obsterm that has 5 selections. When one of these is selected I would like a text string to appear in the corresponding patient handout.
For example: In the form the user selects Dental Screening and then in the printed patient handout it would say Dental Screening: Dental screenings find only obvious dental problems.........etc.
What would this code look like, and would I add the code to the form or the handout?
Thanks for any help.
This presents some workflow issues. As long as they are printing the handout while in an update, you can do logic like
if match(obsnow("obsterm"),"Dental") >1 then
"print this text"
else
endif
If you print the handout from outside and update, obsnow doesn't work and you have to use obsany or lastobsvalue. That doesn't guarantee that Dental showed up in the last visit, only that it has showed up in a visit at some point.