public class Quantity extends Type implements org.hl7.fhir.instance.model.api.ICompositeType, ICoding
| 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, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElementcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected 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 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 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 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 Quantity setCode(String value)
value - A computer processable form of the unit in some unit representation system.protected void listChildren(List<Property> children)
listChildren in class Elementpublic Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
getNamedProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
getProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
makeProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
getTypesForProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic void copyValues(Quantity dst)
public boolean equalsDeep(Base other_)
equalsDeep in class Elementpublic boolean equalsShallow(Base other_)
equalsShallow in class Elementpublic boolean isEmpty()
public String getVersion()
getVersion in interface ICodingpublic boolean hasVersion()
hasVersion in interface ICodingpublic boolean supportsVersion()
supportsVersion in interface ICodingpublic String getDisplay()
getDisplay in interface ICodingpublic boolean hasDisplay()
hasDisplay in interface ICodingpublic boolean supportsDisplay()
supportsDisplay in interface ICodingCopyright © 2014–2021 Health Level 7. All rights reserved.