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 Code (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.
    • getMessageCode

      public ID getMessageCode()
      Returns Message Code (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getMsg1_MessageCode

      Returns Message Code (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.