From 74c11cfec15102a1026f427761159e9cafffb9b4 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Mon, 10 Aug 2020 15:51:59 +1000 Subject: [PATCH] Fix problem loading old style packages not suitable for lazy loading. --- .../main/java/org/hl7/fhir/r5/context/SimpleWorkerContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/SimpleWorkerContext.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/SimpleWorkerContext.java index 6fe9cde60..b065504c5 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/SimpleWorkerContext.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/SimpleWorkerContext.java @@ -426,7 +426,7 @@ public class SimpleWorkerContext extends BaseWorkerContext implements IWorkerCon if (types.length == 0 && loader != null) { types = loader.getTypes(); } - if (VersionUtilities.isR2Ver(pi.fhirVersion())) { + if (VersionUtilities.isR2Ver(pi.fhirVersion()) || !pi.canLazyLoad()) { // can't lazy load R2 because of valueset/codesystem implementation if (types.length == 0) { types = new String[] { "StructureDefinition", "ValueSet", "SearchParameter", "OperationDefinition", "Questionnaire", "ConceptMap", "StructureMap", "NamingSystem" };