public interface Hl7MessageValidationInterface
NIST HL7 V2 Message Validation Web Service
This service provides an interface for validating HL7 version 2 (V2) message instances against a message profile and a validation context. The interface is designed for use in a web-service environment. The method 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 validation for HL7 Version 2.3.1, 2.4, 2.5, and 2.5.1. The version that is used for validation is indicated in the message profile.
Method Summary | |
---|---|
java.lang.String |
getLastExceptionMessage()
Get the message of the last exception caught. |
boolean |
getServiceStatus()
Get the status of the service. |
java.lang.String |
getValidationReport()
Get a detailed report of the message validation results in an XML document. |
boolean |
loadMessage(java.lang.String message)
Load the message to be validated. |
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 validation process. |
boolean |
setValidationContext(java.lang.String xmlValidationContext)
The validation context describes the circumstances in which the message instance is validated. |
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 validation process. |
boolean |
validate()
Perform the message validation. |
Method Detail |
---|
boolean loadMessage(java.lang.String message) throws java.lang.Exception
message
- an HL7 V2 ER7 encoded message instance or an HL7 V2 XML encoded message
instance
java.lang.Exception
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 validation 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 setValidationContext(java.lang.String xmlValidationContext) throws java.lang.Exception
xmlValidationContext
- the message validation context describes the circumstances the message
instance will be validated against.
java.lang.Exception
boolean validate() throws java.lang.Exception
java.lang.Exception
boolean getServiceStatus() throws java.lang.Exception
java.lang.Exception
java.lang.String getValidationReport() throws java.lang.Exception
java.lang.Exception
java.lang.String getLastExceptionMessage() throws java.lang.Exception
java.lang.Exception