QuestionnaireManager

Questionnaire Manager for dynamic questionnaire processing and response handling.
Provides methods for managing questionnaire workflows and form processing.

Methods

nextQuestion()

nextQuestion(request): Promise<BWellTransactionResult<QuestionnaireResponse, BaseManagerError>>

Experimental

Processes the next question in a questionnaire flow.
Advances through dynamic questionnaire based on responses.
This method is experimental and may change in future releases.

Parameters

request

NextQuestionRequest

Returns

Promise<BWellTransactionResult<QuestionnaireResponse, BaseManagerError>>

Example

const nextQuestion = await sdk.questionnaire.nextQuestion(
  new NextQuestionRequest({
    questionnaireResponse: {
      resourceType: 'QuestionnaireResponse',
      status: 'in-progress',
      questionnaire: 'health-assessment',
      contained: []
    }
  })
);