Template:CDA Document Schema Section: 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:component/cda:section/cda:templateId[@root = "{{{4}}}"]'>
{{If|test={{Equal|{{{3}}}|R}}|then=
{{If|test={{Equal|{{{3}}}|R}}|then=
      <!-- Verify that all required data elements are present -->
        &lt;!-- Verify that all required data elements are present -->
      <assert test='.//cda:component/cda:section/cda:templateId[@root = "{{{4}}}"]'>
         Error: A {{{1}}} must contain a {{{2}}} section.
         Error: A {{{1}}} must contain a {{{2}}} section.
      </assert>
}}{{If|test={{Equal|{{{3}}}|R2}}|then=
}}{{If|test={{Equal|{{{3}}}|R2}}|then=
      <!-- Alert on any missing required if known elements -->
        &lt;!-- Alert on any missing required if known elements -->
      <assert test='.//templateId[@root = "{{{4}}}"]'>
         Warning: A {{{1}}} should contain a {{{2}}} section.
         Warning: A {{{1}}} should contain a {{{2}}} section.
      </assert>
}}{{If|test={{Equal|{{{3}}}|O}}|then=
}}{{If|test={{Equal|{{{3}}}|O}}|then=
      <!-- Note any missing optional elements -->
        &lt;!-- Note any missing optional elements -->
      <assert test='.//templateId[@root = "{{{4}}}"]'>
         Note: This {{{1}}} does not contain a {{{2}}} section.
         Note: This {{{1}}} does not contain a {{{2}}} section.
      </assert>
}}{{If|test={{Equal|{{{3}}}|C}}|then=
}}{{If|test={{Equal|{{{3}}}|C}}|then=
      <!-- Note any missing optional elements -->
        &lt;!-- Note any missing optional elements -->
      <assert test='.//templateId[@root = "{{{4}}}"]'>
         Manual: This {{{1}}} does not contain a {{{2}}} section.
         Manual: This {{{1}}} does not contain a {{{2}}} section.
         {{{5}}}
         {{{5}}}
}}
       </assert>
       </assert>
}}

Revision as of 14:33, 18 May 2007

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