part of fix for type checking

This commit is contained in:
Grahame Grieve 2023-03-21 06:12:16 +11:00
parent 71a19710a0
commit 900faa2450
1 changed files with 14 additions and 0 deletions

View File

@ -1245,6 +1245,20 @@ public class StructureDefinition extends CanonicalResource {
return null; return null;
} }
public ElementDefinition getElementById(String id) {
if (id == null) {
return null;
}
for (ElementDefinition ed : getElement()) {
if (id.equals(ed.getId())) {
return ed;
}
}
return null;
}
// end addition // end addition
} }