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:
  • Field Details

    • numerator

      Numerator of ratio.
    • denominator

      Denominator of ratio.
    • type

      protected CodeType 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

  • 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

      public boolean hasNumeratorElement()
    • hasNumerator

      public boolean 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

      public DV_PROPORTION setNumerator(long value)
      Parameters:
      value - Numerator of ratio.
    • setNumerator

      public DV_PROPORTION setNumerator(double value)
      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

      public boolean hasDenominatorElement()
    • hasDenominator

      public boolean 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

      public DV_PROPORTION setDenominator(long value)
      Parameters:
      value - Denominator of ratio.
    • setDenominator

      public DV_PROPORTION setDenominator(double value)
      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

      public boolean hasTypeElement()
    • hasType

      public boolean 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

      public String getType()
      Returns:
      Indicates semantic type of proportion, including percent, unitary etc.
    • setType

      public DV_PROPORTION setType(String value)
      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

      public boolean hasPrecisionElement()
    • hasPrecision

      public boolean 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

      public int 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

      public DV_PROPORTION setPrecision(int value)
      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

      protected void listChildren(List<Property> children)
      Overrides:
      listChildren in class DV_AMOUNT
    • getNamedProperty

      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getNamedProperty in class DV_AMOUNT
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getProperty

      public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getProperty in class DV_AMOUNT
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty

      public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class DV_AMOUNT
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty

      public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class DV_AMOUNT
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • makeProperty

      public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      makeProperty in class DV_AMOUNT
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getTypesForProperty

      public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getTypesForProperty in class DV_AMOUNT
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • addChild

      public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      addChild in class DV_AMOUNT
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • fhirType

      public String fhirType()
      Specified by:
      fhirType in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      fhirType in class DV_AMOUNT
      Returns:
      the FHIR type name of the instance (not the java class name)
    • copy

      public DV_PROPORTION copy()
      Specified by:
      copy in class DV_AMOUNT
    • copyValues

      public void copyValues(DV_PROPORTION dst)
    • typedCopy

      protected DV_PROPORTION typedCopy()
    • equalsDeep

      public boolean equalsDeep(Base other_)
      Overrides:
      equalsDeep in class DV_AMOUNT
    • equalsShallow

      public boolean equalsShallow(Base other_)
      Overrides:
      equalsShallow in class DV_AMOUNT
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      isEmpty in class DV_AMOUNT