Class RMC

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)
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.