fix failing JUnit test

This commit is contained in:
Grahame Grieve 2022-02-26 06:42:43 +11:00
parent 503021c9a6
commit a5060d9475
1 changed files with 6 additions and 1 deletions

View File

@ -239,7 +239,12 @@ public class FHIRPathEngine {
if (type != null) {
return tn.equals(type);
} else {
return element.hasType(tn);
for (TypeRefComponent t : element.getType()) {
if (tn.equals(t.getCode())) {
return true;
}
}
return false;
}
}
}