Questionnaire Builder Help
- Definitions
- A Questionnaire is a collection of questions organized into an Instrument.
- An Instrument is a collection of forms.
- A Form is a collection of questions.
- A Question is the smallest unit of information capture.
- A Response Type indicates the type of data to be captured.
- A Response Format indicates the type of control to use for data capture.
- An Object in the discussion below refers to one of the previous items in this list.
- Details
- Questionnaire
- A Questionnaire is implemented by constructing an Instrument containing at least 1 form which contains at least 1 question.
- Instrument
- An instrument must contain:
- A tag or identifier.
- At least 1 form
- An instrument may contain:
- A short description of the instrument.
- Form
- A form must contain:
- A tag or identifier.
- At least 1 question
- An indicator of the order that the form is to be administered within the instrument.
- A form may contain:
- A short description of the form.
- Logic that is applied before the form is administered.
- Logic syntax must be a PHP function reference or MySQL style SQL.
- Logic that is applied after the form is administered.
- Logic syntax must be a PHP function reference or MySQL style SQL.
- Help text or instructions for the user. Use HTML or plain text.
- Question
- A question must contain:
- A tag or identifier.
- Text for posing the question. Use HTML or plain text.
- A response type.
- A response type must contain:
- A tag for identifying it.
- At least 1 response option.
- A response option must contain:
- A tag for identifying it.
- A value.
- Its order for display purposes.
- A response format.
- A reponse format must:
- Be one of the available formats in the list.
- New formats will require modification of Questionnaire.php.
- An indicator of the order that the question is to be administered.
- A question may contain:
- A short description of the question.
- Logic that is applied before the question is administered.
- Logic syntax must be a PHP function reference or MySQL style SQL.
- Logic that is applied after the question is administered.
- Logic syntax must be a PHP function reference or MySQL style SQL.
- Help text for the user. Use HTML or plain text.
- How to use the Builder buttons
- Do not change the values for the object and then click the button.
- Use the button to insert a new entry for the object type.
- A new row will be created and the form field values will be blank for the object.
- Provide values for the form fields for the object.
- Use the button to delete the current entry for the object type.
- You will be prompted before actual deletion occurs.
- Rows are only marked for deletion. They may be recovered by the system administrator.
- Use the button to save the current entry for the object type.
- Use the button to open the instrument and form up for entering data.
- A new browser window will be opened containing the current instrument and form.
- CaseId -1 will be used for the session.
- Use the button to open this help document.
- How to use the Builder dropdowns
- The selected item in the dropdown will be set when the object is loaded.
- If you change the selected item in the dropdown a new object will be loaded.
- The text field immediately to the right of the dropdown contains an editable copy of the selected item tag.
- Tables
ExecuteSQLit sql=
select TABLE_NAME, TABLE_COMMENT from TABLES where TABLE_SCHEMA='LucasCo' and TABLE_NAME in ('Questions,Forms', 'Instruments', 'InstrumentForms', 'FormQuestions', 'Responses', 'ResponseType', 'ResponseFormat', 'ResponsesDecoded', 'Changes')
Table 'LucasCo.TABLES' doesn't exist