Skip to content

Commit

Permalink
add replacepatientrefs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaplan committed Sep 25, 2023
1 parent e5caa7a commit e27f4fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,9 @@ public TestCase updateTestCase(
validatedTestCase.setJson(
QiCoreJsonUtil.updateResourceFullUrls(validatedTestCase, madieJsonResourcesBaseUri));
}
validatedTestCase.setJson(
QiCoreJsonUtil.replacePatientRefs(
validatedTestCase.getJson(), validatedTestCase.getPatientId().toString()));
measure.getTestCases().add(validatedTestCase);

measureRepository.save(measure);
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/cms/gov/madie/measure/utils/QiCoreJsonUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ public static String updateResourceFullUrls(TestCase testCase, String madieJsonR
return testCase.getJson();
}

// update full urls for non-patient resources

protected static String jsonNodeToString(ObjectMapper objectMapper, JsonNode rootNode) {
ByteArrayOutputStream bout = new ByteArrayOutputStream();
try {
Expand Down

0 comments on commit e27f4fe

Please sign in to comment.