public org.hl7.fhir.instance.model.Patient.ContactComponent convertContactComponent(org.hl7.fhir.r4.model.Patient.ContactComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Patient.ContactComponent tgt = new org.hl7.fhir.instance.model.Patient.ContactComponent(); copyElement(src, tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(convertCodeableConcept(t)); tgt.setName(convertHumanName(src.getName())); for (org.hl7.fhir.r4.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; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -261851592: return addRelationship(); case 3373707: return getName(); case -1429363305: return addTelecom(); case -1147692044: return getAddress(); case -1249512767: return getGenderElement(); case 1178922291: return getOrganization(); case -991726143: return getPeriod(); default: return super.makeProperty(hash, name); } }
public org.hl7.fhir.instance.model.Patient.ContactComponent convertContactComponent(org.hl7.fhir.r4.model.Patient.ContactComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Patient.ContactComponent tgt = new org.hl7.fhir.instance.model.Patient.ContactComponent(); copyElement(src, tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(convertCodeableConcept(t)); tgt.setName(convertHumanName(src.getName())); for (org.hl7.fhir.r4.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; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -261851592: return addRelationship(); case 3373707: return getName(); case -1429363305: return addTelecom(); case -1147692044: return getAddress(); case -1249512767: return getGenderElement(); case 1178922291: return getOrganization(); case -991726143: return getPeriod(); default: return super.makeProperty(hash, name); } }