Builder

class Builder

Helper to create QuestionnaireFragment with appropriate Bundle arguments.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

An Boolean extra to control if the questionnaire is read-only. If review page and read-only are both enabled, read-only will take precedence.

Link copied to clipboard

A URI extra for streaming a JSON encoded questionnaire.

A JSON encoded string extra for a questionnaire. This should only be used for questionnaires with size at most 512KB. For large questionnaires, use setQuestionnaire(questionnaireUri: Uri).

Link copied to clipboard

The launch context allows information to be passed into questionnaire based on the context in which the questionnaire is being evaluated. For example, what patient, what encounter, what user, etc. is "in context" at the time the questionnaire response is being completed: https://build.fhir.org/ig/HL7/sdc/StructureDefinition-sdc-questionnaire-launchContext.html

Link copied to clipboard

A URI extra for streaming a JSON encoded questionnaire response.

A JSON encoded string extra for a prefilled questionnaire response. This should only be used for questionnaire response with size at most 512KB. For large questionnaire response, use setQuestionnaireResponse(questionnaireResponseUri: Uri).

Link copied to clipboard

A Boolean extra to show or hide the Cancel button in the questionnaire. Default is true.

Link copied to clipboard

A Boolean extra to show questionnaire page as a default/long scroll with the previous/next/submit buttons anchored to bottom/end of page. Default is false.

Link copied to clipboard

Setter to show/hide the Submit anyway button. This button is visible by default.

Link copied to clipboard

A Boolean extra to show or hide the Submit button in the questionnaire. Default is true.

Link copied to clipboard

To accept a configurable text for the submit button

Link copied to clipboard

A Boolean extra to control whether the asterisk text is shown.

Link copied to clipboard

A Boolean extra to control whether the optional text is shown.

Link copied to clipboard

A Boolean extra to control whether the required text is shown.

Link copied to clipboard

A Boolean extra to control if a review page is shown. By default it will be shown at the end of the questionnaire.

Link copied to clipboard

A Boolean extra to control if the review page is to be opened first. This has no effect if review page is not enabled.