fix failing JUnit test
This commit is contained in:
parent
503021c9a6
commit
a5060d9475
|
@ -239,7 +239,12 @@ public class FHIRPathEngine {
|
||||||
if (type != null) {
|
if (type != null) {
|
||||||
return tn.equals(type);
|
return tn.equals(type);
|
||||||
} else {
|
} else {
|
||||||
return element.hasType(tn);
|
for (TypeRefComponent t : element.getType()) {
|
||||||
|
if (tn.equals(t.getCode())) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue