Class MSG

All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class MSG extends AbstractComposite

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

  • message type (ID)
  • trigger event (ID)
  • message structure (ID)
See Also:
  • Constructor Details

    • MSG

      public MSG(Message message)
      Creates a new 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.
    • getMsg1_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.
    • getMsg2_TriggerEvent

      Returns trigger event (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getMessageStructure

      Returns message structure (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getMsg3_MessageStructure

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