/** * Joins a list of strings with a single space (' ') between each string */ public static String joinStringsSpaceSeparated(List<? extends IPrimitiveType<String>> theStrings) { StringBuilder b = new StringBuilder(); for (IPrimitiveType<String> next : theStrings) { if (next.isEmpty()) { continue; } if (b.length() > 0) { b.append(' '); } b.append(next.getValue()); } return b.toString(); }
/** * Joins a list of strings with a single space (' ') between each string * * TODO: replace with call to ca.uhn.fhir.util.DatatypeUtil.joinStringsSpaceSeparated when HAPI upgrades to 1.4 */ private static String joinStringsSpaceSeparated(List<? extends IPrimitiveType<String>> theStrings) { StringBuilder b = new StringBuilder(); for (IPrimitiveType<String> next : theStrings) { if (next.isEmpty()) { continue; } if (b.length() > 0) { b.append(' '); } b.append(next.getValue()); } return b.toString(); }
/** * Joins a list of strings with a single space (' ') between each string * * TODO: replace with call to ca.uhn.fhir.util.DatatypeUtil.joinStringsSpaceSeparated when HAPI upgrades to 1.4 */ private static String joinStringsSpaceSeparated(List<? extends IPrimitiveType<String>> theStrings) { StringBuilder b = new StringBuilder(); for (IPrimitiveType<String> next : theStrings) { if (next.isEmpty()) { continue; } if (b.length() > 0) { b.append(' '); } b.append(next.getValue()); } return b.toString(); } protected void listChildren(List<Property> children) {
if (theSince != null && !theSince.isEmpty()) { haveParam = true; b.append('?').append(Constants.PARAM_SINCE).append('=').append(theSince.getValueAsString());
for (Object nextParameter : parameters) { IPrimitiveType<?> nextNameDt = (IPrimitiveType<?>) t.getSingleValueOrNull((IBase) nextParameter, "name"); if (nextNameDt == null || nextNameDt.isEmpty()) { ourLog.warn("Ignoring input parameter with no value in Parameters.parameter.name in operation client invocation"); continue;
if (nextValue.isEmpty()) { continue;
if (nextValue.isEmpty()) { continue;
boolean haveCode = theCode != null && theCode.isEmpty() == false; boolean haveIdentifierParam = theValueSetIdentifier != null && theValueSetIdentifier.isEmpty() == false; if (theId != null) { valueSetIds = Collections.singletonList(theId); if (theCode == null || theCode.isEmpty()) { throw new InvalidRequestException("Either ValueSet ID or ValueSet identifier or system and code must be provided. Unable to validate.");
@Override public LookupCodeResult lookupCode(IPrimitiveType<String> theCode, IPrimitiveType<String> theSystem, CodingDt theCoding, RequestDetails theRequestDetails) { boolean haveCoding = theCoding != null && isNotBlank(theCoding.getSystem()) && isNotBlank(theCoding.getCode()); boolean haveCode = theCode != null && theCode.isEmpty() == false; boolean haveSystem = theSystem != null && theSystem.isEmpty() == false;
boolean haveCode = theCode != null && theCode.isEmpty() == false; boolean haveIdentifierParam = theValueSetIdentifier != null && theValueSetIdentifier.isEmpty() == false; ValueSet vs = null; if (theId != null) { if (theCode == null || theCode.isEmpty()) { throw new InvalidRequestException("Either ValueSet ID or ValueSet identifier or system and code must be provided. Unable to validate.");
boolean haveCode = theCode != null && theCode.isEmpty() == false; boolean haveIdentifierParam = theValueSetIdentifier != null && theValueSetIdentifier.isEmpty() == false; ValueSet vs = null; if (theId != null) { if (theCode == null || theCode.isEmpty()) { throw new InvalidRequestException("Either ValueSet ID or ValueSet identifier or system and code must be provided. Unable to validate.");
if (fullUrl != null && !fullUrl.isEmpty()) { IPrimitiveType<?> value = (IPrimitiveType<?>) fullUrl.get(0); if (value.isEmpty() == false) { List<IBase> entryResources = entryDef.getChildByName("resource").getAccessor().getValues(nextEntry); if (entryResources != null && entryResources.size() > 0) {
@Override public LookupCodeResult lookupCode(IPrimitiveType<String> theCode, IPrimitiveType<String> theSystem, Coding theCoding, RequestDetails theRequestDetails) { boolean haveCoding = theCoding != null && isNotBlank(theCoding.getSystem()) && isNotBlank(theCoding.getCode()); boolean haveCode = theCode != null && theCode.isEmpty() == false; boolean haveSystem = theSystem != null && theSystem.isEmpty() == false;
@Override public LookupCodeResult lookupCode(IPrimitiveType<String> theCode, IPrimitiveType<String> theSystem, Coding theCoding, RequestDetails theRequestDetails) { boolean haveCoding = theCoding != null && isNotBlank(theCoding.getSystem()) && isNotBlank(theCoding.getCode()); boolean haveCode = theCode != null && theCode.isEmpty() == false; boolean haveSystem = theSystem != null && theSystem.isEmpty() == false;
if (fullUrl != null && !fullUrl.isEmpty()) { IPrimitiveType<?> value = (IPrimitiveType<?>) fullUrl.get(0); if (value.isEmpty() == false) { List<IBase> entryResources = entryDef.getChildByName("resource").getAccessor().getValues(nextEntry); if (entryResources != null && entryResources.size() > 0) {
/** * Joins a list of strings with a single space (' ') between each string */ public static String joinStringsSpaceSeparated(List<? extends IPrimitiveType<String>> theStrings) { StringBuilder b = new StringBuilder(); for (IPrimitiveType<String> next : theStrings) { if (next.isEmpty()) { continue; } if (b.length() > 0) { b.append(' '); } b.append(next.getValue()); } return b.toString(); }
/** * Joins a list of strings with a single space (' ') between each string * * TODO: replace with call to ca.uhn.fhir.util.DatatypeUtil.joinStringsSpaceSeparated when HAPI upgrades to 1.4 */ private static String joinStringsSpaceSeparated(List<? extends IPrimitiveType<String>> theStrings) { StringBuilder b = new StringBuilder(); for (IPrimitiveType<String> next : theStrings) { if (next.isEmpty()) { continue; } if (b.length() > 0) { b.append(' '); } b.append(next.getValue()); } return b.toString(); } protected void listChildren(List<Property> children) {
/** * Joins a list of strings with a single space (' ') between each string * * TODO: replace with call to ca.uhn.fhir.util.DatatypeUtil.joinStringsSpaceSeparated when HAPI upgrades to 1.4 */ private static String joinStringsSpaceSeparated(List<? extends IPrimitiveType<String>> theStrings) { StringBuilder b = new StringBuilder(); for (IPrimitiveType<String> next : theStrings) { if (next.isEmpty()) { continue; } if (b.length() > 0) { b.append(' '); } b.append(next.getValue()); } return b.toString(); }
/** * Joins a list of strings with a single space (' ') between each string * * TODO: replace with call to ca.uhn.fhir.util.DatatypeUtil.joinStringsSpaceSeparated when HAPI upgrades to 1.4 */ private static String joinStringsSpaceSeparated(List<? extends IPrimitiveType<String>> theStrings) { StringBuilder b = new StringBuilder(); for (IPrimitiveType<String> next : theStrings) { if (next.isEmpty()) { continue; } if (b.length() > 0) { b.append(' '); } b.append(next.getValue()); } return b.toString(); } protected void listChildren(List<Property> children) {
lastUpdated = extractLastUpdatedFromResource(theResource); if (lastUpdated != null && lastUpdated.isEmpty() == false) { response.addHeader(Constants.HEADER_LAST_MODIFIED, DateUtils.formatDate(lastUpdated.getValue()));