From 355072d725c6f7b4986244f255fbdee511c1b342 Mon Sep 17 00:00:00 2001 From: Joseph Kotanchik Date: Tue, 11 Jun 2024 15:16:09 -0400 Subject: [PATCH] MAT-7310: Append includeDraft=true to FHIR Term requests when Latest is selected (manifest is null). This will match our SVS "Latest" request style of always including drafts. --- .../gov/cms/madie/terminology/util/TerminologyServiceUtil.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/gov/cms/madie/terminology/util/TerminologyServiceUtil.java b/src/main/java/gov/cms/madie/terminology/util/TerminologyServiceUtil.java index ac5e612..dc36517 100644 --- a/src/main/java/gov/cms/madie/terminology/util/TerminologyServiceUtil.java +++ b/src/main/java/gov/cms/madie/terminology/util/TerminologyServiceUtil.java @@ -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")); } return UriComponentsBuilder.fromPath(expandValueSetUri).queryParams(params).build().toUri(); }