@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 #request} (Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry.) */ public BundleEntryRequestComponent getRequest() { if (this.request == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create BundleEntryComponent.request"); else if (Configuration.doAutoCreate()) this.request = new BundleEntryRequestComponent(); // cc return this.request; }
@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.BundleEntryRequestComponent convertBundleEntryRequestComponent(org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryRequestComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent(); copyElement(src, tgt); tgt.setMethod(convertHTTPVerb(src.getMethod())); tgt.setUrl(src.getUrl()); if (src.hasIfNoneMatch()) tgt.setIfNoneMatch(src.getIfNoneMatch()); if (src.hasIfModifiedSince()) tgt.setIfModifiedSince(src.getIfModifiedSince()); if (src.hasIfMatch()) tgt.setIfMatch(src.getIfMatch()); if (src.hasIfNoneExist()) tgt.setIfNoneExist(src.getIfNoneExist()); return tgt; }
public org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent convertBundleEntryRequestComponent(org.hl7.fhir.instance.model.Bundle.BundleEntryRequestComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent(); copyElement(src, tgt); tgt.setMethod(convertHTTPVerb(src.getMethod())); tgt.setUrl(src.getUrl()); tgt.setIfNoneMatch(src.getIfNoneMatch()); tgt.setIfModifiedSince(src.getIfModifiedSince()); tgt.setIfMatch(src.getIfMatch()); tgt.setIfNoneExist(src.getIfNoneExist()); return tgt; }
public BundleEntryRequestComponent copy() { BundleEntryRequestComponent dst = new BundleEntryRequestComponent(); copyValues(dst); dst.method = method == null ? null : method.copy(); dst.url = url == null ? null : url.copy(); dst.ifNoneMatch = ifNoneMatch == null ? null : ifNoneMatch.copy(); dst.ifModifiedSince = ifModifiedSince == null ? null : ifModifiedSince.copy(); dst.ifMatch = ifMatch == null ? null : ifMatch.copy(); dst.ifNoneExist = ifNoneExist == null ? null : ifNoneExist.copy(); return dst; }
/** * @return {@link #request} (Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry.) */ public BundleEntryRequestComponent getRequest() { if (this.request == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create BundleEntryComponent.request"); else if (Configuration.doAutoCreate()) this.request = new BundleEntryRequestComponent(); // cc return this.request; }
public static org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent convertBundleEntryRequestComponent(org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryRequestComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent(); copyElement(src, tgt); tgt.setMethod(convertHTTPVerb(src.getMethod())); tgt.setUrl(src.getUrl()); if (src.hasIfNoneMatch()) tgt.setIfNoneMatch(src.getIfNoneMatch()); if (src.hasIfModifiedSince()) tgt.setIfModifiedSince(src.getIfModifiedSince()); if (src.hasIfMatch()) tgt.setIfMatch(src.getIfMatch()); if (src.hasIfNoneExist()) tgt.setIfNoneExist(src.getIfNoneExist()); return tgt; }
public BundleEntryRequestComponent copy() { BundleEntryRequestComponent dst = new BundleEntryRequestComponent(); copyValues(dst); dst.method = method == null ? null : method.copy(); dst.url = url == null ? null : url.copy(); dst.ifNoneMatch = ifNoneMatch == null ? null : ifNoneMatch.copy(); dst.ifModifiedSince = ifModifiedSince == null ? null : ifModifiedSince.copy(); dst.ifMatch = ifMatch == null ? null : ifMatch.copy(); dst.ifNoneExist = ifNoneExist == null ? null : ifNoneExist.copy(); return dst; }
public org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent convertBundleEntryRequestComponent(org.hl7.fhir.instance.model.Bundle.BundleEntryRequestComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent(); copyElement(src, tgt); tgt.setMethod(convertHTTPVerb(src.getMethod())); tgt.setUrl(src.getUrl()); tgt.setIfNoneMatch(src.getIfNoneMatch()); tgt.setIfModifiedSince(src.getIfModifiedSince()); tgt.setIfMatch(src.getIfMatch()); tgt.setIfNoneExist(src.getIfNoneExist()); return tgt; }