diff --git a/src/main/java/gov/cms/madie/terminology/webclient/FhirTerminologyServiceWebClient.java b/src/main/java/gov/cms/madie/terminology/webclient/FhirTerminologyServiceWebClient.java index 8d6d29b..4edf244 100644 --- a/src/main/java/gov/cms/madie/terminology/webclient/FhirTerminologyServiceWebClient.java +++ b/src/main/java/gov/cms/madie/terminology/webclient/FhirTerminologyServiceWebClient.java @@ -67,6 +67,10 @@ public String getCodeSystemsPage(Integer offset, Integer count, String apiKey) { public String searchValueSets(String apiKey, Map queryParams) { if (queryParams.containsKey("url")) { String urlValue = queryParams.get("url"); + // if the value does not contain the vsac url we add it + if (!urlValue.startsWith("http://cts.nlm.nih.gov/fhir/ValueSet/")) { + urlValue = "http://cts.nlm.nih.gov/fhir/ValueSet/" + urlValue; + } // if user didnt add htpp:// we do if (!urlValue.startsWith("http://")) { urlValue = "http://" + urlValue;