Package org.hl7.v3

Class REAL

Direct Known Subclasses:
IVXBREAL, SXCMREAL

public class REAL extends QTY
Fractional numbers. Typically used whenever quantities are measured, estimated, or computed from other real numbers. The typical representation is decimal, where the number of significant decimal digits is known as the precision. Real numbers are needed beyond integers whenever quantities of the real world are measured, estimated, or computed from other real numbers. The term "Real number" in this specification is used to mean that fractional values are covered without necessarily implying the full set of the mathematical real numbers.

Java class for REAL complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="REAL">
   <complexContent>
     <extension base="{urn:hl7-org:v3}QTY">
       <attribute name="value" type="{urn:hl7-org:v3}real" />
     </extension>
   </complexContent>
 </complexType>
 
  • Field Details

    • value

      protected String value
  • Constructor Details

    • REAL

      public REAL()
  • Method Details

    • getValue

      public String getValue()
      Gets the value of the value property.
      Returns:
      possible object is String
    • setValue

      public void setValue(String value)
      Sets the value of the value property.
      Parameters:
      value - allowed object is String
    • withValue

      public REAL withValue(String value)
    • withNullFlavor

      public REAL withNullFlavor(String... values)
      Overrides:
      withNullFlavor in class QTY
    • withNullFlavor

      public REAL withNullFlavor(Collection<String> values)
      Overrides:
      withNullFlavor in class QTY
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class QTY
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class QTY
    • toString

      public String toString()
      Generates a String representation of the contents of this type. This is an extension method, produced by the 'ts' xjc plugin
      Overrides:
      toString in class QTY