@Override public Base addChild(String name) throws FHIRException { if (name.equals("link")) { return addLink(); } else if (name.equals("fullUrl")) { throw new FHIRException("Cannot call addChild on a primitive type Bundle.fullUrl"); } else if (name.equals("resource")) { throw new FHIRException("Cannot call addChild on an abstract type Bundle.resource"); } else if (name.equals("search")) { this.search = new BundleEntrySearchComponent(); return this.search; } else if (name.equals("request")) { this.request = new BundleEntryRequestComponent(); return this.request; } else if (name.equals("response")) { this.response = new BundleEntryResponseComponent(); return this.response; } else return super.addChild(name); }
/** * @return {@link #response} (Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history.) */ public BundleEntryResponseComponent getResponse() { if (this.response == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create BundleEntryComponent.response"); else if (Configuration.doAutoCreate()) this.response = new BundleEntryResponseComponent(); // cc return this.response; }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("link")) { return addLink(); } else if (name.equals("fullUrl")) { throw new FHIRException("Cannot call addChild on a primitive type Bundle.fullUrl"); } else if (name.equals("resource")) { throw new FHIRException("Cannot call addChild on an abstract type Bundle.resource"); } else if (name.equals("search")) { this.search = new BundleEntrySearchComponent(); return this.search; } else if (name.equals("request")) { this.request = new BundleEntryRequestComponent(); return this.request; } else if (name.equals("response")) { this.response = new BundleEntryResponseComponent(); return this.response; } else return super.addChild(name); }
public static org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent convertBundleEntryResponseComponent(org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryResponseComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent(); copyElement(src, tgt); tgt.setStatus(src.getStatus()); if (src.hasLocation()) tgt.setLocation(src.getLocation()); if (src.hasEtag()) tgt.setEtag(src.getEtag()); if (src.hasLastModified()) tgt.setLastModified(src.getLastModified()); return tgt; }
public org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent convertBundleEntryResponseComponent(org.hl7.fhir.instance.model.Bundle.BundleEntryResponseComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent(); copyElement(src, tgt); tgt.setStatus(src.getStatus()); tgt.setLocation(src.getLocation()); tgt.setEtag(src.getEtag()); tgt.setLastModified(src.getLastModified()); return tgt; }
/** * @return {@link #response} (Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history.) */ public BundleEntryResponseComponent getResponse() { if (this.response == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create BundleEntryComponent.response"); else if (Configuration.doAutoCreate()) this.response = new BundleEntryResponseComponent(); // cc return this.response; }
public BundleEntryResponseComponent copy() { BundleEntryResponseComponent dst = new BundleEntryResponseComponent(); copyValues(dst); dst.status = status == null ? null : status.copy(); dst.location = location == null ? null : location.copy(); dst.etag = etag == null ? null : etag.copy(); dst.lastModified = lastModified == null ? null : lastModified.copy(); dst.outcome = outcome == null ? null : outcome.copy(); return dst; }
public static org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent convertBundleEntryResponseComponent(org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryResponseComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent(); copyElement(src, tgt); tgt.setStatus(src.getStatus()); if (src.hasLocation()) tgt.setLocation(src.getLocation()); if (src.hasEtag()) tgt.setEtag(src.getEtag()); if (src.hasLastModified()) tgt.setLastModified(src.getLastModified()); return tgt; }
public org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent convertBundleEntryResponseComponent(org.hl7.fhir.instance.model.Bundle.BundleEntryResponseComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent(); copyElement(src, tgt); tgt.setStatus(src.getStatus()); tgt.setLocation(src.getLocation()); tgt.setEtag(src.getEtag()); tgt.setLastModified(src.getLastModified()); return tgt; }
public BundleEntryResponseComponent copy() { BundleEntryResponseComponent dst = new BundleEntryResponseComponent(); copyValues(dst); dst.status = status == null ? null : status.copy(); dst.location = location == null ? null : location.copy(); dst.etag = etag == null ? null : etag.copy(); dst.lastModified = lastModified == null ? null : lastModified.copy(); dst.outcome = outcome == null ? null : outcome.copy(); return dst; }