A Documentation Templates and Rules form may have every required answer yet still be a draft. HL7 Da Vinci DTR v2.2.0 separates continuous validation from the decision to complete a standard QuestionnaireResponse, and it handles completion differently for adaptive forms. That distinction matters in an authorization workflow: saving an in-progress response, marking it complete, and sending evidence to a payer are separate events. A clear state model prevents a form from being submitted too early or disappearing when work pauses.
Validate while the user works
The DTR specification requires clients to validate the QuestionnaireResponse on an ongoing basis and visibly flag elements that need adjustment. Rules can include answer cardinality, permitted values, and constraints expressed through extensions. Validate each edit against the applicable Questionnaire and show the specific item that needs attention; a generic error at final submission makes correction harder.
For a standard Questionnaire, a valid response should be presented as ready for the user to complete. The user may still change answers or save a draft. DTR explicitly prohibits the app from automatically marking a standard QuestionnaireResponse complete. Keep validation state and lifecycle status separate in the interface and data model: valid means the current answers pass checks, while completed records an intentional workflow transition.
- Show required or invalid answers at their question, including conditional items.
- Revalidate when an answer changes logic that enables other questions.
- Offer a clear completion action only after the response passes validation.
Save drafts and recover the same work
Before completion, the DTR client must be able to save an in-progress QuestionnaireResponse so the user can close and resume the session. Persist its identity, questionnaire canonical and version, patient and context links, current answers, and status. On resume, reload the relevant package and re-evaluate the answers against current rules rather than assuming a previous valid state remains valid.
DTR also addresses expired Questionnaires: when a retrieved Questionnaire effective period has ended, the client must stop associated work-in-progress responses, notify the user, and retrieve an appropriate updated package. Previously completed responses must not be reused to complete a new Questionnaire because clinical information may no longer be current. Preserve the stopped draft for audit and guide the user into a fresh form rather than silently changing its status.
- Test a browser or app close immediately after a draft save.
- Show the questionnaire version and last saved time on resume.
- Treat expiration as an explicit restart path with a user-visible explanation.
Handle adaptive completion on its own terms
Adaptive Questionnaires use repeated calls to the payer-side $next-question operation. The client must prevent progression until the current answers satisfy validation rules. If the payer finds a submitted response invalid against the contained Questionnaire, the specification calls for an HTTP 400 response with an OperationOutcome describing the issue. Surface that issue at the relevant question and retain the user’s work.
Unlike standard forms, the payer determines when an adaptive QuestionnaireResponse is complete. The final $next-question call returns the response marked complete with no further questions in the contained Questionnaire. Do not infer completion merely because the current screen has no unanswered visible fields; wait for the protocol result and retain the returned response.
Save completion and hand off deliberately
When a QuestionnaireResponse has been marked completed, the DTR client must save it to the EHR. Before downstream authorization work, confirm that the saved resource belongs to the intended patient and request context, uses the expected Questionnaire, and retains the completed status. The DTR response profile supports linkage to the relevant order or coverage context. Then reconcile any attachments and request references required by the chosen submission workflow.
Completion of a documentation form is not the same as approval of a prior authorization request. Expose distinct operational states for draft, ready for completion, completed and saved, submitted, and payer decision. In acceptance tests, pause and resume a draft, correct a validation failure, finish a standard form, finish an adaptive form, and verify that each resulting response can be found and inspected by the team responsible for the next step.