public static ContactPoint newContactPoint(ContactPointSystem system, String value) { ContactPoint res = new ContactPoint(); res.setSystem(system); res.setValue(value); return res; }
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; }
.addTelecom() .setSystem(ContactPoint.ContactPointSystem.URL) .setValue(LOINC_WEBSITE_URL); String copyright = theCopyright; if (!copyright.contains("LOINC")) {
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.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 ContactPoint newContactPoint(ContactPointSystem system, String value) { ContactPoint res = new ContactPoint(); res.setSystem(system); res.setValue(value); return res; }
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; }
.addTelecom() .setSystem(ContactPoint.ContactPointSystem.URL) .setValue(LOINC_WEBSITE_URL); String copyright = theCopyright; if (!copyright.contains("LOINC")) {
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.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; }