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(QuantityComparatorEnum theComparator,
double theValue,
String theUnits)
Constructor
|
QuantityDt(QuantityComparatorEnum theComparator,
double theValue,
String theSystem,
String theUnits)
Constructor
|
QuantityDt(QuantityComparatorEnum theComparator,
long theValue,
String theUnits)
Constructor
|
QuantityDt(QuantityComparatorEnum theComparator,
long theValue,
String theSystem,
String theUnits)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
<T extends IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType) |
String |
getCode()
Gets the value(s) for code ().
|
CodeDt |
getCodeElement()
Gets the value(s) for code ().
|
String |
getComparator()
Gets the value(s) for comparator ().
|
BoundCodeDt<QuantityComparatorEnum> |
getComparatorElement()
Gets the value(s) for comparator ().
|
String |
getSystem()
Gets the value(s) for system ().
|
UriDt |
getSystemElement()
Gets the value(s) for system ().
|
String |
getUnit()
Gets the value(s) for unit ().
|
StringDt |
getUnitElement()
Gets the value(s) for unit ().
|
StringDt |
getUnitsElement()
Deprecated.
Use
getUnitElement() - Quantity.units was renamed to Quantity.unit in DSTU2 |
BigDecimal |
getValue()
Gets the value(s) for value ().
|
DecimalDt |
getValueElement()
Gets the value(s) for value ().
|
boolean |
isEmpty() |
QuantityDt |
setCode(CodeDt theValue)
Sets the value(s) for code ()
|
QuantityDt |
setCode(String theCode)
Sets the value for code ()
|
QuantityDt |
setComparator(BoundCodeDt<QuantityComparatorEnum> theValue)
Sets the value(s) for comparator ()
|
QuantityDt |
setComparator(QuantityComparatorEnum theValue)
Sets the value(s) for comparator ()
|
QuantityDt |
setSystem(String theUri)
Sets the value for system ()
|
QuantityDt |
setSystem(UriDt theValue)
Sets the value(s) for system ()
|
QuantityDt |
setUnit(String theString)
Sets the value for unit ()
|
QuantityDt |
setUnit(StringDt theValue)
Sets the value(s) for unit ()
|
BaseQuantityDt |
setUnits(String theString)
Deprecated.
Use
setUnit(String) instead - Quantity.units was renamed to Quantity.unit in DSTU2 |
QuantityDt |
setValue(BigDecimal theValue)
Sets the value for value ()
|
QuantityDt |
setValue(DecimalDt theValue)
Sets the value(s) for value ()
|
QuantityDt |
setValue(double theValue)
Sets the value for value ()
|
QuantityDt |
setValue(long theValue)
Sets the value for value ()
|
getMissing, getQueryParameterQualifier, getValueAsQueryToken, setMissing, setValueAsQueryTokengetElementSpecificId, getId, setElementSpecificId, setId, setIdaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, isBaseEmptypublic QuantityDt()
public QuantityDt(double theValue)
public QuantityDt(long theValue)
public QuantityDt(QuantityComparatorEnum theComparator, double theValue, String theUnits)
public QuantityDt(QuantityComparatorEnum theComparator, long theValue, String theUnits)
public QuantityDt(QuantityComparatorEnum theComparator, double theValue, String theSystem, String theUnits)
public QuantityDt(QuantityComparatorEnum theComparator, long theValue, String theSystem, String theUnits)
@Deprecated public BaseQuantityDt setUnits(String theString)
setUnit(String) instead - Quantity.units was renamed to Quantity.unit in DSTU2setUnits in class BaseQuantityDt@Deprecated public StringDt getUnitsElement()
getUnitElement() - Quantity.units was renamed to Quantity.unit in DSTU2getUnitsElement in class BaseQuantityDtpublic <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
getAllPopulatedChildElementsOfType in interface ICompositeElementpublic DecimalDt getValueElement()
null.
Definition: The value of the measured amount. The value includes an implicit precision in the presentation of the value
getValueElement in class BaseQuantityDtpublic BigDecimal getValue()
null.
Definition: The value of the measured amount. The value includes an implicit precision in the presentation of the value
public 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<QuantityComparatorEnum> getComparatorElement()
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
getComparatorElement in class BaseQuantityDtpublic String 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
public QuantityDt setComparator(BoundCodeDt<QuantityComparatorEnum> 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(QuantityComparatorEnum 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 getUnitElement()
null.
Definition: A human-readable form of the unit
public String getUnit()
null.
Definition: A human-readable form of the unit
public QuantityDt setUnit(StringDt theValue)
Definition: A human-readable form of the unit
public QuantityDt setUnit(String theString)
Definition: A human-readable form of the unit
public UriDt getSystemElement()
null.
Definition: The identification of the system that provides the coded form of the unit
getSystemElement in class BaseQuantityDtpublic String getSystem()
null.
Definition: The identification of the system that provides the coded form of the unit
public 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 getCodeElement()
null.
Definition: A computer processable form of the unit in some unit representation system
getCodeElement in class BaseQuantityDtpublic String getCode()
null.
Definition: A computer processable form of the unit in some unit representation system
public QuantityDt setCode(CodeDt theValue)
Definition: A computer processable form of the unit in some unit representation system
public QuantityDt setCode(String theCode)
Definition: A computer processable form of the unit in some unit representation system
setCode in class BaseQuantityDtCopyright © 2014–2016 University Health Network. All rights reserved.