Template:Schematron Rule: Difference between revisions

From IHE Wiki
Jump to navigation Jump to search
Kboone (talk | contribs)
mNo edit summary
Kboone (talk | contribs)
mNo edit summary
Line 1: Line 1:
       <assert test='.//cda:templateId[@root = "{{{6}}}"]'>
       <assert test='.//cda:templateId[@root = "{{{6}}}"]'><br/>
{{If|test={{Equal|{{{5}}}|R}}|then=<br/>
{{If|test={{Equal|{{{5}}}|R}}|then=
        &lt;!-- Verify that all required data elements are present -->
&nbsp;      &lt;!-- Verify that all required data elements are present -->
        Error: A {{{2}}} must contain {{{4}}}.  
&nbsp;      Error: A {{{2}}} must contain {{{4}}}. }}{{If|test={{Equal|{{{5}}}|R2}}|then=<br/>
}}{{If|test={{Equal|{{{5}}}|R2}}|then=<br/>
&nbsp;      &lt;!-- Alert on any missing required if known elements -->
        &lt;!-- Alert on any missing required if known elements -->
&nbsp;      Warning: A {{{2}}} should contain {{{4}}}.}}{{If|test={{Equal|{{{5}}}|O}}|then=<br/>
        Warning: A {{{2}}} should contain {{{4}}}.
&nbsp;      &lt;!-- Note any missing optional elements -->
}}{{If|test={{Equal|{{{5}}}|O}}|then=<br/>
&nbsp;      Note: This {{{2}}} does not contain {{{4}}}.}}{{If|test={{Equal|{{{5}}}|C}}|then=<br/>
        &lt;!-- Note any missing optional elements -->
&nbsp;      &lt;!-- Manually test conditional elements -->
        Note: This {{{2}}} does not contain {{{4}}}.
&nbsp;      Manual: This {{{2}}} does not contain {{{4}}}.}}{{If|test={{{7|}}}|then=
}}{{If|test={{Equal|{{{5}}}|C}}|then=<br/>
&nbsp;      {{{7}}}}}<br/>        <nowiki>See http://www.ihe.net/index.php/</nowiki>{{{3}}}
        &lt;!-- Manually test conditional elements -->
        Manual: This {{{2}}} does not contain {{{4}}}.
}}{{If|test={{{7|}}}|then=<br/>        {{{7}}}}}
        <nowiki>See http://www.ihe.net/index.php/</nowiki>{{{3}}}
       </assert><br/>    &nbsp;<noinclude>
       </assert><br/>    &nbsp;<noinclude>
<pre>
<pre>

Revision as of 16:05, 18 May 2007

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


See http://www.ihe.net/index.php/{{{3}}}

     </assert>
 
 {{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