Difference between revisions of "Template:Schematron Rule"
Jump to navigation
Jump to search
m |
m |
||
Line 11: | Line 11: | ||
; 6: OID of component | ; 6: OID of component | ||
; 7: Comment on component | ; 7: Comment on component | ||
+ | ; 8: Type of Parent Entry | ||
== Demonstration == | == Demonstration == | ||
Line 37: | Line 38: | ||
<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: The {{{2}}} must contain a(n) {{{4}}} {{{1}}}.}}{{If|test={{Equal|{{{5}}}|R2}}|then= | + | Error: The {{{2}}} {{{8|}}} must contain a(n) {{{4}}} {{{1}}}.}}{{If|test={{Equal|{{{5}}}|R2}}|then= |
<!-- Alert on any missing required if known elements --> | <!-- Alert on any missing required if known elements --> | ||
− | Warning: The {{{2}}} should contain a(n) {{{4}}} {{{1}}}.}}{{If|test={{Equal|{{{5}}}|O}}|then= | + | Warning: The {{{2}}} {{{8|}}} should contain a(n) {{{4}}} {{{1}}}.}}{{If|test={{Equal|{{{5}}}|O}}|then= |
<!-- Note any missing optional elements --> | <!-- Note any missing optional elements --> | ||
− | Note: This {{{2}}} does not contain a(n) {{{4}}} {{{1}}}.}}{{If|test={{Equal|{{{5}}}|C}}|then= | + | Note: This {{{2}}} {{{8|}}} does not contain a(n) {{{4}}} {{{1}}}.}}{{If|test={{Equal|{{{5}}}|C}}|then= |
<!-- Manually verify condtional elements --> | <!-- Manually verify condtional elements --> | ||
− | Manual: This {{{2}}} does not contain a(n) {{{4}}} {{{1}}}. | + | Manual: This {{{2}}} {{{8|}}} does not contain a(n) {{{4}}} {{{1}}}. |
}} | }} | ||
See <nowiki>http://wiki.ihe.net/index.php?title=</nowiki>{{{3}}}{{If|test={{{7|}}}|then= | See <nowiki>http://wiki.ihe.net/index.php?title=</nowiki>{{{3}}}{{If|test={{{7|}}}|then= | ||
}} | }} | ||
</assert>}}</includeonly> | </assert>}}</includeonly> |
Latest revision as of 11:55, 2 October 2008
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
- 8
- Type of Parent Entry
Demonstration
{{Schematron Rule|Section|Name|OID|Required component|R|ROID|Comment|Document}}{{ Schematron Rule|Section|Name|OID|Required If Known component|R2|R2OID|Comment|Document}}{{ Schematron Rule|Section|Name|OID|Optional component|O|OptOID|Comment|Document}}{{ Schematron Rule|Section|Name|OID|Conditional component|C|COID|Comment|Document}}{{ Schematron Rule|Entry|Name|OID|Required|R|ROID|Comment|Section}}{{ Schematron Rule|Entry|Name|OID|Required If Known|R2|R2OID|Comment|Section}}{{ Schematron Rule|Entry|Name|OID|Optional|O|OptOID|Comment|Section}}{{ Schematron Rule|Entry|Name|OID|Conditional|C|COID|Comment|Section}}{{ Schematron Rule|Entry|Name|OID|Over-ridden Conditional|CX|COID|Comment|Section}}
<assert test='.//cda:templateId[@root = "ROID"]'> <!-- Verify that all required data elements are present --> Error: The Name Document must contain a(n) Required component Section. 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: The Name Document should contain a(n) Required If Known component Section. See http://wiki.ihe.net/index.php?title=OID </assert> <assert test='.//cda:templateId[@root = "OptOID"]'> <!-- Note any missing optional elements --> Note: This Name Document does not contain a(n) Optional component Section. See http://wiki.ihe.net/index.php?title=OID </assert> <assert test='.//cda:templateId[@root = "COID"]'> <!-- Manually verify condtional elements --> Manual: This Name Document does not contain a(n) Conditional component Section. See http://wiki.ihe.net/index.php?title=OID </assert> <assert test='.//cda:templateId[@root = "ROID"]'> <!-- Verify that all required data elements are present --> Error: The Name Section must contain a(n) Required Entry. 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: The Name Section should contain a(n) Required If Known Entry. See http://wiki.ihe.net/index.php?title=OID </assert> <assert test='.//cda:templateId[@root = "OptOID"]'> <!-- Note any missing optional elements --> Note: This Name Section does not contain a(n) Optional Entry. See http://wiki.ihe.net/index.php?title=OID </assert> <assert test='.//cda:templateId[@root = "COID"]'> <!-- Manually verify condtional elements --> Manual: This Name Section does not contain a(n) Conditional Entry. See http://wiki.ihe.net/index.php?title=OID </assert>
---