public ImplementationGuidePageComponent addPage() { //3 ImplementationGuidePageComponent t = new ImplementationGuidePageComponent(); if (this.page == null) this.page = new ArrayList<ImplementationGuidePageComponent>(); this.page.add(t); return t; }
public ImplementationGuidePageComponent copy() { ImplementationGuidePageComponent dst = new ImplementationGuidePageComponent(); copyValues(dst); dst.source = source == null ? null : source.copy(); dst.title = title == null ? null : title.copy(); dst.kind = kind == null ? null : kind.copy(); if (type != null) { dst.type = new ArrayList<CodeType>(); for (CodeType i : type) dst.type.add(i.copy()); }; if (package_ != null) { dst.package_ = new ArrayList<StringType>(); for (StringType i : package_) dst.package_.add(i.copy()); }; dst.format = format == null ? null : format.copy(); if (page != null) { dst.page = new ArrayList<ImplementationGuidePageComponent>(); for (ImplementationGuidePageComponent i : page) dst.page.add(i.copy()); }; return dst; }
this.page = new ImplementationGuidePageComponent(); return this.page;
public static org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent convertImplementationGuidePageComponent(org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent(); copyElement(src, tgt); tgt.setSource(src.getSource()); tgt.setTitle(src.getName()); tgt.setKind(convertGuidePageKind(src.getKind())); for (org.hl7.fhir.dstu2016may.model.CodeType t : src.getType()) tgt.addType(t.getValue()); for (org.hl7.fhir.dstu2016may.model.StringType t : src.getPackage()) tgt.addPackage(t.getValue()); if (src.hasFormat()) tgt.setFormat(src.getFormat()); for (org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t)); return tgt; }
public org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent convertImplementationGuidePageComponent(org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuidePageComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent(); copyElement(src, tgt); tgt.setSource(src.getSource()); tgt.setTitle(src.getName()); tgt.setKind(convertGuidePageKind(src.getKind())); for (org.hl7.fhir.instance.model.CodeType t : src.getType()) tgt.addType(t.getValue()); for (org.hl7.fhir.instance.model.StringType t : src.getPackage()) tgt.addPackage(t.getValue()); tgt.setFormat(src.getFormat()); for (org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t)); return tgt; }
/** * @return {@link #page} (A page / section in the implementation guide. The root page is the implementation guide home page.) */ public ImplementationGuidePageComponent getPage() { if (this.page == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ImplementationGuide.page"); else if (Configuration.doAutoCreate()) this.page = new ImplementationGuidePageComponent(); // cc return this.page; }
public static org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent convertImplementationGuidePageComponent(org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent(); copyElement(src, tgt); tgt.setSource(src.getSource()); tgt.setTitle(src.getName()); tgt.setKind(convertGuidePageKind(src.getKind())); for (org.hl7.fhir.dstu2016may.model.CodeType t : src.getType()) tgt.addType(t.getValue()); for (org.hl7.fhir.dstu2016may.model.StringType t : src.getPackage()) tgt.addPackage(t.getValue()); if (src.hasFormat()) tgt.setFormat(src.getFormat()); for (org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t)); return tgt; }
public org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent convertImplementationGuidePageComponent(org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuidePageComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent(); copyElement(src, tgt); tgt.setSource(src.getSource()); tgt.setTitle(src.getName()); tgt.setKind(convertGuidePageKind(src.getKind())); for (org.hl7.fhir.instance.model.CodeType t : src.getType()) tgt.addType(t.getValue()); for (org.hl7.fhir.instance.model.StringType t : src.getPackage()) tgt.addPackage(t.getValue()); tgt.setFormat(src.getFormat()); for (org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t)); return tgt; }