Skip to content

Commit

Permalink
Revert change to supportsSystem method and fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
codeforgreen committed Nov 23, 2024
1 parent c37ed40 commit 2091291
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@
*/
public interface ITermReadSvc extends IValidationSupport {

@Override
default String getName() {
return getClass().getSimpleName() + " JPA Term Read Service";
}

ValueSet expandValueSet(
@Nullable ValueSetExpansionOptions theExpansionOptions, @Nonnull String theValueSetCanonicalUrl);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1530,7 +1530,7 @@ public void validateResource_withUnknownMetaProfileurl_validatesButLogsWarning()
// we have errors
assertFalse(errors.isEmpty());

LogbackTestExtensionAssert.assertThat(myLogbackTestExtension).hasWarnMessage("Unrecognized profile uri");
LogbackTestExtensionAssert.assertThat(myLogbackTestExtension).hasWarnMessage("Unrecognized resource uri");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,9 @@ public void setLogger(@Nonnull org.hl7.fhir.r5.context.ILoggingService logger) {

@Override
public boolean supportsSystem(String system) {
return hasResource(CodeSystem.class, system);
return myValidationSupportContext
.getRootValidationSupport()
.isCodeSystemSupported(myValidationSupportContext, system);
}

@Override
Expand Down

0 comments on commit 2091291

Please sign in to comment.