All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class RMC extends AbstractComposite

Represents an HL7 RMC (Room Coverage) data type. This type consists of the following components:

  • Room Type (IS)
  • Amount Type (IS)
  • Coverage Amount (NM)
  • Money or Percentage (MOP)
See Also:
  • Constructor Details

    • RMC

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

      public IS getRoomType()
      Returns Room Type (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getRmc1_RoomType

      public IS getRmc1_RoomType()
      Returns Room Type (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getAmountType

      public IS getAmountType()
      Returns Amount Type (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getRmc2_AmountType

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

      Returns Coverage Amount (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getRmc3_CoverageAmount

      Returns Coverage Amount (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getMoneyOrPercentage

      Returns Money or Percentage (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getRmc4_MoneyOrPercentage

      Returns Money or Percentage (component 4). This is a convenience method that saves you from casting and handling an exception.