public class Quantity extends Type implements ICompositeType
| Modifier and Type | Class and Description |
|---|---|
static class |
Quantity.QuantityComparator |
static class |
Quantity.QuantityComparatorEnumFactory |
| Modifier and Type | Field and Description |
|---|---|
protected CodeType |
code
A computer processable form of the unit in some unit representation system.
|
protected Enumeration<Quantity.QuantityComparator> |
comparator
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.
|
protected UriType |
system
The identification of the system that provides the coded form of the unit.
|
protected StringType |
unit
A human-readable form of the unit.
|
protected DecimalType |
value
The value of the measured amount.
|
| Constructor and Description |
|---|
Quantity()
Constructor
|
Quantity(double theValue)
Convenience constructor
|
Quantity(long theValue)
Convenience constructor
|
Quantity(Quantity.QuantityComparator theComparator,
double theValue,
String theSystem,
String theCode,
String theUnit)
Convenience constructor
|
Quantity(Quantity.QuantityComparator theComparator,
long theValue,
String theSystem,
String theCode,
String theUnit)
Convenience constructor
|
addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setExtension, setId, setIdBase, setIdElementcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormatCommentsPost, getFormatCommentsPre, hasFormatCommentprotected DecimalType value
protected Enumeration<Quantity.QuantityComparator> comparator
protected StringType unit
protected UriType system
public Quantity()
public Quantity(Quantity.QuantityComparator theComparator, double theValue, String theSystem, String theCode, String theUnit)
theComparator - The comparatortheValue - The valuetheSystem - The setSystem(String) (the code system for the units}theCode - The setCode(String) (the code for the units}theUnit - The setUnit(String) (the human readable display name for the units}public Quantity(Quantity.QuantityComparator theComparator, long theValue, String theSystem, String theCode, String theUnit)
theComparator - The comparatortheValue - The valuetheSystem - The setSystem(String) (the code system for the units}theCode - The setCode(String) (the code for the units}theUnit - The setUnit(String) (the human readable display name for the units}public DecimalType getValueElement()
value (The value of the measured amount. The value includes an implicit precision in the presentation of the value.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the valuepublic boolean hasValueElement()
public boolean hasValue()
public Quantity setValueElement(DecimalType value)
value - value (The value of the measured amount. The value includes an implicit precision in the presentation of the value.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the valuepublic BigDecimal getValue()
public Quantity setValue(BigDecimal value)
value - The value of the measured amount. The value includes an implicit precision in the presentation of the value.public Quantity setValue(long value)
value - The value of the measured amount. The value includes an implicit precision in the presentation of the value.public Quantity setValue(double value)
value - The value of the measured amount. The value includes an implicit precision in the presentation of the value.public Enumeration<Quantity.QuantityComparator> getComparatorElement()
comparator (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.). This is the underlying object with id, value and extensions. The accessor "getComparator" gives direct access to the valuepublic boolean hasComparatorElement()
public boolean hasComparator()
public Quantity setComparatorElement(Enumeration<Quantity.QuantityComparator> value)
value - comparator (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.). This is the underlying object with id, value and extensions. The accessor "getComparator" gives direct access to the valuepublic Quantity.QuantityComparator getComparator()
public Quantity setComparator(Quantity.QuantityComparator value)
value - 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 StringType getUnitElement()
unit (A human-readable form of the unit.). This is the underlying object with id, value and extensions. The accessor "getUnit" gives direct access to the valuepublic boolean hasUnitElement()
public boolean hasUnit()
public Quantity setUnitElement(StringType value)
value - unit (A human-readable form of the unit.). This is the underlying object with id, value and extensions. The accessor "getUnit" gives direct access to the valuepublic Quantity setUnit(String value)
value - A human-readable form of the unit.public UriType getSystemElement()
system (The identification of the system that provides the coded form of the unit.). This is the underlying object with id, value and extensions. The accessor "getSystem" gives direct access to the valuepublic boolean hasSystemElement()
public boolean hasSystem()
public Quantity setSystemElement(UriType value)
value - system (The identification of the system that provides the coded form of the unit.). This is the underlying object with id, value and extensions. The accessor "getSystem" gives direct access to the valuepublic String getSystem()
public Quantity setSystem(String value)
value - The identification of the system that provides the coded form of the unit.public CodeType getCodeElement()
code (A computer processable form of the unit in some unit representation system.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the valuepublic boolean hasCodeElement()
public boolean hasCode()
public Quantity setCodeElement(CodeType value)
value - code (A computer processable form of the unit in some unit representation system.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the valuepublic String getCode()
public Quantity setCode(String value)
value - A computer processable form of the unit in some unit representation system.protected void listChildren(List<Property> childrenList)
listChildren in class Elementpublic Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException
getProperty in class ElementFHIRExceptionpublic Base setProperty(int hash, String name, Base value) throws FHIRException
setProperty in class ElementFHIRExceptionpublic Base setProperty(String name, Base value) throws FHIRException
setProperty in class ElementFHIRExceptionpublic Base makeProperty(int hash, String name) throws FHIRException
makeProperty in class ElementFHIRExceptionpublic String[] getTypesForProperty(int hash, String name) throws FHIRException
getTypesForProperty in class ElementFHIRExceptionpublic Base addChild(String name) throws FHIRException
addChild in class ElementFHIRExceptionpublic boolean equalsDeep(Base other)
equalsDeep in class Elementpublic boolean equalsShallow(Base other)
equalsShallow in class ElementCopyright © 2014–2017 University Health Network. All rights reserved.