Add go-no-go variant, dual task, Wechsler and VOSP, plus minor tweaks #44

Merged
msz merged 13 commits from updates into master 2026-01-09 15:16:07 +00:00

13 commits

Author SHA1 Message Date
a9a9dc29b1 Remove leftover console.log call 2026-01-08 19:26:36 +01:00
cfffcc829b Add gitignore
Useful when running a local server (from the tools folder).
2026-01-08 18:55:03 +01:00
c8ef31c545 Update local load to fully work with newly added fields 2026-01-08 18:55:03 +01:00
dd08ca3f43 Change hand encoding in newly added fields to be consistent
It makes no sense to keep encoding the hand as 1/2. Patient stronger
impacted hand field already used left/right, so the encoding can be set
in html already.
2026-01-08 18:55:03 +01:00
4ae585c025 Update jinja template for successful entry with new forms 2026-01-08 18:55:03 +01:00
6bb5b4840b Handle field retrieval for new go-no-go, dual task, Wechsler & VOSP
Without fundamental changes to the logic, hashing and type conversion
requires the fields to be enumerated explicitly several times in both JS
and Python code.

Do note that all numeric fields which were added are currently integers,
in both the html fields (step = 1) and processing code, which seems to
be a reasonable assumption (fractional miliseconds or points are
unlikely to occur). We can backtrack later if needed.

This bumps the form data version to 2.4.
2026-01-08 18:51:44 +01:00
423df9ad40 Allow enabling EuroQol fields separately 2026-01-08 17:07:08 +01:00
7ed1715b17 Add HTML component for VOSP
This adds form elements for Visual Object and Space Perception (VOSP)
cube analysis subtest. This does not add response saving, only the form
elements and toggles.

The range for the score (Punktzahl) was found online by searching
publications mentioning VOSP, e.g.
https://pmc.ncbi.nlm.nih.gov/articles/PMC3713013/
2026-01-08 17:07:08 +01:00
47bc2b83b0 Make Wechsler scale ranges flexible
Depending on the selected variant (A+B or B+C), the maximum raw scores
for the Wechsler memory scale / logical memory are diffent (39/50/53). A
change event handler, triggered by selecting one of the radio buttons,
will now update values for the max & placeholder properties, as well as
the error message.

On-hover tooltips (title html element) are added to the A+B & B+C
buttons.

The A+B and B+C variants are linked to the participant's age; however,
after consultation, we do not implement this in the form -- the variant
needs to be explicitly selected. This means that the form allows
choosing a variant incongruent with participant's age (the variant is
chosen during the test, so if an incorrect variant was performed on test
day it can still be entered).
2026-01-08 17:07:08 +01:00
1c779a53b1 Add HTML component for Wechsler scale logical memory 2026-01-08 17:07:08 +01:00
a4fe45b82d Add HTML component for dual task
This adds divided attention - dual task (Geteilte Aufmerksamkeit –
Variante: Doppelaufgabe I) to the form. The median and percentile range
are placed on the same line to avoid making this needlessly long.

This change concerns just the html (plus required toggle), not hashing
or saving the data.
2026-01-08 17:06:52 +01:00
d7b88f4c19 Add HTML component for new go-no-go
The old go-no-go is renamed (just the header) to Go/Nogo-Task Niessen,
an a new assesment, Untertest Go/NoGo – Variante: 2 aus 5, is added.

This introduces a new kind of input field validation: percentile rank
(Prozentrang): 1-100 with an optional "<" or ">". Out of necessity, the
field is a string field, and the validation is done with a regex. To
reduce the variability of inputs, we enforce the </> symbol to be
followed by space.

This change concerns just the html (plus required toggle), not hashing
or saving the data.
2025-12-19 20:36:18 +01:00
fd74d7bf15 Add JTT sum display
Boxes displaying JTT sum (for left and right hand), similar to several
other tests, are added as visual help for those entering the data. These
use (permanently) disabled inputs, and should have no influence of data
submission - the other sums are also not submitted (presumably because
they can be calculated).
2025-12-18 18:51:04 +01:00