There is a simple visualisation of progress through the questionnaire as questions are answered:
The questions are presented sequentially, with “next” and “previous” buttons to move between them, and a dropdown that enables jumping directly to a particular question. It also provides feedback of which questions have been completed, and which have been marked as key problems:
Until all the questions are answered, the results are blocked:
Note that if you scroll down you’ll find a button that answers all the questions instantly, making it easier to see the results.
Once all the questions have been answered, the results are displayed in several different tabs:
- Focal: Each suggested intervention is ranked in order of how severe the set of problems are (their averaged AIM scores) that indicate that particular intervention. This is good for focusing on the most severe problems
- Global: Each suggested intervention is ranked according to how many different problems (that is AIM items scoring greater than 2) the young person has which that particular intervention is relevant for. This is good for covering the whole set of problems and causes
- Limit: Limit suggested interventions only to those relevant for items identified as key problems
The underlying calculations are probably the most complex that I have attempted in TiddlyWiki (particularly the global ranking), making extensive use of the mathematics operators and the ‘reduce’ and ‘filter’ operators.
(Note that the suggested interventions link to missing tiddlers in the demo).
The questions comprising the questionnaire and the user interface that presents them can all be translated into other languages which are automatically engaged when TiddlyWiki’s core language is switched:
Answers are stored in temporary tiddlers that are not saved to the server, so several ways are provided to downloaded/exported them:
- As a .DOC file that can be read by Microsoft Word
- As a .CSV file that can be read by Microsoft Excel
- Via the clipboard in a format that can be pasted directly into Microsoft Excel
The technique used to generate a .DOC file is notable: it turns out that Microsoft Word will happily open HTML files if they have the extension .DOC. This makes generating a Word document just be a matter of exporting a static HTML file and giving it the correct extension for the download.
Note that some of the new arithmetic features of v5.2.0 are used to calculate the results, but everything else should work on prior versions.
Jeremy.