I have a form I am trying to use some age-specific things on. If the patient is between the age of 16 and 45, I want an option to show up.
I tried creating a visibility but I'm not sure on the programming exactly how to put it in.
Thank you
To add a little more excitement to my question, I am also trying to get a "Total Score" button to work.
I have attached a screenshot that shows what I would like to happen. When the doctor selects the different values, when he's finished and clicks total score at the bottom, I want it to add all the values together and populate it in the total score edit field.
I have dealt with the age issue by placing the age specific items in visibility regions and have them visible when the age criteria is met.
As for the scoring, you would use normal scoring code and if the age specific questions are also scored, you just base the scoring if the region is visible.
Good luck.
For the age question, I would use a visibility with the following code:
PATIENT._AGEINMONTHS>="192" AND PATIENT._AGEINMONTHS<"540"