A standard DTR questionnaire exposes the form and its logic up front. An adaptive questionnaire reveals one or more questions at a time through the payer’s $next-question operation, based on answers already collected. This can fit a payer’s branching documentation requirements, but it changes how an EHR or DTR app handles context, prepopulation, validation, network calls, and completion. The published Da Vinci DTR v2.2.0 guide sets explicit behavior for this loop. A reliable implementation must preserve the response as it grows and make every new question understandable to the person completing it.

Recognize the adaptive package and its endpoint

The payer’s $questionnaire-package response includes an adaptive Questionnaire conforming to the DTR adaptive search profile. Its questionnaireAdaptive extension indicates that the form is adaptive and supplies the base URL for Questionnaire/$next-question. DTR requires that URL, when present, to sit under the payer base and be reachable through the same SMART Backend Services connection used for $questionnaire-package. Validate both the extension and the endpoint before a user starts entering answers, so a broken link does not strand a partially completed form.

The accompanying QuestionnaireResponse references a contained Questionnaire derived from the canonical form being completed. It may initially contain few or no questions or answers. Keep the canonical and contained form relationship intact as the session advances. The next-question operation has no separate channel for member or order context: information the payer needs to decide what to ask must be represented as answers in the QuestionnaireResponse. That makes early context questions and their provenance important, even when the app can prefill them.

  • Check the questionnaireAdaptive endpoint against the payer base and established connection.
  • Preserve the canonical Questionnaire and contained derived form relationship.
  • Review context answers before sending them into the adaptive loop.

Populate and review after every new set of questions

Call $next-question with the current QuestionnaireResponse, render the returned questions, and run any available population logic for newly exposed items. DTR requires clients to support incremental population of adaptive responses. Population cannot be treated as a one-time step at package receipt: later questions or their CQL Libraries may not exist until a subsequent call. A client can cache previously retrieved CQL results where appropriate, but should still recalculate when the relevant patient or order context changes.

The initial package may include Libraries or ValueSets that no visible question references yet; DTR requires clients to retain those resources during the session because later questions may use them. The guide also permits a payer to provide question-specific contained resources or inline expressions and answer choices. Test each permitted pattern your implementation claims to support. Show the source of prefilled values and let the user correct an answer before it influences the next branch. Missing data must remain missing rather than becoming an inferred negative response.

  • Run population after each next-question response.
  • Retain package resources that later questions may reference.
  • Expose prefilled values for user review before branching on them.

Validate each turn and handle network failures

DTR says the client must not let the user request the next set until answers to the current response pass validation. If the payer rejects a submitted response under the contained Questionnaire rules, it returns HTTP 400 with an OperationOutcome describing the problem. Map that issue to the specific item or session repair step, while retaining the entered answers. A generic “try again” message loses the information needed to fix the form.

The guide expects adaptive systems to respond promptly and recommends returning several determinable items together rather than making a network call for every simple branch. Measure the time from user action to usable next questions, including retries and timeouts. A disconnected client should preserve a draft and identify the last confirmed response; it must not silently mark the form complete or assume that an unanswered branch has no questions. These are workflow safeguards, not claims that any payer will issue an authorization.

  • Block the next call until current answers validate.
  • Surface the payer OperationOutcome at the relevant answer.
  • Retain draft answers and call state across interruptions.

Let the payer signal adaptive completion

For an adaptive DTR form, completion is determined by the payer. The final $next-question call echoes the QuestionnaireResponse with no further questions in the contained Questionnaire and status set to complete. That differs from the standard form workflow, where the user marks a valid response complete. Do not infer completion because a page looks empty, a button was clicked, or a network request timed out. Confirm the returned status and absence of further questions, then show the final answers for review and save the response through the DTR handoff.

An adaptive response may include coverage-information, but DTR constrains when and how it can be used. The response itself is not a blanket authorization. Test a complete response with no coverage assertion, one with an assertion, and a repeat completion after an answer changes. Preserve the payer response and the user’s final review so a downstream authorization team can distinguish submitted documentation from a coverage decision.

Primary references