Skip to content

Commit

Permalink
MAT-7310: Append includeDraft=true to FHIR Term requests when Latest …
Browse files Browse the repository at this point in the history
…is selected (manifest is null).

This will match our SVS "Latest" request style of always including drafts.
  • Loading branch information
jkotanchik-SB committed Jun 11, 2024
1 parent 37ff2ce commit 355072d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ public static URI buildValueSetResourceUri(
} else if (manifestExpansion != null
&& StringUtils.isNotBlank(manifestExpansion.getFullUrl())) {
params.put("manifest", List.of(manifestExpansion.getFullUrl()));
} else if (StringUtils.isNotBlank(includeDraft)) {
params.put("includeDraft", List.of("true"));

Check warning on line 128 in src/main/java/gov/cms/madie/terminology/util/TerminologyServiceUtil.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/gov/cms/madie/terminology/util/TerminologyServiceUtil.java#L128

Added line #L128 was not covered by tests
}
return UriComponentsBuilder.fromPath(expandValueSetUri).queryParams(params).build().toUri();
}
Expand Down

0 comments on commit 355072d

Please sign in to comment.