org.vmdb.hl7
Class MSGElement

java.lang.Object
  |
  +--org.vmdb.hl7.HL7Object
        |
        +--org.vmdb.hl7.HL7Element
              |
              +--org.vmdb.hl7.MSGElement

public class MSGElement
extends HL7Element

Composite Message Type Element.

Description: HL7 Network Connectivity For VMDB.

Copyright: Copyright (c) 2002-2003.

Company: Veterinary Medical Database (VMDB).

Note: This element is only used in MSH to identify the specific message. As such it will probably only be used in implementation of classes that override HL7Message to implement specific message types.


Constructor Summary
MSGElement()
          Construct a composite message type element using the default name and type constants at the default level FIELD.
 
Method Summary
 java.lang.String getEventType()
          Get the event type that triggers the message.
 java.lang.String getMsgStructure()
          Get the structure code of the message.
 java.lang.String getMsgType()
          Get the general type of the message.
 void setEventType(java.lang.String sEventType)
          Set the event type that triggers the message.
 void setMsgStructure(java.lang.String sMsgStructure)
          Set the structure code of the message.
 void setMsgType(java.lang.String sMsgType)
          Set the general type of the message.
 
Methods inherited from class org.vmdb.hl7.HL7Element
clear, empty, getComponent, getLevel, getType, getValue, initialize, iterator, makeElement, setComponent, setLevel, setType, setValue, size, toHL7String, toString, toXML
 
Methods inherited from class org.vmdb.hl7.HL7Object
getRule
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MSGElement

public MSGElement()
Construct a composite message type element using the default name and type constants at the default level FIELD.

Method Detail

setMsgType

public void setMsgType(java.lang.String sMsgType)
Set the general type of the message.

Parameters:
sMsgType - String with message type abbreviation such as "ORU" or "ACK"

getMsgType

public java.lang.String getMsgType()
Get the general type of the message.

Returns:
String with message type abbreviation such as "ORU" or "ACK"

setEventType

public void setEventType(java.lang.String sEventType)
Set the event type that triggers the message.

Parameters:
sEventType - String with event type abbreviation such as "R01"

getEventType

public java.lang.String getEventType()
Get the event type that triggers the message.

Returns:
String with event type abbreviation such as "R01"

setMsgStructure

public void setMsgStructure(java.lang.String sMsgStructure)
Set the structure code of the message.


getMsgStructure

public java.lang.String getMsgStructure()
Get the structure code of the message.

Returns:
String with message structure code

SourceForge.net Logo