Fix problem loading old style packages not suitable for lazy loading.

This commit is contained in:
Grahame Grieve 2020-08-10 15:51:59 +10:00
parent 1af6268fa8
commit 74c11cfec1
1 changed files with 1 additions and 1 deletions

View File

@ -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" };