Class CM_RMC

All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CM_RMC extends AbstractComposite

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

  • room type (ID)
  • amount type (ID)
  • coverage amount (NM)
See Also:
  • Constructor Details

    • CM_RMC

      public CM_RMC(Message message)
      Creates a new CM_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 ID getRoomType()
      Returns room type (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getCm_rmc1_RoomType

      Returns room type (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getAmountType

      public ID getAmountType()
      Returns amount type (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getCm_rmc2_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.
    • getCm_rmc3_CoverageAmount

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