public class QuantityParam extends Object implements IQueryParameterType
| Constructor and Description |
|---|
QuantityParam()
Constructor
|
QuantityParam(long theQuantity)
Constructor
|
QuantityParam(QuantityCompararatorEnum theComparator,
BigDecimal theValue,
String theSystem,
String theUnits)
Constructor
|
QuantityParam(QuantityCompararatorEnum theComparator,
double theValue,
String theSystem,
String theUnits)
Constructor
|
QuantityParam(QuantityCompararatorEnum theComparator,
long theValue,
String theSystem,
String theUnits)
Constructor
|
QuantityParam(String theQuantity)
Constructor
|
QuantityParam(String theQuantity,
String theSystem,
String theUnits)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
QuantityCompararatorEnum |
getComparator() |
Boolean |
getMissing()
If set to non-null value, indicates that this parameter has been populated with a "[name]:missing=true" or "[name]:missing=false" vale instead of a normal value
|
String |
getQueryParameterQualifier()
This method will return any qualifier that should be appended to the parameter name (e.g ":exact")
|
UriDt |
getSystem() |
String |
getUnits() |
DecimalDt |
getValue() |
String |
getValueAsQueryToken()
Returns a representation of this parameter's value as it will be represented "over the wire".
|
boolean |
isApproximate() |
void |
setApproximate(boolean theApproximate) |
QuantityParam |
setComparator(QuantityCompararatorEnum theComparator) |
QuantityParam |
setComparator(String theComparator) |
void |
setMissing(Boolean theMissing)
If set to non-null value, indicates that this parameter has been populated with a "[name]:missing=true" or "[name]:missing=false" vale instead of a normal value
|
QuantityParam |
setSystem(String theSystem) |
QuantityParam |
setSystem(UriDt theSystem) |
QuantityParam |
setUnits(String theUnits) |
QuantityParam |
setValue(BigDecimal theValue) |
QuantityParam |
setValue(DecimalDt theValue) |
QuantityParam |
setValue(double theValue) |
QuantityParam |
setValue(long theValue) |
void |
setValueAsQueryToken(String theQualifier,
String theValue)
This method is generally only called by HAPI itself, and should not need to be called from user code.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMissing, getQueryParameterQualifier, getValueAsQueryToken, setMissing, setValueAsQueryTokenpublic QuantityParam()
public QuantityParam(QuantityCompararatorEnum theComparator, BigDecimal theValue, String theSystem, String theUnits)
theComparator - The comparator, or null for an equals comparatortheValue - A quantity valuetheSystem - The unit systemtheUnits - The unit codepublic QuantityParam(QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits)
theComparator - The comparator, or null for an equals comparatortheValue - A quantity valuetheSystem - The unit systemtheUnits - The unit codepublic QuantityParam(QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits)
theComparator - The comparator, or null for an equals comparatortheValue - A quantity valuetheSystem - The unit systemtheUnits - The unit codepublic QuantityParam(String theQuantity)
theQuantity - A quantity value (with no system or units), such as "100.0" or "<=4"public QuantityParam(long theQuantity)
theQuantity - A quantity value (with no system or units), such as 100public QuantityParam(String theQuantity, String theSystem, String theUnits)
theQuantity - A quantity value (with no system or units), such as "100.0" or "<=4"theSystem - The unit systemtheUnits - The unit codepublic QuantityCompararatorEnum getComparator()
public boolean isApproximate()
public void setApproximate(boolean theApproximate)
public QuantityParam setComparator(QuantityCompararatorEnum theComparator)
public QuantityParam setComparator(String theComparator)
public QuantityParam setSystem(String theSystem)
public QuantityParam setSystem(UriDt theSystem)
public QuantityParam setUnits(String theUnits)
public QuantityParam setValue(BigDecimal theValue)
public QuantityParam setValue(DecimalDt theValue)
public QuantityParam setValue(double theValue)
public QuantityParam setValue(long theValue)
public Boolean getMissing()
getMissing in interface IQueryParameterTypepublic final String getQueryParameterQualifier()
IQueryParameterTypegetQueryParameterQualifier in interface IQueryParameterTypepublic final String getValueAsQueryToken()
IQueryParameterTypeSee FHIR specification 2.2.2 Search SearchParameter Types for information on the token format
getValueAsQueryToken in interface IQueryParameterTypepublic void setMissing(Boolean theMissing)
setMissing in interface IQueryParameterTypepublic final void setValueAsQueryToken(String theQualifier, String theValue)
IQueryParameterTypeSee FHIR specification 2.2.2 Search SearchParameter Types for information on the token format
setValueAsQueryToken in interface IQueryParameterTypetheQualifier - The parameter name qualifier that accompanied this value. For example, if the complete query was
http://foo?name:exact=John, qualifier would be ":exact"theValue - The actual parameter value. For example, if the complete query was
http://foo?name:exact=John, the value would be "John"Copyright © 2014–2016 University Health Network. All rights reserved.