A DTR questionnaire may look ready for a user while one of its coded questions has no usable answer list. The issue can live in the item definition, a missing ValueSet dependency, an expansion warning, or a mismatch between the selected code and the completed QuestionnaireResponse. Da Vinci DTR v2.2.0 defines how a questionnaire package carries these resources and what its standard Questionnaire supports. This checklist focuses on terminology at form rendering and answer capture. It complements form versioning and conditional-logic testing; it does not imply that a coded answer alone satisfies a payer's documentation rule.
Identify how each item offers answers
For each coded choice item, inspect the Questionnaire item type, linkId, and source of permitted answers. A small fixed list may be carried as answerOption. A reusable or maintained list may be referenced through answerValueSet. The DTR standard Questionnaire profile includes the FHIR invariant that an item cannot have both answerOption and answerValueSet. The guide also describes answer expressions for dynamically derived choices; an item with an answer expression should not simultaneously carry answerOption or answerValueSet.
Do not treat display text as the stable answer identity. When the selected response is coded, preserve the code system and code supplied by the option or ValueSet, along with its display when available. Confirm the response's answer value type is compatible with the Questionnaire item type. For open-choice questions, distinguish a free-text response from a selected Coding instead of coercing every entry into a code.
- Check item type and linkId before rendering choices.
- Flag conflicting answer sources in the Questionnaire.
- Retain system, code, and display for selected coded answers.
Inspect the package, not only the visible form
The DTR $questionnaire-package operation returns a distinct Bundle for each Questionnaire. Its definition requires the Questionnaire first and requires external ValueSet instances referenced by that Questionnaire in the Bundle. References to Questionnaires, Libraries, and ValueSets within the Bundle are version specific. The operation can also return an Outcome warning when a dependency cannot be retrieved or a ValueSet cannot be expanded. A successful HTTP response therefore deserves a content check, not merely a 'form loaded' indicator.
At receipt, index the package's canonical URLs and versions, resolve each item's answerValueSet against the packaged resources, and show a repairable error if a required choice list is unavailable. Preserve the initial QuestionnaireResponse and its context while resolving the problem. If the package contains more than one form, validate each Bundle independently; a valid terminology dependency for one form does not repair another form's missing ValueSet.
- Read the package Outcome for terminology warnings.
- Resolve each answerValueSet against the correct versioned resource.
- Keep a form in draft if its required choices cannot be displayed reliably.
Choose an expansion path the client can actually use
The DTR operation says ValueSets with expansions under 40 entries are to be expanded as of the current date using parameters the payer deems appropriate. The formal specification describes different presentation patterns: a fixed small answerOption list, a packaged small expansion, or a larger ValueSet expanded by the client or terminology service, often with a filter for search. It cautions that oversized packages can cause DTR clients to fail. Do not hard-code '40' as a universal clinical cutoff; it is part of the guide's packaging guidance, and the needed path depends on the form and terminology service.
A rendering test should include a small packaged expansion, a larger searchable ValueSet, and an expansion failure. Record which canonical and version were used, whether a filter was applied, and whether the answer shown to the user corresponds to a code the client can submit. If the expansion is unavailable, expose a clear retry or escalation state rather than presenting an empty list as if the payer offered no choices.
- Test packaged and terminology-service expansion paths.
- Display a resolvable error when expansion fails.
- Verify that a selected visible option serializes to the intended coded answer.
Validate the response before handoff
Compare the final QuestionnaireResponse against the exact Questionnaire package used for completion. Check that each answer remains under the expected linkId, the value type matches the question, and coded values come from the applicable option or ValueSet when constrained by the form. If a user edits an answer, rerun any conditional logic and review downstream answers whose questions may no longer be enabled. Preserve a draft until the form's required answers and terminology checks pass.
For a regression fixture, change a packaged ValueSet version while keeping its display labels similar. The client should show which version it used and prevent a stale code from silently surviving as a valid new answer. Another fixture should simulate an Outcome warning for a missing expansion. These are implementation tests, not claims that the payer will accept a completed form or approve the underlying service.