@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("purpose")) { this.purpose = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("name")) { this.name = castToHumanName(value); // HumanName } else if (name.equals("telecom")) { this.getTelecom().add(castToContactPoint(value)); } else if (name.equals("address")) { this.address = castToAddress(value); // Address } else return super.setProperty(name, value); return value; }
/** * @return The first repetition of repeating field {@link #telecom}, creating it if it does not already exist */ public ContactPoint getTelecomFirstRep() { if (getTelecom().isEmpty()) { addTelecom(); } return getTelecom().get(0); }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -220463842: // purpose this.purpose = castToCodeableConcept(value); // CodeableConcept return value; case 3373707: // name this.name = castToHumanName(value); // HumanName return value; case -1429363305: // telecom this.getTelecom().add(castToContactPoint(value)); // ContactPoint return value; case -1147692044: // address this.address = castToAddress(value); // Address return value; default: return super.setProperty(hash, name, value); } }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -220463842: // purpose this.purpose = castToCodeableConcept(value); // CodeableConcept return value; case 3373707: // name this.name = castToHumanName(value); // HumanName return value; case -1429363305: // telecom this.getTelecom().add(castToContactPoint(value)); // ContactPoint return value; case -1147692044: // address this.address = castToAddress(value); // Address return value; default: return super.setProperty(hash, name, value); } }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("purpose")) { this.purpose = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("name")) { this.name = castToHumanName(value); // HumanName } else if (name.equals("telecom")) { this.getTelecom().add(castToContactPoint(value)); } else if (name.equals("address")) { this.address = castToAddress(value); // Address } else return super.setProperty(name, value); return value; }
public org.hl7.fhir.instance.model.Organization.OrganizationContactComponent convertOrganizationContactComponent(org.hl7.fhir.r4.model.Organization.OrganizationContactComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Organization.OrganizationContactComponent tgt = new org.hl7.fhir.instance.model.Organization.OrganizationContactComponent(); copyElement(src, tgt); tgt.setPurpose(convertCodeableConcept(src.getPurpose())); tgt.setName(convertHumanName(src.getName())); for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(convertContactPoint(t)); tgt.setAddress(convertAddress(src.getAddress())); return tgt; }
/** * @return The first repetition of repeating field {@link #telecom}, creating it if it does not already exist */ public ContactPoint getTelecomFirstRep() { if (getTelecom().isEmpty()) { addTelecom(); } return getTelecom().get(0); }
public org.hl7.fhir.instance.model.Organization.OrganizationContactComponent convertOrganizationContactComponent(org.hl7.fhir.r4.model.Organization.OrganizationContactComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Organization.OrganizationContactComponent tgt = new org.hl7.fhir.instance.model.Organization.OrganizationContactComponent(); copyElement(src, tgt); tgt.setPurpose(convertCodeableConcept(src.getPurpose())); tgt.setName(convertHumanName(src.getName())); for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(convertContactPoint(t)); tgt.setAddress(convertAddress(src.getAddress())); return tgt; }