Da Vinci - Documentation Templates and Rules
2.2.0-ballot - STU 2.2 - Ballot United States of America flag

This page is part of the Documentation Templates and Rules (v2.2.0-ballot: STU 2.2 Ballot) based on FHIR (HL7® FHIR® Standard) R4. This version is a pre-release. The current official version is 2.1.0. For a full list of available versions, see the Directory of published versions

OperationDefinition: DTR Next Question Operation

Official URL: http://hl7.org/fhir/us/davinci-dtr/OperationDefinition/DTR-Questionnaire-next-question Version: 2.2.0-ballot
Standards status: Trial-use Maturity Level: 2 Computable Name: DTRNextQuestion

The Next Question operation is used for adaptive questionnaires. For specific details, see the SDC Next Question operation.

URL: [base]/Questionnaire/$next-question

Parameters

UseNameScopeCardinalityTypeBindingDocumentation
INresource1..1Parameters (DTR Next Question Input Parameters)

The DTR Adaptive QuestionnaireResponse Profile of the QuestionnaireResponse resource with a contained Questionnaire. When invoking the operation for the first time, neither the QuestionnaireResponse nor the contained Questionnaire will have any items, as no questions are yet known. In subsequent calls, the QuestionnaireResponse will include answers to all required questions asked so far and the contained Questionnaire will remain the same as provided back from the operation in the preceding response.

OUTreturn1..1Parameters (DTR Next Question Output Parameters)

The DTR Adaptive QuestionnaireResponse Profile of the QuestionnaireResponse resource with a contained Questionnaire. The Server updates the QuestionnaireResponse's contained Questionnaire by appending with the next question or questions ittems and any score or instruction items and returns the QuestionnaireResponse (with all answers completed thus far plus any calculated scores) as this parameter. When the questionnaire is complete, the Server updates the status of the QuestionnaireResponse resource parameter to complete.

To return a calculated score for the questionnaire or group of items, the service may return a readOnly question with the score value in the corresponding QuestionnaireResponse.item. The extension questionnaire-hidden can be included on the Questionnaire.item to indicate to the client that it should not be displayed to the end user