@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -887328209: return getSystemElement(); case 111972721: return getValueElement(); case 116103: return getUseElement(); case 3492908: return getRankElement(); case -991726143: return getPeriod(); default: return super.makeProperty(hash, name); } }
public static void renderContactPoint(StringBuilder b, ContactPoint cp) { if (cp != null && !cp.isEmpty()) { if (cp.getSystem() == ContactPointSystem.EMAIL) b.append("<a href=\"mailto:"+cp.getValue()+"\">"+cp.getValue()+"</a>"); else if (cp.getSystem() == ContactPointSystem.FAX) b.append("Fax: "+cp.getValue()); else if (cp.getSystem() == ContactPointSystem.OTHER) b.append("<a href=\""+cp.getValue()+"\">"+cp.getValue()+"</a>"); else b.append(cp.getValue()); } } }
public static ContactPoint newContactPoint(ContactPointSystem system, String value) { ContactPoint res = new ContactPoint(); res.setSystem(system); res.setValue(value); return res; }
public static void merge(ContactPoint dst, ContactPoint src) { if (dst.getUseElement() == null && src.getUseElement() != null) dst.setUseElement(src.getUseElement()); if (dst.getPeriod() == null && src.getPeriod() != null) dst.setPeriod(src.getPeriod()); }
public org.hl7.fhir.r4.model.ContactPoint convertContactPoint(org.hl7.fhir.instance.model.ContactPoint src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ContactPoint tgt = new org.hl7.fhir.r4.model.ContactPoint(); copyElement(src, tgt); tgt.setSystem(convertContactPointSystem(src.getSystem())); 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 org.hl7.fhir.dstu2016may.model.ContactPoint convertContactPoint(org.hl7.fhir.r4.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 org.hl7.fhir.instance.model.ContactPoint convertContactPoint(org.hl7.fhir.r4.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 boolean hasTelecom() { if (this.telecom == null) return false; for (ContactPoint item : this.telecom) if (!item.isEmpty()) return true; return false; }
ValueSet getValueSet(String theValueSetId, String theValueSetUri, String theValueSetName, String theVersionPropertyName) { String version = null; if (isNotBlank(theVersionPropertyName)) { version = myUploadProperties.getProperty(theVersionPropertyName); } ValueSet vs; if (!myIdToValueSet.containsKey(theValueSetId)) { vs = new ValueSet(); vs.setUrl(theValueSetUri); vs.setId(theValueSetId); vs.setVersion(version); vs.setStatus(Enumerations.PublicationStatus.ACTIVE); vs.setPublisher(REGENSTRIEF_INSTITUTE_INC); vs.addContact() .setName(REGENSTRIEF_INSTITUTE_INC) .addTelecom() .setSystem(ContactPoint.ContactPointSystem.URL) .setValue(LOINC_WEBSITE_URL); vs.setCopyright(LOINC_COPYRIGHT_STATEMENT); myIdToValueSet.put(theValueSetId, vs); myValueSets.add(vs); } else { vs = myIdToValueSet.get(theValueSetId); } if (isBlank(vs.getName()) && isNotBlank(theValueSetName)) { vs.setName(theValueSetName); } return vs; }
public ContactPoint addContact() { //3 ContactPoint t = new ContactPoint(); if (this.contact == null) this.contact = new ArrayList<ContactPoint>(); this.contact.add(t); return t; }
if (nextValue.isEmpty()) { continue; systems.add(nextValue.getSystemElement().getValueAsString()); codes.add(nextValue.getValueElement().getValue()); } else if (nextObject instanceof Enumeration<?>) { Enumeration<?> obj = (Enumeration<?>) nextObject;
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); }
if (nextContact.getValueElement().isEmpty() == false) { addSearchTerm(theEntity, retVal, nextSpName, nextContact.getValue());
public ContactPoint copy() { ContactPoint dst = new ContactPoint(); copyValues(dst); dst.system = system == null ? null : system.copy(); dst.value = value == null ? null : value.copy(); dst.use = use == null ? null : use.copy(); dst.rank = rank == null ? null : rank.copy(); dst.period = period == null ? null : period.copy(); return dst; }
public static org.hl7.fhir.r4.model.ContactPoint convertContactPoint(org.hl7.fhir.dstu2016may.model.ContactPoint src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ContactPoint tgt = new org.hl7.fhir.r4.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 org.hl7.fhir.dstu2016may.model.ContactPoint convertContactPoint(org.hl7.fhir.r4.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 org.hl7.fhir.instance.model.ContactPoint convertContactPoint(org.hl7.fhir.r4.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 boolean hasTelecom() { if (this.telecom == null) return false; for (ContactPoint item : this.telecom) if (!item.isEmpty()) return true; return false; }
public ContactPoint addTelecom() { //3 ContactPoint t = new ContactPoint(); if (this.telecom == null) this.telecom = new ArrayList<ContactPoint>(); this.telecom.add(t); return t; }