private String toFilterString(StringType theFilter) { return theFilter != null ? theFilter.getValue() : null; }
public StringType makeString(String v) { StringType s = new StringType(); s.setValue(v); return s; }
public static org.hl7.fhir.dstu2016may.model.StringType convertString(org.hl7.fhir.dstu3.model.StringType src) throws FHIRException { org.hl7.fhir.dstu2016may.model.StringType tgt = new org.hl7.fhir.dstu2016may.model.StringType(); if (src.hasValue()) tgt.setValue(src.getValue()); copyElement(src, tgt); return tgt; }
private void extractTokensFromCoding(List<String> theSystems, List<String> theCodes, ResourceTable theEntity, Set<BaseResourceIndexedSearchParam> theListToPopulate, RuntimeSearchParam theParameterDef, Coding nextCoding) { if (nextCoding != null && !nextCoding.isEmpty()) { String nextSystem = nextCoding.getSystemElement().getValueAsString(); String nextCode = nextCoding.getCodeElement().getValue(); if (isNotBlank(nextSystem) || isNotBlank(nextCode)) { theSystems.add(nextSystem); theCodes.add(nextCode); } if (!nextCoding.getDisplayElement().isEmpty()) { addStringParam(theEntity, theListToPopulate, theParameterDef, nextCoding.getDisplayElement().getValue()); } } }
/** Getter for pet name */ public StringType getPetName() { if (myPetName == null) { myPetName = new StringType(); } return myPetName; }
private String describeCardinality(ElementDefinition definition, ElementDefinition fallback, UnusedTracker tracker) { IntegerType min = definition.hasMinElement() ? definition.getMinElement() : new IntegerType(); StringType max = definition.hasMaxElement() ? definition.getMaxElement() : new StringType(); if (min.isEmpty() && fallback != null) min = fallback.getMinElement(); if (max.isEmpty() && fallback != null) max = fallback.getMaxElement(); tracker.used = !max.isEmpty() && !max.getValue().equals("0"); if (min.isEmpty() && max.isEmpty()) return null; else return (!min.hasValue() ? "" : Integer.toString(min.getValue())) + ".." + (!max.hasValue() ? "" : max.getValue()); }
given.setValue("Joe"); Extension givenExt = new Extension("http://examples.com#moreext", new StringType("Hello")); given.addExtension(givenExt);
public boolean hasPreAuthRef() { if (this.preAuthRef == null) return false; for (StringType item : this.preAuthRef) if (!item.isEmpty()) return true; return false; }
public String castToXhtmlString(Base b) throws FHIRException { if (b instanceof Element) { return ((Element) b).getValue(); } else if (b instanceof StringType) { return ((StringType) b).asStringValue(); } else throw new FHIRException("Unable to convert a "+b.getClass().getName()+" to XHtml string"); }
&& theSourceCodeSystem.hasValue(); boolean haveSourceCodeSystemVersion = theSourceCodeSystemVersion != null && theSourceCodeSystemVersion.hasValue(); boolean haveSourceValueSet = theSourceValueSet != null && theSourceValueSet.hasValue();
public void foo() { //START SNIPPET: subExtension Patient patient = new Patient(); // Add an extension (initially with no contents) to the resource Extension parent = new Extension("http://example.com#parent"); patient.addExtension(parent); // Add two extensions as children to the parent extension Extension child1 = new Extension("http://example.com#childOne", new StringType("value1")); parent.addExtension(child1); Extension child2 = new Extension("http://example.com#chilwo", new StringType("value1")); parent.addExtension(child2); //END SNIPPET: subExtension }
String value = nextValue.getValueElement().getValue(); if (isNotBlank(value)) { systems.add(system); codes.add(nextValue.getValueElement().getValue()); } else if (nextObject instanceof Enumeration<?>) { Enumeration<?> obj = (Enumeration<?>) nextObject; } else if (nextObject instanceof CodeableConcept) { CodeableConcept nextCC = (CodeableConcept) nextObject; if (!nextCC.getTextElement().isEmpty()) { addStringParam(theEntity, retVal, nextSpDef, nextCC.getTextElement().getValue());
public boolean hasMustSupport() { if (this.mustSupport == null) return false; for (StringType item : this.mustSupport) if (!item.isEmpty()) return true; return false; }
private void assertListEquals(List<StringType> list1, List<StringType> list2) { assertEquals(list1.size(), list2.size()); for (int i = 0; i < list1.size(); i++) { assertEquals(list1.get(i).asStringValue(), list2.get(i).asStringValue()); } } }
public org.hl7.fhir.instance.model.StringType convertString(org.hl7.fhir.dstu3.model.StringType src) throws FHIRException { org.hl7.fhir.instance.model.StringType tgt = new org.hl7.fhir.instance.model.StringType(src.getValue()); copyElement(src, tgt); return tgt; }
public static org.hl7.fhir.dstu3.model.StringType convertString(org.hl7.fhir.dstu2016may.model.StringType src) throws FHIRException { org.hl7.fhir.dstu3.model.StringType tgt = new org.hl7.fhir.dstu3.model.StringType(); if (src.hasValue()) tgt.setValue(src.getValue()); copyElement(src, tgt); return tgt; }
public org.hl7.fhir.dstu3.model.StringType convertString(org.hl7.fhir.instance.model.StringType src) throws FHIRException { org.hl7.fhir.dstu3.model.StringType tgt = new org.hl7.fhir.dstu3.model.StringType(src.getValue()); copyElement(src, tgt); return tgt; }
addSearchTerm(theEntity, retVal, nextSpName, nextName.getValue()); allNames.add(nextAddress.getPostalCodeElement()); for (StringType nextName : allNames) { addSearchTerm(theEntity, retVal, nextSpName, nextName.getValue()); if (nextContact.getValueElement().isEmpty() == false) { addSearchTerm(theEntity, retVal, nextSpName, nextContact.getValue());
public static org.hl7.fhir.dstu2016may.model.StringType convertString(org.hl7.fhir.dstu3.model.StringType src) throws FHIRException { org.hl7.fhir.dstu2016may.model.StringType tgt = new org.hl7.fhir.dstu2016may.model.StringType(); if (src.hasValue()) tgt.setValue(src.getValue()); copyElement(src, tgt); return tgt; }
public boolean hasSearchInclude() { if (this.searchInclude == null) return false; for (StringType item : this.searchInclude) if (!item.isEmpty()) return true; return false; }