
Package org.hl7.fhir.r5.openehr
Class DV_PROPORTION
- 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_PROPORTION
extends DV_AMOUNT
implements org.hl7.fhir.instance.model.api.ICompositeType
Countable quantities. Used for countable types such as pregnancies and steps (taken by a physiotherapy patient), number of cigarettes smoked in a day.
- 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 DecimalTypeDenominator of ratio.protected DecimalTypeNumerator of ratio.protected IntegerTypePrecision to which the numerator and denominator values of the proportion are expressed, in terms of number of decimal places.protected CodeTypeIndicates semantic type of proportion, including percent, unitary etc.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
ConstructorsConstructorDescriptionConstructorDV_PROPORTION(BigDecimal numerator, BigDecimal denominator, String type) Constructor -
Method Summary
Modifier and TypeMethodDescriptioncopy()voidcopyValues(DV_PROPORTION dst) booleanequalsDeep(Base other_) booleanequalsShallow(Base other_) fhirType()getNamedProperty(int _hash, String _name, boolean _checkValid) intBase[]getProperty(int hash, String name, boolean checkValid) getType()String[]getTypesForProperty(int hash, String name) booleanbooleanbooleanbooleanbooleanbooleanbooleanhasType()booleanbooleanisEmpty()protected voidlistChildren(List<Property> children) makeProperty(int hash, String name) setDenominator(double value) setDenominator(long value) setDenominator(BigDecimal value) setDenominatorElement(DecimalType value) setNumerator(double value) setNumerator(long value) setNumerator(BigDecimal value) setNumeratorElement(DecimalType value) setPrecision(int value) setPrecisionElement(IntegerType value) setProperty(int hash, String name, Base value) setProperty(String name, Base value) setTypeElement(CodeType value) protected DV_PROPORTIONMethods 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
-
numerator
Numerator of ratio. -
denominator
Denominator of ratio. -
type
Indicates semantic type of proportion, including percent, unitary etc. -
precision
Precision to which the numerator and denominator values of the proportion are 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.
-
-
Constructor Details
-
DV_PROPORTION
public DV_PROPORTION()Constructor -
DV_PROPORTION
Constructor
-
-
Method Details
-
getNumeratorElement
- Returns:
numerator(Numerator of ratio.). This is the underlying object with id, value and extensions. The accessor "getNumerator" gives direct access to the value
-
hasNumeratorElement
-
hasNumerator
-
setNumeratorElement
- Parameters:
value-numerator(Numerator of ratio.). This is the underlying object with id, value and extensions. The accessor "getNumerator" gives direct access to the value
-
getNumerator
- Returns:
- Numerator of ratio.
-
setNumerator
- Parameters:
value- Numerator of ratio.
-
setNumerator
- Parameters:
value- Numerator of ratio.
-
setNumerator
- Parameters:
value- Numerator of ratio.
-
getDenominatorElement
- Returns:
denominator(Denominator of ratio.). This is the underlying object with id, value and extensions. The accessor "getDenominator" gives direct access to the value
-
hasDenominatorElement
-
hasDenominator
-
setDenominatorElement
- Parameters:
value-denominator(Denominator of ratio.). This is the underlying object with id, value and extensions. The accessor "getDenominator" gives direct access to the value
-
getDenominator
- Returns:
- Denominator of ratio.
-
setDenominator
- Parameters:
value- Denominator of ratio.
-
setDenominator
- Parameters:
value- Denominator of ratio.
-
setDenominator
- Parameters:
value- Denominator of ratio.
-
getTypeElement
- Returns:
type(Indicates semantic type of proportion, including percent, unitary etc.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
-
hasTypeElement
-
hasType
-
setTypeElement
- Parameters:
value-type(Indicates semantic type of proportion, including percent, unitary etc.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
-
getType
- Returns:
- Indicates semantic type of proportion, including percent, unitary etc.
-
setType
- Parameters:
value- Indicates semantic type of proportion, including percent, unitary etc.
-
getPrecisionElement
- Returns:
precision(Precision to which the numerator and denominator values of the proportion are 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 numerator and denominator values of the proportion are 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 numerator and denominator values of the proportion are 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 numerator and denominator values of the proportion are 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.
-
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
-