Difference between revisions of "Template:Schematron Rule"
Jump to navigation
Jump to search
m |
Tsoutherland (talk | contribs) (Changed "A" to "A(n)" to account for profiles that begin with vowels) |
||
Line 25: | Line 25: | ||
<assert test='.//cda:templateId[@root = "{{{6}}}"]'>{{If|test={{Equal|{{{5}}}|R}}|then= | <assert test='.//cda:templateId[@root = "{{{6}}}"]'>{{If|test={{Equal|{{{5}}}|R}}|then= | ||
<!-- Verify that all required data elements are present --> | <!-- Verify that all required data elements are present --> | ||
− | Error: A {{{2}}} must contain {{{4}}}.}}{{If|test={{Equal|{{{5}}}|R2}}|then= | + | Error: A(n) {{{2}}} must contain {{{4}}}.}}{{If|test={{Equal|{{{5}}}|R2}}|then= |
<!-- Alert on any missing required if known elements --> | <!-- Alert on any missing required if known elements --> | ||
− | Warning: A {{{2}}} should contain {{{4}}}.}}{{If|test={{Equal|{{{5}}}|O}}|then= | + | Warning: A(n) {{{2}}} should contain {{{4}}}.}}{{If|test={{Equal|{{{5}}}|O}}|then= |
<-- Note any missing optional elements --> | <-- Note any missing optional elements --> | ||
Note: This {{{2}}} does not contain {{{4}}}.}}{{If|test={{Equal|{{{5}}}|C}}|then= | Note: This {{{2}}} does not contain {{{4}}}.}}{{If|test={{Equal|{{{5}}}|C}}|then= |
Revision as of 10:45, 9 August 2007
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(n) Name must contain Required component.. See http://wiki.ihe.net/index.php?title=OID Comment </assert> <assert test='.//cda:templateId[@root = "R2OID"]'> <!-- Alert on any missing required if known elements --> Warning: A(n) Name should contain Required If Known component.. See http://wiki.ihe.net/index.php?title=OID Comment </assert> <assert test='.//cda:templateId[@root = "OptOID"]'> <-- Note any missing optional elements --> Note: This Name does not contain Optional component.. See http://wiki.ihe.net/index.php?title=OID Comment </assert> <assert test='.//cda:templateId[@root = "COID"]'> <-- Manually verify condtional elements --> Manual: This Name does not contain Conditional component.. See http://wiki.ihe.net/index.php?title=OID Comment </assert> <assert test='.//cda:templateId[@root = "ROID"]'> <!-- Verify that all required data elements are present --> Error: A(n) Name must contain Required. See http://wiki.ihe.net/index.php?title=OID </assert> <assert test='.//cda:templateId[@root = "R2OID"]'> <!-- Alert on any missing required if known elements --> Warning: A(n) Name should contain Required If Known. See http://wiki.ihe.net/index.php?title=OID </assert> <assert test='.//cda:templateId[@root = "OptOID"]'> <-- Note any missing optional elements --> Note: This Name does not contain Optional. See http://wiki.ihe.net/index.php?title=OID </assert> <assert test='.//cda:templateId[@root = "COID"]'> <-- Manually verify condtional elements --> Manual: This Name does not contain Conditional. See http://wiki.ihe.net/index.php?title=OID </assert> <assert test='.//cda:templateId[@root = "{{{6}}}"]'> See http://wiki.ihe.net/index.php?title={{{3}}} </assert>