Skip to content

Add AUSDRISK Questionnaire with weighted scoring and risk interpretation#822

Open
mlaletina95 wants to merge 3 commits into
beda-software:mainfrom
mlaletina95:feature/ausdrisk-questionnaire-scoring
Open

Add AUSDRISK Questionnaire with weighted scoring and risk interpretation#822
mlaletina95 wants to merge 3 commits into
beda-software:mainfrom
mlaletina95:feature/ausdrisk-questionnaire-scoring

Conversation

@mlaletina95

@mlaletina95 mlaletina95 commented May 14, 2026

Copy link
Copy Markdown
Contributor

https://www.health.gov.au/sites/default/files/2025-03/the-australian-type-2-diabetes-risk-assessment-tool-ausdrisk-pdf-version.pdf

Summary

  1. Adds a seed Questionnaire for the Australian Type 2 Diabetes Risk Assessment Tool (AUSDRISK).

  2. Questions 1–9 use standard itemWeight scoring.

  3. Question 10 records waist circumference (cm) and applies the paper 0 / 4 / 7 bands by gender, Q3a (Yes/No), and cm thresholds.

  4. Q3b still contributes to the choice sum only and does not switch the waist table.

  5. Waist points are included in the total only when waist is entered, Q2 is answered, and Q3a is answered, so the waist table branch is always defined.

The results section shows total score, risk band, and markdown interpretation, with guards so an empty form does not show a misleading low-risk total.

  1. Q2 can be prefilled from Patient.gender via initialExpression on the Questionnaire definition.

  2. Voice: group-voice on ausdrisk-questions; results remain outside the voice group.

Test plan

  • Load the questionnaire in the app and complete a few rows from ausdrisk-test-cases.csv (e.g. TC-1 empty, TC-3 boundary 5, TC-5 boundary 12, TC-7a/7c/7p waist logic).
  • Confirm total / risk / interpretation match expected columns for those cases.
  • Confirm waist does not affect total until Q2 + Q3a + waist are all set (per YAML gate).

https://docs.google.com/spreadsheets/d/14nrgQFqwlf8Ei48wLPqtZfQzs1MFztHL3Xj7IesbBwY/edit?usp=sharing

Marina and others added 3 commits May 14, 2026 16:33
Add group-voice itemControl on ausdrisk-questions, matching vitals/AUDIT.

Co-authored-by: Cursor <cursoragent@cursor.com>
Move waist variables to ausdrisk-questions and drop the extra Q10 group
so Q10 renders with Q1–9 without a layout gap; scoring linkIds unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant