Skip to content

Commit

Permalink
MAT-6393: Massage data if oid no url provided
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmcphillips committed May 22, 2024
1 parent ef7d1fc commit b0b39b8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ public String getCodeSystemsPage(Integer offset, Integer count, String apiKey) {
public String searchValueSets(String apiKey, Map<String, String> 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;
Expand Down

0 comments on commit b0b39b8

Please sign in to comment.