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.