Skip to content

Commit

Permalink
Fix CodeSystem listing when no elements param
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicode committed Nov 2, 2023
1 parent 827e046 commit fa4f823
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/java/org/snomed/snowstormlite/fhir/FHIRHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;

import static java.lang.String.format;
import static org.snomed.snowstormlite.fhir.FHIRConstants.SNOMED_URI;
Expand Down Expand Up @@ -240,9 +239,11 @@ public static List<String> getParameterValueStringsOrEmpty(

public static List<String> getMultiValueParam(StringAndListParam elementsParam) {
List<String> elements = new ArrayList<>();
for (StringOrListParam valuesAsQueryToken : elementsParam.getValuesAsQueryTokens()) {
for (StringParam asQueryToken : valuesAsQueryToken.getValuesAsQueryTokens()) {
elements.add(asQueryToken.getValue());
if (elementsParam != null) {
for (StringOrListParam valuesAsQueryToken : elementsParam.getValuesAsQueryTokens()) {
for (StringParam asQueryToken : valuesAsQueryToken.getValuesAsQueryTokens()) {
elements.add(asQueryToken.getValue());
}
}
}
return elements;
Expand Down

0 comments on commit fa4f823

Please sign in to comment.