Class CM_UVC

All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CM_UVC extends AbstractComposite

Represents an HL7 CM_UVC (Value code and amount) data type. This type consists of the following components:

  • Value code (ID)
  • value amount (NM)
See Also:
  • Constructor Details

    • CM_UVC

      public CM_UVC(Message message)
      Creates a new CM_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 ID getValueCode()
      Returns Value code (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getCm_uvc1_ValueCode

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

      public NM getValueAmount()
      Returns value amount (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getCm_uvc2_ValueAmount

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