-
Notifications
You must be signed in to change notification settings - Fork 37
Add NPM package loader classes as a first step to introducing wider NPM functionality #724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
d2f0b73
533dba6
008137c
b9a2fa5
49d391a
3cfeec3
4cebd93
52cc66d
7704709
fbc36c2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,8 +33,8 @@ | |
| import org.opencds.cqf.fhir.utility.Canonicals; | ||
| import org.opencds.cqf.fhir.utility.Constants; | ||
| import org.opencds.cqf.fhir.utility.SearchHelper; | ||
| import org.opencds.cqf.fhir.utility.VersionComparator; | ||
| import org.opencds.cqf.fhir.utility.VersionUtilities; | ||
| import org.opencds.cqf.fhir.utility.Versions; | ||
| import org.slf4j.Logger; | ||
| import org.slf4j.LoggerFactory; | ||
|
|
||
|
|
@@ -338,12 +338,11 @@ static boolean isSupportedMetadataResource(IBaseResource resource) { | |
| } | ||
|
|
||
| static Optional<IDomainResource> findLatestVersion(IBaseBundle bundle) { | ||
| var versionComparator = new VersionComparator(); | ||
| var sorted = BundleHelper.getEntryResources(bundle).stream() | ||
| .filter(IKnowledgeArtifactAdapter::isSupportedMetadataResource) | ||
| .map(r -> (IKnowledgeArtifactAdapter) IAdapterFactory.forFhirVersion(r.getStructureFhirVersionEnum()) | ||
| .createResource(r)) | ||
| .sorted((a, b) -> versionComparator.compare(a.getVersion(), b.getVersion())) | ||
| .sorted((a, b) -> Versions.compareVersions(a.getVersion(), b.getVersion())) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar question, is this change needed by this PR? |
||
| .toList(); | ||
| if (!sorted.isEmpty()) { | ||
| return Optional.of(sorted.get(sorted.size() - 1).get()); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,10 @@ | ||
| package org.opencds.cqf.fhir.utility.adapter; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| /** | ||
| * This interface exposes common functionality across all FHIR Questionnaire versions. | ||
| */ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Comment seems wrong? |
||
| public interface IMeasureAdapter extends IKnowledgeArtifactAdapter {} | ||
| public interface IMeasureAdapter extends IKnowledgeArtifactAdapter { | ||
| List<String> getLibrary(); | ||
| } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we have a PR that is just for the Measure adapter? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in this file seem like formatting changes? Do we really need to make these changes as part of this PR?