ContactPoint nextContact = (ContactPoint) nextObject; if (nextContact.getValueElement().isEmpty() == false) { addSearchTerm(theEntity, retVal, nextSpName, nextContact.getValue());
public org.hl7.fhir.instance.model.ContactPoint convertContactPoint(org.hl7.fhir.dstu3.model.ContactPoint src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.ContactPoint tgt = new org.hl7.fhir.instance.model.ContactPoint(); copyElement(src, tgt); if (src.hasSystem()) tgt.setSystem(convertContactPointSystem(src.getSystem())); tgt.setValue(src.getValue()); tgt.setUse(convertContactPointUse(src.getUse())); tgt.setRank(src.getRank()); if (src.hasPeriod()) tgt.setPeriod(convertPeriod(src.getPeriod())); return tgt; }
public static org.hl7.fhir.dstu2016may.model.ContactPoint convertContactPoint(org.hl7.fhir.dstu3.model.ContactPoint src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ContactPoint tgt = new org.hl7.fhir.dstu2016may.model.ContactPoint(); copyElement(src, tgt); tgt.setSystem(convertContactPointSystem(src.getSystem())); if (src.hasValue()) tgt.setValue(src.getValue()); tgt.setUse(convertContactPointUse(src.getUse())); if (src.hasRank()) tgt.setRank(src.getRank()); tgt.setPeriod(convertPeriod(src.getPeriod())); return tgt; }
public static boolean matches(ContactPoint c1, ContactPoint c2, Object profile) { if (profile != null) throw new NotImplementedException("Not Implemented Yet"); // in the absence of a profile, we insist on system return matches(c1.getSystemElement(), c2.getSystemElement(), null) && matches(c1.getValue(), c2.getValue(), null); }
/** * Adds a contact element to the demographic panel. Uses default styling. * * @param root Root component. * @param contacts List of contacts from which to select. * @param type Type of contact desired (e.g., "home:phone"). * @param labelId The id of the label to use. */ protected void addContact(BaseUIComponent root, List<ContactPoint> contacts, String type, String labelId) { ContactPoint contact = FhirUtil.getContact(contacts, type); if (contact != null) { addDemographic(root, labelId == null ? contact.getUse().getDisplay() : labelId, contact.getValue(), null); } }
addDetail(telecom.getValue(), type);
addDetail(telecom.getValue(), type);
public org.hl7.fhir.instance.model.ContactPoint convertContactPoint(org.hl7.fhir.dstu3.model.ContactPoint src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.ContactPoint tgt = new org.hl7.fhir.instance.model.ContactPoint(); copyElement(src, tgt); if (src.hasSystem()) tgt.setSystem(convertContactPointSystem(src.getSystem())); tgt.setValue(src.getValue()); tgt.setUse(convertContactPointUse(src.getUse())); tgt.setRank(src.getRank()); if (src.hasPeriod()) tgt.setPeriod(convertPeriod(src.getPeriod())); return tgt; }
public static org.hl7.fhir.dstu2016may.model.ContactPoint convertContactPoint(org.hl7.fhir.dstu3.model.ContactPoint src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ContactPoint tgt = new org.hl7.fhir.dstu2016may.model.ContactPoint(); copyElement(src, tgt); tgt.setSystem(convertContactPointSystem(src.getSystem())); if (src.hasValue()) tgt.setValue(src.getValue()); tgt.setUse(convertContactPointUse(src.getUse())); if (src.hasRank()) tgt.setRank(src.getRank()); tgt.setPeriod(convertPeriod(src.getPeriod())); return tgt; }