workaround problem laoding R3 package

This commit is contained in:
Grahame Grieve 2019-12-20 08:40:50 +11:00
parent 2472a75212
commit e6d804dcc1
2 changed files with 7 additions and 2 deletions

View File

@ -222,8 +222,13 @@ public abstract class BaseWorkerContext implements IWorkerContext {
if (r instanceof MetadataResource) {
MetadataResource m = (MetadataResource) r;
String url = m.getUrl();
if (!allowLoadingDuplicates && hasResource(r.getClass(), url))
if (!allowLoadingDuplicates && hasResource(r.getClass(), url)) {
// spcial workaround for known problems with existing packages
if (Utilities.existsInList(url, "http://hl7.org/fhir/SearchParameter/example")) {
return;
}
throw new DefinitionException("Duplicate Resource " + url);
}
if (r instanceof StructureDefinition)
structures.see((StructureDefinition) m);
else if (r instanceof ValueSet)

View File

@ -17,7 +17,7 @@
<properties>
<hapi_fhir_version>4.1.0</hapi_fhir_version>
<validator_test_case_version>1.0.24-SNAPSHOT</validator_test_case_version>
<validator_test_case_version>1.0.25-SNAPSHOT</validator_test_case_version>
</properties>
<artifactId>org.hl7.fhir.core</artifactId>