
Package org.hl7.fhir.r5.openehr
Class DV_QUANTITY
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseDatatype,org.hl7.fhir.instance.model.api.ICompositeType
public class DV_QUANTITY
extends DV_AMOUNT
implements org.hl7.fhir.instance.model.api.ICompositeType
Quantitified type representing scientific quantities, i.e. quantities expressed as a magnitude and units. Units are expressed in the UCUM syntax (Unified Code for Units of Measure (UCUM), by Gunther Schadow and Clement J. McDonald of The Regenstrief Institute) (case-sensitive form) by default, or another system if units_system is set.
Can also be used for time durations, where it is more convenient to treat these as simply a number of seconds rather than days, months, years (in the latter case, DV_DURATION may be used).
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hl7.fhir.r5.model.Base
Base.ProfileSource, Base.ValidationInfo, Base.ValidationMode, Base.ValidationReason -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DecimalTypeNumeric magnitude of the quantity.protected IntegerTypePrecision to which the value of the quantity is expressed, in terms of number of decimal places.protected StringTypeQuantity units, expressed as a code or syntax string from either UCUM (the default) or the units system specified in units_system, when set.protected StringTypeOptional field containing the displayable form of the units field, e.g.protected StringTypeOptional field used to specify a units system from which codes in units are defined.Fields inherited from class org.hl7.fhir.r5.openehr.DV_AMOUNT
accuracy_is_percentFields inherited from class org.hl7.fhir.r5.openehr.DV_QUANTIFIED
accuracy, magnitude_statusFields inherited from class org.hl7.fhir.r5.openehr.DV_ORDERED
normal_range, normal_status, other_reference_rangesList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()voidcopyValues(DV_QUANTITY dst) booleanequalsDeep(Base other_) booleanequalsShallow(Base other_) fhirType()getNamedProperty(int _hash, String _name, boolean _checkValid) intBase[]getProperty(int hash, String name, boolean checkValid) String[]getTypesForProperty(int hash, String name) getUnits()booleanbooleanbooleanbooleanbooleanhasUnits()booleanbooleanbooleanbooleanbooleanbooleanisEmpty()protected voidlistChildren(List<Property> children) makeProperty(int hash, String name) setMagnitude(double value) setMagnitude(long value) setMagnitude(BigDecimal value) setMagnitudeElement(DecimalType value) setPrecision(int value) setPrecisionElement(IntegerType value) setProperty(int hash, String name, Base value) setProperty(String name, Base value) setUnits_display_name(String value) setUnits_system(String value) setUnits_systemElement(StringType value) setUnitsElement(StringType value) protected DV_QUANTITYMethods inherited from class org.hl7.fhir.r5.openehr.DV_AMOUNT
copyValues, getAccuracy_is_percent, getAccuracy_is_percentElement, hasAccuracy_is_percent, hasAccuracy_is_percentElement, setAccuracy_is_percent, setAccuracy_is_percentElementMethods inherited from class org.hl7.fhir.r5.openehr.DV_QUANTIFIED
copyValues, getAccuracy, getMagnitude_status, getMagnitude_statusElement, hasAccuracy, hasMagnitude_status, hasMagnitude_statusElement, setAccuracy, setMagnitude_status, setMagnitude_statusElementMethods inherited from class org.hl7.fhir.r5.openehr.DV_ORDERED
addOther_reference_ranges, addOther_reference_ranges, copyValues, getNormal_range, getNormal_status, getOther_reference_rangesFirstRep, getOther_reference_rangesList, hasNormal_range, hasNormal_status, hasOther_reference_ranges, setNormal_range, setNormal_status, setOther_reference_rangesListMethods inherited from class org.hl7.fhir.r5.openehr.DATA_VALUE
copyValuesMethods inherited from class org.hl7.fhir.r5.model.LogicalBase
getFHIRPublicationVersion, getIdBase, setIdBaseMethods inherited from class org.hl7.fhir.r5.model.Base
addDefinition, addFormatCommentsPost, addFormatCommentsPre, addValidationMessage, canHavePrimitiveValue, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyFormatComments, copyUserData, copyValues, dateTimeValue, equals, executeFunction, getChildByName, getChildValueByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getValidationInfo, getValidationMessages, getXhtml, hasFormatComment, hasFormatCommentPost, hasFormatCommentPre, hasPrimitiveValue, hasType, hasUserData, hasValidated, hasValidationInfo, hasValidationMessages, isBooleanPrimitive, isCopyUserData, isDateTime, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, removeChild, setCopyUserData, setUserData, setUserDataINN, setXhtmlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
Field Details
-
magnitude
Numeric magnitude of the quantity. -
precision
Precision to which the value of the quantity is expressed, in terms of number of decimal places. The value 0 implies an integral quantity. The value -1 implies no limit, i.e. any number of decimal places -
units
Quantity units, expressed as a code or syntax string from either UCUM (the default) or the units system specified in units_system, when set. In either case, the value is the code or syntax - normally formed of standard ASCII - which is in principal not the same as the display string, although in simple cases such as 'm' (for meters) it will be. If the units_display_name field is set, this may be used for display. If not, the implementations must effect the resolution of the units value to a display form locally, e.g. by lookup of reference tables, request to a terminology service etc. Example values from UCUM: 'kg/m^2', 'mm[Hg]', 'ms-1', 'km/h' -
units_system
Optional field used to specify a units system from which codes in units are defined. Value is a URI identifying a terminology containing units concepts from the (HL7 FHIR terminologies list). If not set, the UCUM standard (case-sensitive codes) is assumed as the units system. -
units_display_name
Optional field containing the displayable form of the units field, e.g. '°C'. If not set, the application environment needs to determine the displayable form.
-
-
Constructor Details
-
DV_QUANTITY
public DV_QUANTITY()Constructor -
DV_QUANTITY
Constructor
-
-
Method Details
-
getMagnitudeElement
- Returns:
magnitude(Numeric magnitude of the quantity.). This is the underlying object with id, value and extensions. The accessor "getMagnitude" gives direct access to the value
-
hasMagnitudeElement
-
hasMagnitude
-
setMagnitudeElement
- Parameters:
value-magnitude(Numeric magnitude of the quantity.). This is the underlying object with id, value and extensions. The accessor "getMagnitude" gives direct access to the value
-
getMagnitude
- Returns:
- Numeric magnitude of the quantity.
-
setMagnitude
- Parameters:
value- Numeric magnitude of the quantity.
-
setMagnitude
- Parameters:
value- Numeric magnitude of the quantity.
-
setMagnitude
- Parameters:
value- Numeric magnitude of the quantity.
-
getPrecisionElement
- Returns:
precision(Precision to which the value of the quantity is expressed, in terms of number of decimal places. The value 0 implies an integral quantity. The value -1 implies no limit, i.e. any number of decimal places). This is the underlying object with id, value and extensions. The accessor "getPrecision" gives direct access to the value
-
hasPrecisionElement
-
hasPrecision
-
setPrecisionElement
- Parameters:
value-precision(Precision to which the value of the quantity is expressed, in terms of number of decimal places. The value 0 implies an integral quantity. The value -1 implies no limit, i.e. any number of decimal places). This is the underlying object with id, value and extensions. The accessor "getPrecision" gives direct access to the value
-
getPrecision
- Returns:
- Precision to which the value of the quantity is expressed, in terms of number of decimal places. The value 0 implies an integral quantity. The value -1 implies no limit, i.e. any number of decimal places
-
setPrecision
- Parameters:
value- Precision to which the value of the quantity is expressed, in terms of number of decimal places. The value 0 implies an integral quantity. The value -1 implies no limit, i.e. any number of decimal places
-
getUnitsElement
- Returns:
units(Quantity units, expressed as a code or syntax string from either UCUM (the default) or the units system specified in units_system, when set. In either case, the value is the code or syntax - normally formed of standard ASCII - which is in principal not the same as the display string, although in simple cases such as 'm' (for meters) it will be. If the units_display_name field is set, this may be used for display. If not, the implementations must effect the resolution of the units value to a display form locally, e.g. by lookup of reference tables, request to a terminology service etc. Example values from UCUM: 'kg/m^2', 'mm[Hg]', 'ms-1', 'km/h'). This is the underlying object with id, value and extensions. The accessor "getUnits" gives direct access to the value
-
hasUnitsElement
-
hasUnits
-
setUnitsElement
- Parameters:
value-units(Quantity units, expressed as a code or syntax string from either UCUM (the default) or the units system specified in units_system, when set. In either case, the value is the code or syntax - normally formed of standard ASCII - which is in principal not the same as the display string, although in simple cases such as 'm' (for meters) it will be. If the units_display_name field is set, this may be used for display. If not, the implementations must effect the resolution of the units value to a display form locally, e.g. by lookup of reference tables, request to a terminology service etc. Example values from UCUM: 'kg/m^2', 'mm[Hg]', 'ms-1', 'km/h'). This is the underlying object with id, value and extensions. The accessor "getUnits" gives direct access to the value
-
getUnits
- Returns:
- Quantity units, expressed as a code or syntax string from either UCUM (the default) or the units system specified in units_system, when set. In either case, the value is the code or syntax - normally formed of standard ASCII - which is in principal not the same as the display string, although in simple cases such as 'm' (for meters) it will be. If the units_display_name field is set, this may be used for display. If not, the implementations must effect the resolution of the units value to a display form locally, e.g. by lookup of reference tables, request to a terminology service etc. Example values from UCUM: 'kg/m^2', 'mm[Hg]', 'ms-1', 'km/h'
-
setUnits
- Parameters:
value- Quantity units, expressed as a code or syntax string from either UCUM (the default) or the units system specified in units_system, when set. In either case, the value is the code or syntax - normally formed of standard ASCII - which is in principal not the same as the display string, although in simple cases such as 'm' (for meters) it will be. If the units_display_name field is set, this may be used for display. If not, the implementations must effect the resolution of the units value to a display form locally, e.g. by lookup of reference tables, request to a terminology service etc. Example values from UCUM: 'kg/m^2', 'mm[Hg]', 'ms-1', 'km/h'
-
getUnits_systemElement
- Returns:
units_system(Optional field used to specify a units system from which codes in units are defined. Value is a URI identifying a terminology containing units concepts from the (HL7 FHIR terminologies list). If not set, the UCUM standard (case-sensitive codes) is assumed as the units system.). This is the underlying object with id, value and extensions. The accessor "getUnits_system" gives direct access to the value
-
hasUnits_systemElement
-
hasUnits_system
-
setUnits_systemElement
- Parameters:
value-units_system(Optional field used to specify a units system from which codes in units are defined. Value is a URI identifying a terminology containing units concepts from the (HL7 FHIR terminologies list). If not set, the UCUM standard (case-sensitive codes) is assumed as the units system.). This is the underlying object with id, value and extensions. The accessor "getUnits_system" gives direct access to the value
-
getUnits_system
- Returns:
- Optional field used to specify a units system from which codes in units are defined. Value is a URI identifying a terminology containing units concepts from the (HL7 FHIR terminologies list). If not set, the UCUM standard (case-sensitive codes) is assumed as the units system.
-
setUnits_system
- Parameters:
value- Optional field used to specify a units system from which codes in units are defined. Value is a URI identifying a terminology containing units concepts from the (HL7 FHIR terminologies list). If not set, the UCUM standard (case-sensitive codes) is assumed as the units system.
-
getUnits_display_nameElement
- Returns:
units_display_name(Optional field containing the displayable form of the units field, e.g. '°C'. If not set, the application environment needs to determine the displayable form.). This is the underlying object with id, value and extensions. The accessor "getUnits_display_name" gives direct access to the value
-
hasUnits_display_nameElement
-
hasUnits_display_name
-
setUnits_display_nameElement
- Parameters:
value-units_display_name(Optional field containing the displayable form of the units field, e.g. '°C'. If not set, the application environment needs to determine the displayable form.). This is the underlying object with id, value and extensions. The accessor "getUnits_display_name" gives direct access to the value
-
getUnits_display_name
- Returns:
- Optional field containing the displayable form of the units field, e.g. '°C'. If not set, the application environment needs to determine the displayable form.
-
setUnits_display_name
- Parameters:
value- Optional field containing the displayable form of the units field, e.g. '°C'. If not set, the application environment needs to determine the displayable form.
-
listChildren
- Overrides:
listChildrenin classDV_AMOUNT
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getNamedPropertyin classDV_AMOUNT- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getPropertyin classDV_AMOUNT- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
setPropertyin classDV_AMOUNT- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
- Overrides:
setPropertyin classDV_AMOUNT- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- Overrides:
makePropertyin classDV_AMOUNT- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getTypesForPropertyin classDV_AMOUNT- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
-
fhirType
-
copy
-
copyValues
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeepin classDV_AMOUNT
-
equalsShallow
- Overrides:
equalsShallowin classDV_AMOUNT
-
isEmpty
-