diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/npm/NpmPackage.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/npm/NpmPackage.java index a42960fe7..359f4bb43 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/npm/NpmPackage.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/npm/NpmPackage.java @@ -361,13 +361,13 @@ public class NpmPackage { d = Utilities.path("package", d); } File ij = new File(Utilities.path(f.getAbsolutePath(), ".index.json")); - if (ij.exists()) { + if (ij.exists() || !minimalMemory) { NpmPackageFolder folder = this.new NpmPackageFolder(d); folder.folder = f; this.folders.put(d, folder); if (!minimalMemory) { try { - if (!folder.readIndex(JsonParser.parseObject(ij), folder.getTypes())) { + if (!ij.exists() || !folder.readIndex(JsonParser.parseObject(ij), folder.getTypes())) { indexFolder(folder.getFolderName(), folder); } } catch (Exception e) { diff --git a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/terminology/tests/ExternalTerminologyServiceTests.java b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/terminology/tests/ExternalTerminologyServiceTests.java index 229e8bb03..b4225c1d8 100644 --- a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/terminology/tests/ExternalTerminologyServiceTests.java +++ b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/terminology/tests/ExternalTerminologyServiceTests.java @@ -48,8 +48,8 @@ public class ExternalTerminologyServiceTests implements ITxTesterLoader { private JsonObject test; } -// private static final String SERVER = FhirSettings.getTxFhirDevelopment(); - private static final String SERVER = FhirSettings.getTxFhirLocal(); + private static final String SERVER = FhirSettings.getTxFhirDevelopment(); +// private static final String SERVER = FhirSettings.getTxFhirLocal(); // private static final String SERVER = "https://r4.ontoserver.csiro.au/fhir";