@Override QuantityParam newInstance() { return new QuantityParam(); }
/** * Returns a new param containing the same value as this param, but with the type copnverted * to {@link QuantityParam}. This is useful if you are using reference parameters and want to handle * chained parameters of different types in a single method. * <p> * See <a href="http://jamesagnew.github.io/hapi-fhir/doc_rest_operations.html#dynamic_chains">Dynamic Chains</a> * in the HAPI FHIR documentation for an example of how to use this method. * </p> */ public QuantityParam toQuantityParam(FhirContext theContext) { QuantityParam retVal = new QuantityParam(); retVal.setValueAsQueryToken(theContext, null, null, getValueAsQueryToken(theContext)); return retVal; }
@Override public IQueryParameterType toQueryParameterType() { return new QuantityParam(null, getValue(), getSystem(), getUnits()); }
break; case QUANTITY: qp = new QuantityParam(); break; case STRING:
@Override QuantityParam newInstance() { return new QuantityParam(); }
throw new InvalidRequestException("Composite parameters are not yet supported in GraphQL"); case QUANTITY: param = new QuantityParam(value); break; case URI:
/** * Returns a new param containing the same value as this param, but with the type copnverted * to {@link QuantityParam}. This is useful if you are using reference parameters and want to handle * chained parameters of different types in a single method. * <p> * See <a href="http://jamesagnew.github.io/hapi-fhir/doc_rest_operations.html#dynamic_chains">Dynamic Chains</a> * in the HAPI FHIR documentation for an example of how to use this method. * </p> */ public QuantityParam toQuantityParam(FhirContext theContext) { QuantityParam retVal = new QuantityParam(); retVal.setValueAsQueryToken(theContext, null, null, getValueAsQueryToken(theContext)); return retVal; }
break; case QUANTITY: qp = new QuantityParam(); break; case STRING:
throw new InvalidRequestException("Composite parameters are not yet supported in GraphQL"); case QUANTITY: param = new QuantityParam(value); break; case URI: