public ContactComponent addContact() { //3 ContactComponent t = new ContactComponent(); if (this.contact == null) this.contact = new ArrayList<ContactComponent>(); this.contact.add(t); return t; }
public ContactComponent copy() { ContactComponent dst = new ContactComponent(); copyValues(dst); if (relationship != null) { dst.relationship = new ArrayList<CodeableConcept>(); for (CodeableConcept i : relationship) dst.relationship.add(i.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(); dst.gender = gender == null ? null : gender.copy(); dst.organization = organization == null ? null : organization.copy(); dst.period = period == null ? null : period.copy(); return dst; }
public ContactComponent addContact() { //3 ContactComponent t = new ContactComponent(); if (this.contact == null) this.contact = new ArrayList<ContactComponent>(); this.contact.add(t); return t; }
public ContactComponent copy() { ContactComponent dst = new ContactComponent(); copyValues(dst); if (relationship != null) { dst.relationship = new ArrayList<CodeableConcept>(); for (CodeableConcept i : relationship) dst.relationship.add(i.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(); dst.gender = gender == null ? null : gender.copy(); dst.organization = organization == null ? null : organization.copy(); dst.period = period == null ? null : period.copy(); return dst; }
public org.hl7.fhir.r4.model.Patient.ContactComponent convertContactComponent(org.hl7.fhir.instance.model.Patient.ContactComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Patient.ContactComponent tgt = new org.hl7.fhir.r4.model.Patient.ContactComponent(); copyElement(src, tgt); for (org.hl7.fhir.instance.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(convertCodeableConcept(t)); tgt.setName(convertHumanName(src.getName())); for (org.hl7.fhir.instance.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(convertContactPoint(t)); tgt.setAddress(convertAddress(src.getAddress())); tgt.setGender(convertAdministrativeGender(src.getGender())); tgt.setOrganization(convertReference(src.getOrganization())); tgt.setPeriod(convertPeriod(src.getPeriod())); return tgt; }
public org.hl7.fhir.r4.model.Patient.ContactComponent convertContactComponent(org.hl7.fhir.instance.model.Patient.ContactComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Patient.ContactComponent tgt = new org.hl7.fhir.r4.model.Patient.ContactComponent(); copyElement(src, tgt); for (org.hl7.fhir.instance.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(convertCodeableConcept(t)); tgt.setName(convertHumanName(src.getName())); for (org.hl7.fhir.instance.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(convertContactPoint(t)); tgt.setAddress(convertAddress(src.getAddress())); tgt.setGender(convertAdministrativeGender(src.getGender())); tgt.setOrganization(convertReference(src.getOrganization())); tgt.setPeriod(convertPeriod(src.getPeriod())); return tgt; }