public interface HL7MessageGenerationInterface
NIST HL7 V2 Message Generation Web Service
This service provides an interface for generation of HL7 version 2 (V2) message instances for given a message profile. The message can be populated with specific data values via a generation context. The interface is designed for use in a web-service environment. The methods are intended to be simple and in many cases atomic calls. Parameters and return values are intentionally made to be simple objects. This provides for a flexible interface for building a user specific interface.
This service supports generation of messages for HL7 Version 2.3.1, 2.4, 2.5, and 2.5.1. The version that is used for message generation is dictated by the message profile.
| Method Summary | |
|---|---|
boolean |
generate()
Perform the message generation. |
java.lang.String |
getLastExceptionMessage()
Get the web service error message of the last exception caught. |
java.lang.String |
getMessage()
Retrieve the message. |
boolean |
getServiceStatus()
Get the status of the service. |
boolean |
loadProfile(java.lang.String xmlProfile)
Load an HL7 version 2 message profile. |
boolean |
loadResource(java.lang.String xmlResource,
java.lang.String resourceType)
The loadResource method allows a user to load additional resources that can be used in the generation process. |
boolean |
setGenerationContext(java.lang.String simpleGenerationContext)
The generation context describes the location and values used for creating messages. |
boolean |
useHandle(java.lang.String OID)
Use the handle identified by the OID. |
boolean |
useProfile(java.lang.String OID)
Use the profile identified by the OID. |
boolean |
useResource(java.lang.String OID)
The useResource method allows a user to access a resource that can be used in the generation process. |
| Method Detail |
|---|
boolean useHandle(java.lang.String OID)
throws java.lang.Exception
OID - referencing a handle
java.lang.Exception
boolean loadProfile(java.lang.String xmlProfile)
throws java.lang.Exception
xmlProfile - an HL7 version 2 message profile.
java.lang.Exception
boolean useProfile(java.lang.String OID)
throws java.lang.Exception
OID - referencing an HL7 version message profile.
java.lang.Exception
boolean loadResource(java.lang.String xmlResource,
java.lang.String resourceType)
throws java.lang.Exception
TBD-what are the resource types and their formats.
xmlResource - a resource that is used in the generation process.
resourceType - a document that describes the type of the xmlResource; for example, an XML
schema.
java.lang.Exception
boolean useResource(java.lang.String OID)
throws java.lang.Exception
TBD-what are the resource types and their formats.
OID - an object identifier to reference the resource
java.lang.Exception
boolean setGenerationContext(java.lang.String simpleGenerationContext)
throws java.lang.Exception
simpleGenerationContext - the message generation context describes the location and values used for
creating messages.
java.lang.Exception
boolean generate()
throws java.lang.Exception
java.lang.Exception
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
gov.nist.hl7.core.NoXmlObjectMatchFoundException
gov.nist.hl7.core.data.DataException
MalformedMessageException
javax.xml.transform.TransformerException
java.sql.SQLException
javax.xml.transform.TransformerFactoryConfigurationError
java.io.IOException
org.apache.xmlbeans.XmlException
java.lang.Exceptionboolean getServiceStatus()
java.lang.String getMessage()
throws java.lang.Exception
encoding - - the encoding of the message; valid values are "XML" or "ER7;
java.lang.Exception
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
gov.nist.hl7.core.data.DataException
java.sql.SQLException
MalformedMessageException
java.io.IOException
java.lang.IllegalArgumentExceptionjava.lang.String getLastExceptionMessage()