|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.vmdb.hl7.HL7Object | +--org.vmdb.hl7.HL7SegmentContainer | +--org.vmdb.hl7.HL7Message
Description: HL7 Network Connectivity For VMDB.
Copyright: Copyright (c) 2002-2003.
Company: Veterinary Medical Database (VMDB).
This almost virtual base class provides the common structure and functionality for all implemented specific messages. By using this class directly it is possible to build messages of types not yet implemented, but at considerably greater effort than using an implemented specific class. If you do build specific messages, you are encouraged to construct a specific subclass and submit it to VMDB for inclusion in the library. While you are not required to so extend the library, if you do implement such an extension, you are required by the LGPL to submit the extension. And this is the whole spirit of this project. Your application code is yours to keep proprietary. The library is provided as a tool to keep us all building to the same standards and interpretation of the standards. So to ensure interoperability, it is in everyone's interest that you abide by this requirement.
Much of the functionality we would expect to find in this class is actually inherited from the HL7SegmentContainer because parsing a Message is really no different from parsing a "loop."
Constructor Summary | |
HL7Message()
|
Method Summary | |
java.lang.String |
getDTD()
Get the URL encoded DTD string. |
java.lang.String |
getMessageControlId()
Get the message control id. |
java.lang.String |
getMessageName()
Get the message name. |
MSHSegment |
getMSH()
Return the existing MSH segment if it exists or create and insert it at the correct location and return it. |
HDElement |
getReceivingFacility()
Get the Receiving facility HDElement. |
java.lang.String |
getReceivingFacilityId()
Get the Receiving facility VMDB Institution Id. |
java.lang.String |
getReceivingFacilityName()
Get the Receiving facility name. |
HDElement |
getSendingFacility()
|
java.lang.String |
getSendingFacilityId()
Get the Sending facility VMDB Institution Id. |
java.lang.String |
getSendingFacilityName()
Get the Sending facility name. |
java.lang.String |
getStyleSheet()
Get the URL encoded StyleSheet string |
java.lang.String |
printRule()
Output the full rule string for this object. |
boolean |
readHL7(java.lang.String sHL7)
Parse the supplied HL7 message string into segments based upon the rule string provided by derived class of message or loop. |
void |
setDTD(java.lang.String sDTD)
Set the DTD file or URL. |
void |
setMessageControlId(java.lang.String sMessageControlId)
Set the message control id. |
void |
setMessageName(java.lang.String sMsgType,
java.lang.String sEventType)
Set the message name and event. |
void |
setMessageName(java.lang.String sMsgType,
java.lang.String sEventType,
java.lang.String sMsgStructure)
Set the message name, event, and structure. |
void |
setReceivingFacility(HDElement hdIn)
Set the Receiving facility HDElement |
void |
setReceivingFacility(java.lang.String sName,
java.lang.String sId)
Set the Receiving facility VMDB Institution Id. |
void |
setSendingFacility(HDElement hdIn)
Set the Sending facility VMDB Institution Id. |
void |
setSendingFacility(java.lang.String sName,
java.lang.String sId)
Set the Sending facility VMDB Institution Id. |
void |
setStyleSheet(java.lang.String sStyleSheet)
Set the StyleSheet file or URL. |
java.lang.String |
toXML()
Output the object as XML. |
java.lang.String |
toXML(int iDepth)
Output the object as XML. |
Methods inherited from class org.vmdb.hl7.HL7SegmentContainer |
findSegment, listsSegments, setSeparators, toString |
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 |
public HL7Message()
Method Detail |
public boolean readHL7(java.lang.String sHL7)
sHL7
- String with HL7 message or fragement starting with this
message or loop.public MSHSegment getMSH()
public void setDTD(java.lang.String sDTD)
sDTD
- fully qualified file or URLpublic java.lang.String getDTD()
public void setStyleSheet(java.lang.String sStyleSheet)
sStyleSheet
- fully qualified file or URLpublic java.lang.String getStyleSheet()
public void setMessageName(java.lang.String sMsgType, java.lang.String sEventType)
sMsgType
- String with message type abbreviation such as "ORU"sEventType
- String with message event such as "R01"public void setMessageName(java.lang.String sMsgType, java.lang.String sEventType, java.lang.String sMsgStructure)
sMsgType
- String with message type abbreviation such as "ORU"sEventType
- String with message event such as "R01"sMsgStructure
- String with message event such as "ORU_R01"public java.lang.String getMessageName()
public void setMessageControlId(java.lang.String sMessageControlId)
public java.lang.String getMessageControlId()
public void setSendingFacility(HDElement hdIn)
public void setSendingFacility(java.lang.String sName, java.lang.String sId)
sName
- String with VMDB facility namesId
- String with VMDB facility idpublic java.lang.String getSendingFacilityId()
public HDElement getSendingFacility()
public java.lang.String getSendingFacilityName()
public void setReceivingFacility(HDElement hdIn)
hdIn
- HDElement with full facilitypublic void setReceivingFacility(java.lang.String sName, java.lang.String sId)
sName
- String with VMDB facility namesId
- String with VMDB facility idpublic HDElement getReceivingFacility()
public java.lang.String getReceivingFacilityId()
public java.lang.String getReceivingFacilityName()
public java.lang.String printRule()
public java.lang.String toXML()
public java.lang.String toXML(int iDepth)
toXML
in class HL7SegmentContainer
iDepth
- int value for the number of spaces to indent this object. Used just
to make the XML easier to read as unformatted text.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |