/** * @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); }
pat.getAddress().add(convert.makeAddressFromAD(e)); for (Element e : cda.getChildren(pr, "telecom")) pat.getTelecom().add(convert.makeContactFromTEL(e)); for (Element e : cda.getChildren(p, "name")) pat.getName().add(convert.makeNameFromEN(e));
this.getName().add(castToHumanName(value)); } else if (name.equals("telecom")) { this.getTelecom().add(castToContactPoint(value)); } else if (name.equals("gender")) { value = new AdministrativeGenderEnumFactory().fromType(castToCode(value));
for (org.hl7.fhir.dstu3.model.HumanName t : src.getName()) tgt.addName(convertHumanName(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(convertContactPoint(t)); tgt.setGender(convertAdministrativeGender(src.getGender()));
addContact(root, patient.getTelecom(), "home:phone", null); addContact(root, patient.getTelecom(), "home:email", null); addContact(root, patient.getTelecom(), "home:fax", "home fax"); addContact(root, patient.getTelecom(), "work:phone", null); addContact(root, patient.getTelecom(), "work:email", null); addContact(root, patient.getTelecom(), "work:fax", "work fax");
return value; case -1429363305: // telecom this.getTelecom().add(castToContactPoint(value)); // ContactPoint return value; case -1249512767: // gender
List<ContactPoint> telecoms = new ArrayList<>(patient.getTelecom()); Collections.sort(telecoms, new Comparator<ContactPoint>() {
List<ContactPoint> telecoms = new ArrayList<>(patient.getTelecom()); Collections.sort(telecoms, new Comparator<ContactPoint>() {
pat.getAddress().add(convert.makeAddressFromAD(e)); for (Element e : cda.getChildren(pr, "telecom")) pat.getTelecom().add(convert.makeContactFromTEL(e)); for (Element e : cda.getChildren(p, "name")) pat.getName().add(convert.makeNameFromEN(e));
for (org.hl7.fhir.dstu3.model.HumanName t : src.getName()) tgt.addName(convertHumanName(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(convertContactPoint(t)); tgt.setGender(convertAdministrativeGender(src.getGender()));