diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/VSACImporter.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/VSACImporter.java index cfe79e773..432a4dc1b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/VSACImporter.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/VSACImporter.java @@ -32,6 +32,7 @@ import org.hl7.fhir.r4.terminologies.JurisdictionUtilities; import org.hl7.fhir.utilities.CSVReader; import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.utilities.filesystem.ManagedFileAccess; +import org.hl7.fhir.utilities.http.ManagedWebAccess; import org.hl7.fhir.utilities.json.model.JsonArray; import org.hl7.fhir.utilities.json.model.JsonObject; import org.hl7.fhir.utilities.json.model.JsonProperty; @@ -53,9 +54,8 @@ public class VSACImporter extends OIDBasedValueSetImporter { csv.readHeaders(); Map errs = new HashMap<>(); + ManagedWebAccess.loadFromFHIRSettings(); FHIRToolingClient fhirToolingClient = new FHIRToolingClient("https://cts.nlm.nih.gov/fhir", "fhir/vsac"); - fhirToolingClient.setUsername("apikey"); - fhirToolingClient.setPassword(apiKey); fhirToolingClient.setTimeoutNormal(30000); fhirToolingClient.setTimeoutExpand(30000);