Skip to content

Commit

Permalink
MAT-6240: Upgrading cqframework
Browse files Browse the repository at this point in the history
  • Loading branch information
gregory-akins committed Oct 12, 2023
1 parent 39c8a78 commit 37de6ab
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<properties>
<java.version>17</java.version>
<springfox.version>3.0.0</springfox.version>
<cqframework.version>2.11.0</cqframework.version>
<cqframework.version>3.2.0</cqframework.version>
<hapi.fhir.r4.version>6.6.2</hapi.fhir.r4.version>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public ResponseEntity<byte[]> getTestCaseExportBundle(
if (testCaseId == null || testCaseId.isEmpty()) {
throw new ResourceNotFoundException("test cases", "measure", measure.getId());
}
//MAT-6204 Here we're modifying the bundle based on export choice,
// MAT-6204 Here we're modifying the bundle based on export choice,
// but we don't want to modify it permanently
testCaseBundleService.setExportBundleType(exportDTO, measure);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
import org.apache.commons.lang3.time.DateFormatUtils;
import org.hl7.fhir.r4.model.BooleanType;
import org.hl7.fhir.r4.model.Bundle;

import org.hl7.fhir.r4.model.Bundle.HTTPVerb;
import org.hl7.fhir.r4.model.Extension;
import org.hl7.fhir.r4.model.MarkdownType;
import org.hl7.fhir.r4.model.MeasureReport;
Expand Down Expand Up @@ -130,7 +128,6 @@ public void updateEntry(TestCase testCase, BundleType bundleType) {
entry -> {
if (bundleType == BundleType.TRANSACTION) {


FhirResourceHelpers.setResourceEntry(entry.getResource(), entry);
return entry;
} else if (bundleType == BundleType.COLLECTION) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ public static Bundle.BundleEntryComponent getBundleEntryComponent(
return entryComponent;
}

public static void setResourceEntry(Resource resource, Bundle.BundleEntryComponent entryComponent) {
Bundle.BundleEntryRequestComponent requestComponent =
new Bundle.BundleEntryRequestComponent()
.setMethod(Bundle.HTTPVerb.POST)
.setUrl(resource.getResourceType() + "/" + resource.getIdPart());
entryComponent.setRequest(requestComponent);
}
public static void setResourceEntry(
Resource resource, Bundle.BundleEntryComponent entryComponent) {
Bundle.BundleEntryRequestComponent requestComponent =
new Bundle.BundleEntryRequestComponent()
.setMethod(Bundle.HTTPVerb.POST)
.setUrl(resource.getResourceType() + "/" + resource.getIdPart());
entryComponent.setRequest(requestComponent);
}

public static Period getPeriodFromDates(Date startDate, Date endDate) {
return new Period()
Expand Down

0 comments on commit 37de6ab

Please sign in to comment.