/** * @return The first repetition of repeating field {@link #page}, creating it if it does not already exist */ public ImplementationGuidePageComponent getPageFirstRep() { if (getPage().isEmpty()) { addPage(); } return getPage().get(0); }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("source")) { throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.source"); } else if (name.equals("title")) { throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.title"); } else if (name.equals("kind")) { throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.kind"); } else if (name.equals("type")) { throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.type"); } else if (name.equals("package")) { throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.package"); } else if (name.equals("format")) { throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.format"); } else if (name.equals("page")) { return addPage(); } else return super.addChild(name); }
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; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -896505829: return getSourceElement(); case 110371416: return getTitleElement(); case 3292052: return getKindElement(); case 3575610: return addTypeElement(); case -807062458: return addPackageElement(); case -1268779017: return getFormatElement(); case 3433103: return addPage(); default: return super.makeProperty(hash, name); } }
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; }