Skip to content

Commit

Permalink
MAT-7203: reference url followup (#217)
Browse files Browse the repository at this point in the history
* MAT-7203: change reference to relative url

* MAT-7203: change reference url property
  • Loading branch information
chubert-sb authored Jun 11, 2024
1 parent a3e5004 commit 0f2d1db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public class TestCaseBundleService {

private final FhirContext fhirContext;

@Value("${madie.url}")
private String madieUrl;
@Value("${madie.resource.url}")
private String madieResourceUrl;

public Map<String, Bundle> getTestCaseExportBundle(Measure measure, List<TestCase> testCases) {
if (measure == null || testCases == null || testCases.isEmpty()) {
Expand Down Expand Up @@ -288,7 +288,8 @@ private List<Reference> buildEvaluatedResource(Bundle testCaseBundle) {
.forEach(
entry ->
references.add(
new Reference(StringUtils.remove(entry.getResource().getId(), madieUrl))));
new Reference(
StringUtils.remove(entry.getResource().getId(), madieResourceUrl))));
return references;
}

Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ madie:
versioned:
uri: /cql-libraries/versioned
url: ${MADIE_URL:https://madie.cms.gov}
resource:
url: https://madie.cms.gov

#springdoc:
# swagger-ui:
Expand Down

0 comments on commit 0f2d1db

Please sign in to comment.