QuestionnaireFragment

A Fragment for displaying FHIR Questionnaires and getting user responses as FHIR QuestionnaireResponses.

For more information, see the QuestionnaireFragment developer guide.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class Builder

Helper to create QuestionnaireFragment with appropriate Bundle arguments.

Link copied to clipboard
object Companion

Extras that can be passed to QuestionnaireFragment to define its behavior. When you create a QuestionnaireFragment, one of EXTRA_QUESTIONNAIRE_JSON_URI or EXTRA_QUESTIONNAIRE_JSON_STRING is required.

Data class that holds a matcher function (matches) which evaluates whether a given factory should be used to display a given Questionnaire.QuestionnaireItemComponent.

Provides the QuestionnaireItemViewHolderFactoryMatchers which are used to evaluate whether a custom QuestionnaireItemViewHolderFactory should be used to render a given questionnaire item.

Properties

Provides a QuestionnaireItemViewHolderFactoryMatchers which are used to evaluate whether a custom QuestionnaireItemViewHolderFactory should be used to render a given questionnaire item. The provider may be provided by the application developer via DataCaptureConfig, otherwise default no-op implementation is used.

Functions

Link copied to clipboard
Link copied to clipboard

Returns a QuestionnaireResponse populated with any answers that are present on the rendered QuestionnaireFragment when it is called.