Skip to content

Commit

Permalink
Merge pull request #170 from MeasureAuthoringTool/MADIEJAVAMODELSFINAL
Browse files Browse the repository at this point in the history
madie-java-models 0.6.8 final deploy
  • Loading branch information
gregory-akins authored Oct 18, 2023
2 parents 39c8a78 + a07a53e commit effc311
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
<dependency>
<groupId>gov.cms.madie</groupId>
<artifactId>madie-java-models</artifactId>
<version>0.6.8-SNAPSHOT</version>
<version>0.6.8</version>
</dependency>
<dependency>
<groupId>com.jayway.jsonpath</groupId>
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 @@ -130,7 +130,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 effc311

Please sign in to comment.