/** * Constructor * * @param theQuantity * A quantity value (with no system or units), such as "100.0" or "gt4" */ public QuantityParam(String theQuantity) { setValueAsQueryToken(null, null, null, theQuantity); }
/** * Constructor * * @param theQuantity * A quantity value (with no system or units), such as <code>100</code> */ public QuantityParam(long theQuantity) { setValueAsQueryToken(null, null, null, Long.toString(theQuantity)); }
/** * 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; }
/** * Constructor * * @param theQuantity * A quantity value (with no system or units), such as "100.0" or "<=4" * @param theSystem * The unit system * @param theUnits * The unit code */ public QuantityParam(String theQuantity, String theSystem, String theUnits) { setValueAsQueryToken(null, null, null, theQuantity); setSystem(theSystem); setUnits(theUnits); }
/** * Constructor * * @param theQuantity * A quantity value (with no system or units), such as "100.0" or "gt4" */ public QuantityParam(String theQuantity) { setValueAsQueryToken(null, null, null, theQuantity); }
/** * Constructor * * @param theQuantity * A quantity value (with no system or units), such as <code>100</code> */ public QuantityParam(long theQuantity) { setValueAsQueryToken(null, null, null, Long.toString(theQuantity)); }
/** * 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; }
/** * Constructor * * @param theQuantity * A quantity value (with no system or units), such as "100.0" or "<=4" * @param theSystem * The unit system * @param theUnits * The unit code */ public QuantityParam(String theQuantity, String theSystem, String theUnits) { setValueAsQueryToken(null, null, null, theQuantity); setSystem(theSystem); setUnits(theUnits); }