Add AUSDRISK Questionnaire with weighted scoring and risk interpretation#822
Open
mlaletina95 wants to merge 3 commits into
Open
Add AUSDRISK Questionnaire with weighted scoring and risk interpretation#822mlaletina95 wants to merge 3 commits into
mlaletina95 wants to merge 3 commits into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://www.health.gov.au/sites/default/files/2025-03/the-australian-type-2-diabetes-risk-assessment-tool-ausdrisk-pdf-version.pdf
Summary
Adds a seed Questionnaire for the Australian Type 2 Diabetes Risk Assessment Tool (AUSDRISK).
Questions 1–9 use standard
itemWeightscoring.Question 10 records waist circumference (cm) and applies the paper 0 / 4 / 7 bands by gender, Q3a (Yes/No), and cm thresholds.
Q3b still contributes to the choice sum only and does not switch the waist table.
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.
Q2 can be prefilled from
Patient.genderviainitialExpressionon the Questionnaire definition.Voice: group-voice on ausdrisk-questions; results remain outside the voice group.
Test plan
ausdrisk-test-cases.csv(e.g. TC-1 empty, TC-3 boundary 5, TC-5 boundary 12, TC-7a/7c/7p waist logic).https://docs.google.com/spreadsheets/d/14nrgQFqwlf8Ei48wLPqtZfQzs1MFztHL3Xj7IesbBwY/edit?usp=sharing