public class QuantityDt extends BaseQuantityDt implements ICompositeDatatype
Definition: A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies
Requirements: Need to able to capture all sorts of measured values, even if the measured value are not precisely quantified. Values include exact measures such as 3.51g, customary units such as 3 tablets, and currencies such as $100.32USD
| Constructor and Description |
|---|
QuantityDt()
Constructor
|
QuantityDt(double theValue)
Constructor
|
QuantityDt(long theValue)
Constructor
|
QuantityDt(QuantityCompararatorEnum theComparator,
double theValue,
String theUnits)
Constructor
|
QuantityDt(QuantityCompararatorEnum theComparator,
double theValue,
String theSystem,
String theUnits)
Constructor
|
QuantityDt(QuantityCompararatorEnum theComparator,
long theValue,
String theUnits)
Constructor
|
QuantityDt(QuantityCompararatorEnum theComparator,
long theValue,
String theSystem,
String theUnits)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
<T extends IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType)
Returns a list containing all child elements matching a given type
|
CodeDt |
getCode()
Gets the value(s) for code (Coded form of the unit).
|
BoundCodeDt<QuantityCompararatorEnum> |
getComparator()
Gets the value(s) for comparator (< | <= | >= | > - how to understand the value).
|
UriDt |
getSystem()
Gets the value(s) for system (System that defines coded unit form).
|
StringDt |
getUnits()
Gets the value(s) for units (Unit representation).
|
DecimalDt |
getValue()
Gets the value(s) for value (Numerical value (with implicit precision)).
|
boolean |
isEmpty() |
QuantityDt |
setCode(CodeDt theValue)
Sets the value(s) for code (Coded form of the unit)
|
QuantityDt |
setCode(String theCode)
Sets the value for code (Coded form of the unit)
|
QuantityDt |
setComparator(BoundCodeDt<QuantityCompararatorEnum> theValue)
Sets the value(s) for comparator (< | <= | >= | > - how to understand the value)
|
QuantityDt |
setComparator(QuantityCompararatorEnum theValue)
Sets the value(s) for comparator (< | <= | >= | > - how to understand the value)
|
QuantityDt |
setSystem(String theUri)
Sets the value for system (System that defines coded unit form)
|
QuantityDt |
setSystem(UriDt theValue)
Sets the value(s) for system (System that defines coded unit form)
|
QuantityDt |
setUnits(String theString)
Sets the value for units (Unit representation)
|
QuantityDt |
setUnits(StringDt theValue)
Sets the value(s) for units (Unit representation)
|
QuantityDt |
setValue(BigDecimal theValue)
Sets the value for value (Numerical value (with implicit precision))
|
QuantityDt |
setValue(DecimalDt theValue)
Sets the value(s) for value (Numerical value (with implicit precision))
|
QuantityDt |
setValue(double theValue)
Sets the value for value (Numerical value (with implicit precision))
|
QuantityDt |
setValue(long theValue)
Sets the value for value (Numerical value (with implicit precision))
|
getQueryParameterQualifier, getValueAsQueryToken, setValueAsQueryTokengetElementSpecificId, getId, setElementSpecificId, setId, setIdaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, isBaseEmptypublic QuantityDt()
public QuantityDt(double theValue)
public QuantityDt(long theValue)
public QuantityDt(QuantityCompararatorEnum theComparator, double theValue, String theUnits)
public QuantityDt(QuantityCompararatorEnum theComparator, long theValue, String theUnits)
public QuantityDt(QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits)
public QuantityDt(QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits)
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
ICompositeElementgetAllPopulatedChildElementsOfType in interface ICompositeElementtheType - The type to match. If set to null, all child elements will be returnedpublic DecimalDt getValue()
null.
Definition: The value of the measured amount. The value includes an implicit precision in the presentation of the value
getValue in class BaseQuantityDtpublic QuantityDt setValue(DecimalDt theValue)
Definition: The value of the measured amount. The value includes an implicit precision in the presentation of the value
public QuantityDt setValue(long theValue)
Definition: The value of the measured amount. The value includes an implicit precision in the presentation of the value
public QuantityDt setValue(double theValue)
Definition: The value of the measured amount. The value includes an implicit precision in the presentation of the value
public QuantityDt setValue(BigDecimal theValue)
Definition: The value of the measured amount. The value includes an implicit precision in the presentation of the value
setValue in class BaseQuantityDtpublic BoundCodeDt<QuantityCompararatorEnum> getComparator()
null.
Definition: How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value
getComparator in class BaseQuantityDtpublic QuantityDt setComparator(BoundCodeDt<QuantityCompararatorEnum> theValue)
Definition: How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value
public QuantityDt setComparator(QuantityCompararatorEnum theValue)
Definition: How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value
public StringDt getUnits()
null.
Definition: A human-readable form of the units
getUnits in class BaseQuantityDtpublic QuantityDt setUnits(StringDt theValue)
Definition: A human-readable form of the units
public QuantityDt setUnits(String theString)
Definition: A human-readable form of the units
setUnits in class BaseQuantityDtpublic UriDt getSystem()
null.
Definition: The identification of the system that provides the coded form of the unit
getSystem in class BaseQuantityDtpublic QuantityDt setSystem(UriDt theValue)
Definition: The identification of the system that provides the coded form of the unit
public QuantityDt setSystem(String theUri)
Definition: The identification of the system that provides the coded form of the unit
setSystem in class BaseQuantityDtpublic CodeDt getCode()
null.
Definition: A computer processable form of the units in some unit representation system
getCode in class BaseQuantityDtpublic QuantityDt setCode(CodeDt theValue)
Definition: A computer processable form of the units in some unit representation system
public QuantityDt setCode(String theCode)
Definition: A computer processable form of the units in some unit representation system
setCode in class BaseQuantityDtCopyright © 2014 University Health Network. All rights reserved.