public interface Hl7MessageValidation
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)
message - an HL7 V2 ER7 encoded message instance or an HL7 V2 XML encoded message
instance
boolean useHandle(java.lang.String oid)
oid - referencing a handle
boolean loadProfile(java.lang.String xmlProfile)
xmlProfile - an HL7 version 2 message profile.
boolean useProfile(java.lang.String oid)
oid - referencing an HL7 version message profile.
boolean loadResource(java.lang.String xmlResource,
java.lang.String resourceType)
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.
boolean useResource(java.lang.String oid)
TBD-what are the resource types and their formats.
oid - an object identifier to reference the resource
boolean setValidationContext(java.lang.String xmlValidationContext)
xmlValidationContext - the message validation context describes the circumstances the message
instance will be validated against.
boolean validate()
boolean getServiceStatus()
java.lang.String getValidationReport()
java.lang.String getLastExceptionMessage()