All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class UVC extends AbstractComposite

Represents an HL7 UVC (UB Value Code and Amount) data type. This type consists of the following components:

  • Value Code (CNE)
  • Value Amount (MO)
See Also:
  • Constructor Details

    • UVC

      public UVC(Message message)
      Creates a new UVC 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.
    • getValueCode

      public CNE getValueCode()
      Returns Value Code (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getUvc1_ValueCode

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

      public MO getValueAmount()
      Returns Value Amount (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getUvc2_ValueAmount

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