diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/Element.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/Element.java index 54785abcb..708ea6854 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/Element.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/Element.java @@ -975,4 +975,8 @@ public class Element extends Base { public List getMessages() { return messages; } + + public void removeChild(String name) { + children.removeIf(n -> name.equals(n.getName())); + } } \ No newline at end of file