PdfLauncherViewModel

class PdfLauncherViewModel @Inject constructor(val defaultRepository: DefaultRepository) : ViewModel

ViewModel for managing PDF generation related operations.

This ViewModel provides methods for retrieving QuestionnaireResponse and Binary resources required for generating PDFs.

Parameters

defaultRepository

The repository for accessing local data.

Constructors

Link copied to clipboard
@Inject
constructor(defaultRepository: DefaultRepository)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
Link copied to clipboard
suspend fun retrieveBinary(binaryId: String): Binary?

Retrieve the Binary resource for the given binary ID.

Link copied to clipboard
suspend fun retrieveQuestionnaireResponse(questionnaireId: String, subjectId: String, subjectType: ResourceType): QuestionnaireResponse?

Retrieve the QuestionnaireResponse for the given questionnaire and subject.