Class CM_MSG

All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CM_MSG extends AbstractComposite

Represents an HL7 CM_MSG (Message Type) data type. This type consists of the following components:

  • message type (ID)
  • Trigger Event (ID)
See Also:
  • Constructor Details

    • CM_MSG

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

      public ID getMessageType()
      Returns message type (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getCm_msg1_MessageType

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

      public ID getTriggerEvent()
      Returns Trigger Event (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getCm_msg2_TriggerEvent

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