Display a question, based on demographics:
If you are creating a general health assessment form and you want to ask about the possibility of pregnancy, you can choose to only show this field if the patient is female by entering the following into the "Show this field if" field:
For a full list of available patient-related functions, please refer to: "ScriptPatient ("Pt") Functions".
Display a question, based on how the patient responds to another question:
To determine if a smoking cessation counseling, you can first create an item that asks the patient whether or not they smoke and has item reference: "smoking".
If the answer is yes, you can show the next question, asking about whether or not they are interested in quitting, with the following in the "Show this field if" field:
smoking.r == 'Y'
Note: .r refers to that item’s response choice (e.g. “N” for no, “Y” for yes).
Analyze a menu-type item:
myMenuItem.r.indexOf("myAnswer") >= 0
Note: In the above string, "myAnswer" is the specific menu choice that you wish to flag.