DataCaptureConfig

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.

NOTE: App developers should make sure that Provider.getDataCaptureConfig provides a constant DataCaptureConfig throughout the lifecycle of the application.

Constructors

Link copied to clipboard
constructor(valueSetResolverExternal: ExternalAnswerValueSetResolver? = null, xFhirQueryResolver: XFhirQueryResolver? = null, urlResolver: UrlResolver? = null, questionnaireItemViewHolderFactoryMatchersProviderFactory: QuestionnaireItemViewHolderFactoryMatchersProviderFactory? = null)

Types

Link copied to clipboard
interface Provider

A class that can provide the DataCaptureConfig for the Structured Data Capture Library. To do this, implement the DataCaptureConfig.Provider interface on your Application class. You should provide the same configuration throughout the lifecycle of your application. The library may cache the configuration and different configurations will be ignored.

Properties

Link copied to clipboard

Resolves a URL to the media binary content.

Link copied to clipboard

An ExternalAnswerValueSetResolver may be set to provide answer options dynamically for choice and open-choice type questions.

Link copied to clipboard

A XFhirQueryResolver may be set by the client to resolve x-fhir-query for the library. See https://build.fhir.org/ig/HL7/sdc/expressions.html#fhirquery for more details.