Skip to content

Commit

Permalink
MAT-7348: Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmcphillips committed Jul 12, 2024
1 parent a8b5490 commit e5a46fc
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.reactive.function.client.WebClient;
import org.springframework.web.util.UriComponentsBuilder;
import reactor.core.publisher.Mono;

import java.net.URI;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
Expand Down Expand Up @@ -84,8 +81,13 @@ public String searchValueSets(String apiKey, Map<String, String> queryParams) {
}

// Manually construct the query string
String queryString = queryParams.entrySet().stream()
.map(entry -> URLEncoder.encode(entry.getKey(), StandardCharsets.UTF_8) + "=" + URLEncoder.encode(entry.getValue(), StandardCharsets.UTF_8))
String queryString =
queryParams.entrySet().stream()
.map(
entry ->
URLEncoder.encode(entry.getKey(), StandardCharsets.UTF_8)
+ "="
+ URLEncoder.encode(entry.getValue(), StandardCharsets.UTF_8))
.collect(Collectors.joining("&"));

String url = searchValueSetEndpoint + "?" + queryString;
Expand Down Expand Up @@ -120,8 +122,6 @@ public String getCodeResource(String code, CodeSystem codeSystem, String apiKey)
}

private String fetchResourceFromVsac(String uri, String apiKey, String resourceType) {
var currentUri = uri;
log.info("[{}] currentUri is", currentUri);
return fhirTerminologyWebClient
.get()
.uri(uri)
Expand Down

0 comments on commit e5a46fc

Please sign in to comment.