fix bug with base definitions not working properly for logical models

This commit is contained in:
Grahame Grieve 2021-04-21 17:38:54 +10:00
parent 3f219b7550
commit 78ab95ff1c
1 changed files with 1 additions and 1 deletions

View File

@ -2989,7 +2989,7 @@ public class ProfileUtilities extends TranslatingUtilities {
}
if (!ok) {
StructureDefinition sdt = context.fetchTypeDefinition(tt);
if (sdt != null && sdt.getAbstract()) {
if (sdt != null && (sdt.getAbstract() || sdt.getKind() == StructureDefinitionKind.LOGICAL)) {
StructureDefinition sdb = context.fetchTypeDefinition(t);
while (sdb != null && !ok) {
ok = sdb.getType().equals(sdt.getType());