ca.uhn.hl7v2.model.v24.datatype
Class CQ

java.lang.Object
  extended by ca.uhn.hl7v2.model.AbstractType
      extended by ca.uhn.hl7v2.model.v24.datatype.CQ
All Implemented Interfaces:
Composite, Type, Serializable

public class CQ
extends AbstractType
implements Composite

Represents an HL7 CQ (composite quantity with units) data type. This type consists of the following components:

See Also:
Serialized Form

Constructor Summary
CQ(Message message)
          Creates a new CQ type
 
Method Summary
 Type getComponent(int number)
          Returns an individual data component.
 Type[] getComponents()
          Returns an array containing the data elements.
 NM getCq1_Quantity()
          Returns quantity (component #1).
 CE getCq2_Units()
          Returns units (component #2).
 NM getQuantity()
          Returns quantity (component #1).
 CE getUnits()
          Returns units (component #2).
 
Methods inherited from class ca.uhn.hl7v2.model.AbstractType
clear, encode, getExtraComponents, getMessage, getName, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ca.uhn.hl7v2.model.Type
clear, encode, getExtraComponents, getMessage, getName, parse
 

Constructor Detail

CQ

public CQ(Message message)
Creates a new CQ type

Method Detail

getComponents

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

Specified by:
getComponents in interface Composite

getComponent

public Type getComponent(int number)
                  throws DataTypeException
Returns an individual data component.

Specified by:
getComponent in interface Composite
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.



Copyright © 2001-2011 University Health Network. All Rights Reserved.