Template:Schematron Rule

From IHE Wiki
Revision as of 16:26, 18 May 2007 by Kboone (talk | contribs)
Jump to navigation Jump to search

Instructions

 {{Schematron Rule|1|2|3|4|5|6|7}}
1
Type of Entry
2
Name of Entry being tested
3
OID of Entry being tested
4
Name of component.
5
Optionality of component
6
OID of component
7
Comment on component

Demonstration

<assert test='.//cda:templateId[@root = "ROID"]'>

       <!-- Verify that all required data elements are present -->
       Error: A Name must contain Required component.. 
       See http://www.ihe.net/index.php/OID
       Comment
     </assert>


<assert test='.//cda:templateId[@root = "R2OID"]'>

       <!-- Alert on any missing required if known elements -->
       Warning: A Name should contain Required If Known component.. Comment
       See http://www.ihe.net/index.php/OID
     </assert>


<assert test='.//cda:templateId[@root = "OptOID"]'>

       <-- Note any missing optional elements -->
       Note: This Name does not contain Optional component.. Comment
       See http://www.ihe.net/index.php/OID
     </assert>


<assert test='.//cda:templateId[@root = "COID"]'>

       Manual: This Name does not contain Conditional component.. Comment
       See http://www.ihe.net/index.php/OID
     </assert>


<assert test='.//cda:templateId[@root = "ROID"]'>

       <!-- Verify that all required data elements are present -->
       Error: A Name must contain Required. 
       See http://www.ihe.net/index.php/OID
       
     </assert>


<assert test='.//cda:templateId[@root = "R2OID"]'>

       <!-- Alert on any missing required if known elements -->
       Warning: A Name should contain Required If Known. 
       See http://www.ihe.net/index.php/OID
     </assert>


<assert test='.//cda:templateId[@root = "OptOID"]'>

       <-- Note any missing optional elements -->
       Note: This Name does not contain Optional. 
       See http://www.ihe.net/index.php/OID
     </assert>


<assert test='.//cda:templateId[@root = "COID"]'>

       Manual: This Name does not contain Conditional. 
       See http://www.ihe.net/index.php/OID
     </assert>