-
Notifications
You must be signed in to change notification settings - Fork 302
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
enable allow-duplicates in worker-context #2230
Conversation
@dubdabasoduba @owais-vd thanks for this pr - can you please update the pr description to explain why this is needed and link to an issue? thanks! |
- Disable eTAGS - Minor Data Capture release with PR google#2230
- With unmerged PR #11 - Wup google#1669 - Wup #9 - Wup google#2178 - Wup #10 - Wup google#2230 - Wup google#2262
Hi @jingtang10 Getting the following exception because of For testing purposes, I extracted the I think this should be fixed here https://github.com/WorldHealthOrganization/smart-immunizations org.hl7.fhir.exceptions.DefinitionException: Duplicate Resource http://fhir.org/guides/who/core/ValueSet/pregnancystatus-val
at org.hl7.fhir.r4.context.BaseWorkerContext.cacheResource(BaseWorkerContext.java:182)
at org.hl7.fhir.r4.context.SimpleWorkerContext.loadFromFileJson(SimpleWorkerContext.java:276)
at org.hl7.fhir.r4.context.SimpleWorkerContext.loadDefinitionItem(SimpleWorkerContext.java:221)
at org.hl7.fhir.r4.context.SimpleWorkerContext.loadFromPackage(SimpleWorkerContext.java:295)
at org.hl7.fhir.r4.context.SimpleWorkerContext.fromPackage(SimpleWorkerContext.java:159)
at com.google.android.fhir.datacapture.DataCaptureConfig$simpleWorkerContext$2.invoke(DataCaptureConfig.kt:74)
at com.google.android.fhir.datacapture.DataCaptureConfig$simpleWorkerContext$2.invoke(DataCaptureConfig.kt:73)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at com.google.android.fhir.datacapture.DataCaptureConfig.getSimpleWorkerContext$datacapture_release(DataCaptureConfig.kt:
at com.google.android.fhir.datacapture.mapping.ResourceMapper.extractByStructureMap(ResourceMapper.kt:204)
at com.google.android.fhir.datacapture.mapping.ResourceMapper.extract(ResourceMapper.kt:142)
at com.google.android.fhir.datacapture.mapping.ResourceMapper.extract$default(ResourceMapper.kt:106)
at org.smartregister.fhircore.quest.ui.questionnaire.QuestionnaireViewModel.performExtraction(QuestionnaireViewModel.kt:4
at org.smartregister.fhircore.quest.ui.questionnaire.QuestionnaireViewModel$handleQuestionnaireSubmission$1.invokeSuspend cc: @dubdabasoduba |
closing this PR as we no longer need this |
IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #[issue number]
Description
Clear and concise code change description.
Alternative(s) considered
Have you considered any alternatives? And if so, why have you chosen the approach in this PR?
Type
Choose one: (Bug fix | Feature | Documentation | Testing | Code health | Builds | Releases | Other)
Screenshots (if applicable)
Checklist
./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the style guide of this project../gradlew check
and./gradlew connectedCheck
to test my changes locally.