Skip to content

Commit

Permalink
Merge branch 'mwcore-dev' into mwcore-migrate-auth-code
Browse files Browse the repository at this point in the history
  • Loading branch information
LZRS authored Jul 28, 2023
2 parents 59d95d4 + 63aedca commit 49fc301
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ constructor(
if (entry.resource is Observation) {
val code = (entry.resource as Observation).code.coding.first().code.toString()
if (code.contains(questionnaireLogicalId)) bundle.addEntry(entry)
}
} else bundle.addEntry(entry)
}
return bundle
}
Expand All @@ -631,13 +631,13 @@ constructor(
val resourcesList = mutableListOf<Resource>()

intent.getStringArrayListExtra(QuestionnaireActivity.QUESTIONNAIRE_POPULATION_RESOURCES)?.run {
var bundle = Bundle()
val bundle = Bundle()
forEach {
val resource = jsonParser.parseResource(it) as Resource
if (resource !is Bundle) {
resourcesList.add(jsonParser.parseResource(it) as Resource)
} else {
bundle = extractRelevantObservation(resource, questionnaireLogicalId)
bundle.entry.addAll(extractRelevantObservation(resource, questionnaireLogicalId).entry)
}
}
resourcesList.add(bundle)
Expand All @@ -664,7 +664,6 @@ constructor(
system = QuestionnaireActivity.WHO_IDENTIFIER_SYSTEM
}
)
Timber.e(jsonParser.encodeResourceToString(this))
}

resourcesList.add(this)
Expand Down Expand Up @@ -715,8 +714,6 @@ constructor(
loadRelatedPerson(patientId)?.forEach { resourcesList.add(it) }
}
}
Timber.e(resourcesList.joinToString("\n") { jsonParser.encodeResourceToString(it) })

return resourcesList.toTypedArray()
}

Expand Down
8 changes: 4 additions & 4 deletions android/quest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,15 @@ android {
dimension "apps"
applicationIdSuffix ".mwcore"
versionNameSuffix "-mwcore"
versionCode 19
versionName "0.1.9"
versionCode 20
versionName "0.1.10"
}
mwcoreDev {
dimension "apps"
applicationIdSuffix ".mwcoreDev"
versionNameSuffix "-mwcoreDev"
versionCode 19
versionName "0.1.9"
versionCode 20
versionName "0.1.10"
}
afyayangu {
dimension "apps"
Expand Down

0 comments on commit 49fc301

Please sign in to comment.