Package-level declarations

Types

Link copied to clipboard
data class DataCaptureConfig(var valueSetResolverExternal: ExternalAnswerValueSetResolver? = null, var xFhirQueryResolver: XFhirQueryResolver? = null, var urlResolver: UrlResolver? = null, var questionnaireItemViewHolderFactoryMatchersProviderFactory: QuestionnaireItemViewHolderFactoryMatchersProviderFactory? = null)

The App developers may provide the DataCaptureConfig for the DataCapture library by implementing Provider interface in the Application class. The library would load and cache the configuration by calling Provider.getDataCaptureConfig.

Link copied to clipboard

Resolves external answer value sets not defined in the questionnaire's contained element. This allows the library to render answer options to choice and open-choice type questions more dynamically.

Link copied to clipboard

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

Factory to create QuestionnaireItemViewHolderFactoryMatchersProvider for the QuestionnaireFragment to provide List of QuestionnaireItemViewHolderFactoryMatcher. The developers may provide the factory to the library via DataCaptureConfig to add custom questionnaire components or override the behaviour of existing components in the sdc.

Link copied to clipboard
data class QuestionnaireNavigationUIState(val navPrevious: QuestionnaireNavigationViewUIState = QuestionnaireNavigationViewUIState.Hidden, val navNext: QuestionnaireNavigationViewUIState = QuestionnaireNavigationViewUIState.Hidden, val navSubmit: QuestionnaireNavigationViewUIState = QuestionnaireNavigationViewUIState.Hidden, val navCancel: QuestionnaireNavigationViewUIState = QuestionnaireNavigationViewUIState.Hidden, val navReview: QuestionnaireNavigationViewUIState = QuestionnaireNavigationViewUIState.Hidden)
Link copied to clipboard

Questionnaire item view holder types supported by default by the data capture library.

Link copied to clipboard
interface UrlResolver

Resolves media content based on the provided URL, allowing the library to render media content in its UI.

Link copied to clipboard
fun interface XFhirQueryResolver

Resolves resources based on the provided xFhir query. This allows the library to resolve x-fhir-query answer expressions.