public class Quantity extends Type implements org.hl7.fhir.instance.model.api.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() |
addExtension, addExtension, copyValues, getExtension, getExtensionsByUrl, getExtensionString, getId, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setId, setIdElementcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINNprotected DecimalType value
protected Enumeration<Quantity.QuantityComparator> comparator
protected StringType unit
protected UriType system
public Quantity()
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 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 void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic boolean equalsDeep(Base other)
equalsDeep in class Elementpublic boolean equalsShallow(Base other)
equalsShallow in class ElementCopyright © 2014–2018 University Health Network. All rights reserved.