Class CQ_QUANTITY

All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CQ_QUANTITY extends AbstractComposite

Represents an HL7 CQ_QUANTITY (CQ für Mengenangaben) data type. This type consists of the following components:

  • quantity (ST)
  • units (ST)
See Also:
  • Constructor Details

  • Method Details

    • getComponents

      public Type[] getComponents()
      Returns an array containing the data elements.
    • getComponent

      public Type getComponent(int number) throws DataTypeException
      Returns an individual data component.
      Parameters:
      number - The component number (0-indexed)
      Throws:
      DataTypeException - if the given element number is out of range.
    • getQuantity

      public ST getQuantity()
      Returns quantity (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getCq_quantity1_Quantity

      Returns quantity (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getUnits

      public ST getUnits()
      Returns units (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getCq_quantity2_Units

      Returns units (component 2). This is a convenience method that saves you from casting and handling an exception.