@SuppressWarnings("unchecked") @Override public List<IQueryParameterOr<?>> encode(FhirContext theContext, IQueryParameterType theValue) throws InternalErrorException { IQueryParameterType param = theValue; List<?> retVal = Collections.singletonList(ParameterUtil.singleton(param, null)); return (List<IQueryParameterOr<?>>) retVal; }
@SuppressWarnings("unchecked") @Override public List<IQueryParameterOr<?>> encode(FhirContext theContext, T theString) throws InternalErrorException { String retVal = doEncode(theString); if (isBlank(retVal)) { return Collections.emptyList(); } List<?> retValList = Collections.singletonList(ParameterUtil.singleton(new StringParam(retVal), null)); return (List<IQueryParameterOr<?>>) retValList; }
@SuppressWarnings("unchecked") @Override public List<IQueryParameterOr<?>> encode(FhirContext theContext, IQueryParameterType theValue) throws InternalErrorException { IQueryParameterType param = theValue; List<?> retVal = Collections.singletonList(ParameterUtil.singleton(param, null)); return (List<IQueryParameterOr<?>>) retVal; }
@SuppressWarnings("unchecked") @Override public List<IQueryParameterOr<?>> encode(FhirContext theContext, T theString) throws InternalErrorException { String retVal = doEncode(theString); if (isBlank(retVal)) { return Collections.emptyList(); } List<?> retValList = Collections.singletonList(ParameterUtil.singleton(new StringParam(retVal), null)); return (List<IQueryParameterOr<?>>) retValList; }