Below is a sample schematron validation file that checks for the presence of the profileid field in the PRPA_IN403001UV01 OTD.
<?xml version="1.0" encoding="UTF-8"?> <sch:schema xmlns:sch="http://www.ascc.net/xml/schematron"> <sch:ns prefix="hl7v3" uri="urn:hl7-org:v3"/> <sch:pattern name="Check structure"> <sch:rule context="hl7v3:PRPA_IN403001UV01"> <sch:assert test="count(hl7v3:profileId) = 1">The profileId should be present. It is missing.</sch:assert> </sch:rule> </sch:pattern> </sch:schema> |