Sun Adapter for TCP/IP HL7 User's Guide

Performing the Validation

Below is a sample call to the validate method.


com.stc.connector.hl7.schematron.ValidationOutput
   output = validator.validate( dataSrc );

In the above example, dataSrc is the source of the payload. The payload can be an entire V3 XML document or a CDA document.

The ValidationOutput object contains the resulting XML document as well as a method isValid(), which returns values when the validation has passed or failed.