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.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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.