Skip to content

Commit

Permalink
Fix measure reporting 🚑️
Browse files Browse the repository at this point in the history
  • Loading branch information
ndegwamartin committed Feb 7, 2025
1 parent 6d4ba40 commit 0f9d9b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion android/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fhir-sdk-contrib-locationwidget = "0.1.0-alpha01-preview2-rc1-SNAPSHOT"
fhir-sdk-data-capture = "1.3.0-preview-SNAPSHOT"
fhir-sdk-engine = "1.2.0-preview-SNAPSHOT"
fhir-sdk-knowledge = "0.1.0-beta01-preview1-SNAPSHOT"
fhir-sdk-workflow = "0.1.0-beta01-preview2-SNAPSHOT"
fhir-sdk-workflow = "0.1.0-beta01-preview4.1-SNAPSHOT"
fragment-ktx = "1.8.5"
glide = "4.16.0"
gradle = "8.3.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ constructor(
startDateFormatted = startDateFormatted,
endDateFormatted = endDateFormatted,
subject = it,
practitionerId = practitionerId,
)
}
.forEach { subject -> measureReport.add(subject) }
Expand All @@ -114,7 +113,6 @@ constructor(
startDateFormatted = startDateFormatted,
endDateFormatted = endDateFormatted,
subject = null,
practitionerId = practitionerId,
)
.also { measureReport.add(it) }
}
Expand Down Expand Up @@ -153,7 +151,6 @@ constructor(
startDateFormatted: String,
endDateFormatted: String,
subject: String?,
practitionerId: String?,
): MeasureReport {
return withContext(dispatcherProvider.io()) {
try {
Expand All @@ -166,7 +163,8 @@ constructor(
end = endDateFormatted,
reportType = reportType,
subjectId = subject,
practitioner = practitionerId.takeIf { it?.isNotBlank() == true },
additionalData = null,
parameters = null,
)
} catch (exception: IllegalArgumentException) {
Timber.e(exception)
Expand Down

0 comments on commit 0f9d9b3

Please sign in to comment.