All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CQ extends AbstractComposite

Represents an HL7 CQ (Composite Quantity with Units) data type. This type consists of the following components:

  • Quantity (NM)
  • Units (CE)
See Also:
  • Constructor Details

    • CQ

      public CQ(Message message)
      Creates a new CQ type
  • 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 NM getQuantity()
      Returns Quantity (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getCq1_Quantity

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

      public CE getUnits()
      Returns Units (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getCq2_Units

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