001package org.hl7.fhir.r5.profilemodel.gen;
002
003import org.hl7.fhir.r5.model.Base;
004import org.hl7.fhir.r5.profilemodel.PEInstance;
005
006public class PEGeneratedBase {
007
008  protected PEInstance instance;
009  
010  protected void removeChild(String name) {
011    PEInstance child = instance.child(name);
012    if (child != null) {
013      instance.removeChild(child);
014    }
015  }
016
017  protected void removeChildren(String name) {
018    for (PEInstance child : instance.children(name)) {
019      instance.removeChild(child);
020    }
021  }
022
023  public PEInstance getInstance() {
024    return instance;
025  }
026  
027  public Base getData() {
028    return instance.getBase();
029  }
030  
031}
032