/** * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist */ public Identifier getIdentifierFirstRep() { if (getIdentifier().isEmpty()) { addIdentifier(); } return getIdentifier().get(0); }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier();
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -1618432855: return addIdentifier(); case -1422950650: return getActiveElement(); case 3575610: return addType(); case 3373707: return getNameElement(); case 92902992: return addAliasElement(); case -1429363305: return addTelecom(); case -1147692044: return addAddress(); case -995410646: return getPartOf(); case 951526432: return addContact(); case 1741102485: return addEndpoint(); default: return super.makeProperty(hash, name); } }
/** * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist */ public Identifier getIdentifierFirstRep() { if (getIdentifier().isEmpty()) { addIdentifier(); } return getIdentifier().get(0); }
public org.hl7.fhir.r4.model.Organization convertOrganization(org.hl7.fhir.instance.model.Organization src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Organization tgt = new org.hl7.fhir.r4.model.Organization(); copyDomainResource(src, tgt); for (org.hl7.fhir.instance.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); tgt.setActive(src.getActive()); tgt.addType(convertCodeableConcept(src.getType())); tgt.setName(src.getName()); for (org.hl7.fhir.instance.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(convertContactPoint(t)); for (org.hl7.fhir.instance.model.Address t : src.getAddress()) tgt.addAddress(convertAddress(t)); tgt.setPartOf(convertReference(src.getPartOf())); for (org.hl7.fhir.instance.model.Organization.OrganizationContactComponent t : src.getContact()) tgt.addContact(convertOrganizationContactComponent(t)); return tgt; }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier();
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -1618432855: return addIdentifier(); case -1422950650: return getActiveElement(); case 3575610: return addType(); case 3373707: return getNameElement(); case 92902992: return addAliasElement(); case -1429363305: return addTelecom(); case -1147692044: return addAddress(); case -995410646: return getPartOf(); case 951526432: return addContact(); case 1741102485: return addEndpoint(); default: return super.makeProperty(hash, name); } }
public org.hl7.fhir.r4.model.Organization convertOrganization(org.hl7.fhir.instance.model.Organization src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Organization tgt = new org.hl7.fhir.r4.model.Organization(); copyDomainResource(src, tgt); for (org.hl7.fhir.instance.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); tgt.setActive(src.getActive()); tgt.addType(convertCodeableConcept(src.getType())); tgt.setName(src.getName()); for (org.hl7.fhir.instance.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(convertContactPoint(t)); for (org.hl7.fhir.instance.model.Address t : src.getAddress()) tgt.addAddress(convertAddress(t)); tgt.setPartOf(convertReference(src.getPartOf())); for (org.hl7.fhir.instance.model.Organization.OrganizationContactComponent t : src.getContact()) tgt.addContact(convertOrganizationContactComponent(t)); return tgt; }