Fix bug with erroneous warning in IG publisher log about profile not found

This commit is contained in:
Grahame Grieve 2023-06-24 09:06:01 +10:00
parent 3570bcb07f
commit 189c3c7b7d
1 changed files with 1 additions and 1 deletions

View File

@ -2267,7 +2267,7 @@ public class ProfileUtilities extends TranslatingUtilities {
}
if (profile==null) {
profile = source.getType().size() == 1 && source.getTypeFirstRep().hasProfile() ? context.fetchResource(StructureDefinition.class, source.getTypeFirstRep().getProfile().get(0).getValue(), derivedSrc) : null;
if (profile != null && !"Extension".equals(profile.getType())) {
if (profile != null && !"Extension".equals(profile.getType()) && profile.getKind() != StructureDefinitionKind.RESOURCE) {
profile = null;
}
}