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
fun setIsReadOnly(value: Boolean): <Error class: unknown class>

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
fun setQuestionnaire(questionnaireUri: Uri): <Error class: unknown class>

A URI extra for streaming a JSON encoded questionnaire.

fun setQuestionnaire(questionnaireJson: String): <Error class: unknown class>

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
fun setQuestionnaireLaunchContextMap(launchContextMap: Map<String, String>): <Error class: unknown class>

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
fun setQuestionnaireResponse(questionnaireResponseUri: Uri): <Error class: unknown class>

A URI extra for streaming a JSON encoded questionnaire response.

fun setQuestionnaireResponse(questionnaireResponseJson: String): <Error class: unknown class>

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
fun setShowCancelButton(value: Boolean): <Error class: unknown class>

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

Link copied to clipboard
fun setShowNavigationInDefaultLongScroll(value: Boolean): <Error class: unknown class>

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
fun setShowSubmitAnywayButton(value: Boolean): <Error class: unknown class>

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

Link copied to clipboard
fun setShowSubmitButton(value: Boolean): <Error class: unknown class>

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

Link copied to clipboard
fun setSubmitButtonText(text: String): <Error class: unknown class>

To accept a configurable text for the submit button

Link copied to clipboard
fun showAsterisk(value: Boolean): <Error class: unknown class>

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

Link copied to clipboard
fun showOptionalText(value: Boolean): <Error class: unknown class>

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

Link copied to clipboard
fun showRequiredText(value: Boolean): <Error class: unknown class>

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

Link copied to clipboard
fun showReviewPageBeforeSubmit(value: Boolean): <Error class: unknown class>

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
fun showReviewPageFirst(value: Boolean): <Error class: unknown class>

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