TraitPoint compares the AQ-10 and RAADS-R, two adult autism screening questionnaires. On the surface, both flows look like a list of inputs followed by a result. That’s where the resemblance stops being a useful abstraction.

Share the form shell, not the scoring rules

The architectural split I’d recommend is a shared presentation layer with a separate definition and scoring function for each questionnaire. The shared layer can handle question labels, progress, and navigation. The instrument-specific layer owns option values, item scoring direction, and the text that accompanies the result. That keeps a component refactor from quietly rewriting the meaning of a response.

This doesn’t need a fancy stack. Semantic HTML handles the radio groups; CSS handles layout and focus styling; plain JavaScript or TypeScript is enough for a deterministic scoring module. Those are stack recommendations, not a claim about TraitPoint’s deployment. The scoring boundary matters more than which framework renders the page.

Test the transitions as well as the totals

I’d write fixtures against the official scoring instructions before touching the result UI. Cover items scored in opposite directions, valid minimums and maximums, and values adjacent to any documented threshold. Then test the form behavior separately: change an earlier answer, go back and forward, and make sure an unanswered item can’t silently become a zero.

Use invented response sets for those fixtures. You don’t need anyone’s real questionnaire answers to check that a changed response updates the total correctly. The same principle applies to analytics: if you want to know whether people understand the comparison page, start by asking for feedback on that page, not by logging their answers.

Treat result copy as part of the interface

A result screen can render the right number and still give the wrong impression. A giant score above a tiny caveat gives the number all the authority in the room. The interpretation belongs right beside it, in the same reading flow: what this questionnaire measures, what the score can’t establish, and where someone can turn if they want a fuller assessment.

That’s the bit I’d most like other devs to review. Does the result read as context for a screening questionnaire, or does the interface accidentally make it look like a verdict?