Schematron support in the hl7 adapter – Sun Microsystems Sun Adapter IP HL 7 User Manual
Page 25
...
...
...
Schematron Support in the HL7 Adapter
Schematron is supported for HL7 V3 Message Libraries. The Schematron uses the concept of
finding tree patterns in the parsed document rather than the grammar. This approach allows
representation of numerous structures that are inconvenient and difficult in grammar-based
schema languages.
For example, the following file defines a Person element that includes a Name field and a
Gender field:
"1.0" encoding="UTF-8"?>
The above XML document can be validated against the below schematron, which defines a test
for a Title field, a test for Name and Gender, and a test for the order of fields:
"1.0" encoding="UTF-8"?>
"http://www.ascc.net/xml/schematron"> "Check structure"> "Person"> "@Title">The element Person must have a Title attribute "count(*) = 2 and count(Name) = 1 and count(Gender) = 1">The element Person should have the child elements Name and Gender. "*[1] = Name">The element Name must appear before element Gender.
Sun Adapter for TCP/IP HL7 Overview
Sun Adapter for TCP/IP HL7 User's Guide
25