Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#342 include uri in results if canonical url…
Browse files Browse the repository at this point in the history
… is not present
  • Loading branch information
Harsh Patel committed Jan 27, 2021
1 parent a2438ea commit 7307af2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private void addCompose(ValueSet valueSet, Collection collection, boolean includ
// way to get only concepts that we care about and not retrieve whole list. This has improved performance and consumes less memory
Optional<Concept> conceptOpt = oclFhirUtil.getSourceConcept(source, conceptId, conceptVersion);
conceptOpt.ifPresent(c -> {
populateCompose(valueSet, includeConceptDesignation, c, source.getCanonicalUrl()
populateCompose(valueSet, includeConceptDesignation, c, isValid(source.getCanonicalUrl()) ? source.getCanonicalUrl() : source.getUri()
, source.getVersion(), source.getDefaultLocale());
});
}
Expand Down

0 comments on commit 7307af2

Please sign in to comment.