public OrganizationContactComponent addContact() { //3 OrganizationContactComponent t = new OrganizationContactComponent(); if (this.contact == null) this.contact = new ArrayList<OrganizationContactComponent>(); this.contact.add(t); return t; }
public OrganizationContactComponent copy() { OrganizationContactComponent dst = new OrganizationContactComponent(); copyValues(dst); dst.purpose = purpose == null ? null : purpose.copy(); dst.name = name == null ? null : name.copy(); if (telecom != null) { dst.telecom = new ArrayList<ContactPoint>(); for (ContactPoint i : telecom) dst.telecom.add(i.copy()); }; dst.address = address == null ? null : address.copy(); return dst; }
public OrganizationContactComponent addContact() { //3 OrganizationContactComponent t = new OrganizationContactComponent(); if (this.contact == null) this.contact = new ArrayList<OrganizationContactComponent>(); this.contact.add(t); return t; }
public OrganizationContactComponent copy() { OrganizationContactComponent dst = new OrganizationContactComponent(); copyValues(dst); dst.purpose = purpose == null ? null : purpose.copy(); dst.name = name == null ? null : name.copy(); if (telecom != null) { dst.telecom = new ArrayList<ContactPoint>(); for (ContactPoint i : telecom) dst.telecom.add(i.copy()); }; dst.address = address == null ? null : address.copy(); return dst; }
public org.hl7.fhir.r4.model.Organization.OrganizationContactComponent convertOrganizationContactComponent(org.hl7.fhir.instance.model.Organization.OrganizationContactComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Organization.OrganizationContactComponent tgt = new org.hl7.fhir.r4.model.Organization.OrganizationContactComponent(); copyElement(src, tgt); tgt.setPurpose(convertCodeableConcept(src.getPurpose())); tgt.setName(convertHumanName(src.getName())); for (org.hl7.fhir.instance.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(convertContactPoint(t)); tgt.setAddress(convertAddress(src.getAddress())); return tgt; }
public org.hl7.fhir.r4.model.Organization.OrganizationContactComponent convertOrganizationContactComponent(org.hl7.fhir.instance.model.Organization.OrganizationContactComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Organization.OrganizationContactComponent tgt = new org.hl7.fhir.r4.model.Organization.OrganizationContactComponent(); copyElement(src, tgt); tgt.setPurpose(convertCodeableConcept(src.getPurpose())); tgt.setName(convertHumanName(src.getName())); for (org.hl7.fhir.instance.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(convertContactPoint(t)); tgt.setAddress(convertAddress(src.getAddress())); return tgt; }