Scripting and More Tab - The Basics

The "Scripting and More" tab provides a series of more advanced functions, including the ability to show or hide sections, include or omit parts of the clinical note, calculate scores and codify tablet behaviour. An explanation of the fields in this section follows in the image below.

Item reference:
This allows you to name your items. You will want to name your items if you wish to hide them under certain conditions or if you are using them in formulas.
Study export column header:
When using a form for Ocean Studies, this field allows you to define how the column headers will appear when the date is exported as an .xls file.
Field validation:
Use this field to force answers to questions by selecting “non-empty”. You can also dictate the type of answer (e.g., email address, postal code etc.).
Show this field if / Make Note if:
Use this to show or hide items (or make a clinical note) depending on answers to previous questions or other patient information (e.g., male versus female). See examples below.
Formula:
If you have selected formula as your question type, you will enter your formula here. See examples in the box below.

EXAMPLES: "Show this field if"

  • Display a question to patients that meet a specific demographic: If you are creating a general health assessment form and you want to ask about the possibility of pregnancy, you can choose to show this field to female patients only [show this field if: pt.isFemale()].
  • Display a question to people who respond to a question in a particular way: To determine if a smoking cessation counseling. You could ask the patient whether or not they smoke (no/yes) [item reference = smoking]. If the answer is yes, you can show the next question about whether or not they are interested in quitting (no/yes) [show this field if smoking.r == ‘Y’]. When using this field, please note that .p refers to that item’s point value (numeric), whereas .r refers to that item’s response choice (e.g., “N” for no, “Y” for yes).
  • To analyze a field with a menu-based answer, use the ".r" value in combination with Javascript's String.indexOf() function like this: Show this field if:   myMenuItem.r.indexOf("myAnswer") >= 0, where "myAnswer" is the specific menu choice that you wish to flag.
 

EXAMPLES: "Formula"

 

Learn More 

1. Getting Started with eForms 9. Action Menu - eForm Properties
2. Creating a New Form & Understanding Form Structure 10. Action Menu - eForm Actions
3. General Tab - Adding eForm Items & Item Types 11. Editing an Existing Form
4. Menu Choice Tab - Editing Menu Choices 12. Helpful eForm & Note Formatting Tips
5. Note Formatting Tab - Note Formatting for Items 13. Formatting Clinical Notes that Appear with Completed eForms or Sections
7. Adding a Section - Overview 14. Using Keywords to Automatically Insert Content
8. Multi-Page eForms  

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request