Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor PDF config properties in QuestionnaireConfig #3498

Merged
merged 14 commits into from
Sep 27, 2024
Prev Previous commit
Next Next commit
spotless
  • Loading branch information
FikriMilano committed Sep 26, 2024
commit 98fa24e3da4e56bd662d88efb4a51a1aa4589953
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
questionnaireId: String,
subjectReference: String,
): QuestionnaireResponse? {
val searchQuery =
createQuestionnaireResponseSearchQuery(questionnaireId, subjectReference)
val searchQuery = createQuestionnaireResponseSearchQuery(questionnaireId, subjectReference)
return defaultRepository.search<QuestionnaireResponse>(searchQuery).maxByOrNull {
it.meta.lastUpdated
}
Expand All @@ -70,7 +69,7 @@
subjectReference: String,
): Search {
return Search(ResourceType.QuestionnaireResponse).apply {
filter(QuestionnaireResponse.SUBJECT, { value = subjectReference })

Check warning on line 72 in android/quest/src/main/java/org/smartregister/fhircore/quest/ui/pdf/PdfLauncherViewModel.kt

View check run for this annotation

Codecov / codecov/patch

android/quest/src/main/java/org/smartregister/fhircore/quest/ui/pdf/PdfLauncherViewModel.kt#L72

Added line #L72 was not covered by tests
filter(
QuestionnaireResponse.QUESTIONNAIRE,
{ value = "${ResourceType.Questionnaire}/$questionnaireId" },
Expand Down
Loading