<?xml version="1.0" encoding="UTF-8"?>
<!--
Template derived pattern
===========================================
ID: 2.16.840.1.113883.3.4424.13.10.4.286
Name: [4] Podsumowanie, Data i czas realizacji zlecenia
Description: Podsumowanie, Data i czas realizacji zlecenia
-->
<pattern xmlns="http://purl.oclc.org/dsdl/schematron"
         id="template-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000">
   <title>[4] Podsumowanie, Data i czas realizacji zlecenia</title>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]"
         id="d16e13352-false-d51629e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]"
         id="d16e13477-false-d51646e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@classCode) = ('BATTERY')">(plCdaDispatchAndResponseTimelineEntry): The value for classCode SHALL be 'BATTERY'. Found: "<value-of select="@classCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN')">(plCdaDispatchAndResponseTimelineEntry): The value for moodCode SHALL be 'EVN'. Found: "<value-of select="@moodCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286'] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286'] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:code[(@code = 'VIc' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.1')]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:code[(@code = 'VIc' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.1')] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:code[(@code = 'VIc' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.1')]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:code[(@code = 'VIc' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.1')] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:statusCode[@code = 'completed']) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:statusCode[@code = 'completed'] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:statusCode[@code = 'completed']) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:statusCode[@code = 'completed'] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:component[hl7:act/hl7:code/@code='1'][not(@nullFlavor)]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:component[hl7:act/hl7:code/@code='1'][not(@nullFlavor)] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:component[hl7:act/hl7:code/@code='1'][not(@nullFlavor)]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:component[hl7:act/hl7:code/@code='1'][not(@nullFlavor)] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:component[hl7:act/hl7:code/@code='2'][not(@nullFlavor)]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:component[hl7:act/hl7:code/@code='2'][not(@nullFlavor)] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:component[hl7:act/hl7:code/@code='2'][not(@nullFlavor)]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:component[hl7:act/hl7:code/@code='2'][not(@nullFlavor)] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:component[hl7:act/hl7:code/@code='3'][not(@nullFlavor)]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:component[hl7:act/hl7:code/@code='3'][not(@nullFlavor)] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:component[hl7:act/hl7:code/@code='3'][not(@nullFlavor)]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:component[hl7:act/hl7:code/@code='3'][not(@nullFlavor)] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:component[hl7:act/hl7:code/@code='4'][not(@nullFlavor)]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:component[hl7:act/hl7:code/@code='4'][not(@nullFlavor)] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:component[hl7:act/hl7:code/@code='4'][not(@nullFlavor)]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:component[hl7:act/hl7:code/@code='4'][not(@nullFlavor)] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:component[hl7:act/hl7:code/@code='5']) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:component[hl7:act/hl7:code/@code='5'] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:component[hl7:act/hl7:code/@code='6']) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:component[hl7:act/hl7:code/@code='6'] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:component[hl7:act/hl7:code/@code='7'][not(@nullFlavor)]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:component[hl7:act/hl7:code/@code='7'][not(@nullFlavor)] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:component[hl7:act/hl7:code/@code='7'][not(@nullFlavor)]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:component[hl7:act/hl7:code/@code='7'][not(@nullFlavor)] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']"
         id="d16e13483-false-d51728e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@root) = ('2.16.840.1.113883.3.4424.13.10.4.286')">(plCdaDispatchAndResponseTimelineEntry): The value for root SHALL be '2.16.840.1.113883.3.4424.13.10.4.286'. Found: "<value-of select="@root"/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:code[(@code = 'VIc' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.1')]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:code[(@code = 'VIc' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.1')]"
         id="d16e13488-false-d51740e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="@nullFlavor or (@code='VIc' and @codeSystem='2.16.840.1.113883.3.4424.13.5.30.1' and @displayName='Data i czas realizacji zlecenia' and @codeSystemName='WpisDoKMCR_KMLZRM')">(plCdaDispatchAndResponseTimelineEntry): The element value SHALL be one of 'code 'VIc' codeSystem '2.16.840.1.113883.3.4424.13.5.30.1' displayName='Data i czas realizacji zlecenia' codeSystemName='WpisDoKMCR_KMLZRM''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:statusCode[@code = 'completed']
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:statusCode[@code = 'completed']"
         id="d16e13493-false-d51754e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="@nullFlavor or (@code='completed')">(plCdaDispatchAndResponseTimelineEntry): The element value SHALL be one of 'code 'completed''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='1'][not(@nullFlavor)]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='1'][not(@nullFlavor)]"
         id="d16e13499-false-d51765e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaDispatchAndResponseTimelineEntry): The value for typeCode SHALL be 'COMP'. Found: "<value-of select="@typeCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = '1' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:act[hl7:code[(@code = '1' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = '1' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:act[hl7:code[(@code = '1' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='1'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '1' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='1'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '1' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]"
         id="d16e13521-false-d51787e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@classCode) = ('ACT')">(plCdaDispatchAndResponseTimelineEntry): The value for classCode SHALL be 'ACT'. Found: "<value-of select="@classCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN')">(plCdaDispatchAndResponseTimelineEntry): The value for moodCode SHALL be 'EVN'. Found: "<value-of select="@moodCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '1' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:code[(@code = '1' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '1' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:code[(@code = '1' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:statusCode[@code = 'completed']) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:statusCode[@code = 'completed'] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:statusCode[@code = 'completed']) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:statusCode[@code = 'completed'] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:effectiveTime[not(@nullFlavor)]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:effectiveTime[not(@nullFlavor)] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:effectiveTime[not(@nullFlavor)]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:effectiveTime[not(@nullFlavor)] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='1'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '1' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:code[(@code = '1' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='1'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '1' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:code[(@code = '1' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]"
         id="d16e13527-false-d51830e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="@nullFlavor or (@code='1' and @codeSystem='2.16.840.1.113883.3.4424.13.5.30.5' and @displayName='Data i czas przekazania zlecenia do ZRM/LZRM' and @codeSystemName='EtapyRealizacjiZleceniaZrm')">(plCdaDispatchAndResponseTimelineEntry): The element value SHALL be one of 'code '1' codeSystem '2.16.840.1.113883.3.4424.13.5.30.5' displayName='Data i czas przekazania zlecenia do ZRM/LZRM' codeSystemName='EtapyRealizacjiZleceniaZrm''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='1'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '1' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:statusCode[@code = 'completed']
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='1'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '1' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:statusCode[@code = 'completed']"
         id="d16e13532-false-d51844e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="@nullFlavor or (@code='completed')">(plCdaDispatchAndResponseTimelineEntry): The element value SHALL be one of 'code 'completed''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='1'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '1' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:effectiveTime[not(@nullFlavor)]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='2'][not(@nullFlavor)]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='2'][not(@nullFlavor)]"
         id="d16e13541-false-d51863e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaDispatchAndResponseTimelineEntry): The value for typeCode SHALL be 'COMP'. Found: "<value-of select="@typeCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = '2' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:act[hl7:code[(@code = '2' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = '2' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:act[hl7:code[(@code = '2' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='2'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '2' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='2'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '2' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]"
         id="d16e13563-false-d51885e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@classCode) = ('ACT')">(plCdaDispatchAndResponseTimelineEntry): The value for classCode SHALL be 'ACT'. Found: "<value-of select="@classCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN')">(plCdaDispatchAndResponseTimelineEntry): The value for moodCode SHALL be 'EVN'. Found: "<value-of select="@moodCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '2' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:code[(@code = '2' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '2' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:code[(@code = '2' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:statusCode[@code = 'completed']) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:statusCode[@code = 'completed'] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:statusCode[@code = 'completed']) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:statusCode[@code = 'completed'] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:effectiveTime[not(@nullFlavor)]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:effectiveTime[not(@nullFlavor)] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:effectiveTime[not(@nullFlavor)]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:effectiveTime[not(@nullFlavor)] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='2'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '2' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:code[(@code = '2' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='2'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '2' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:code[(@code = '2' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]"
         id="d16e13569-false-d51928e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="@nullFlavor or (@code='2' and @codeSystem='2.16.840.1.113883.3.4424.13.5.30.5' and @displayName='Data i czas potwierdzenia przyjęcia zlecenia' and @codeSystemName='EtapyRealizacjiZleceniaZrm')">(plCdaDispatchAndResponseTimelineEntry): The element value SHALL be one of 'code '2' codeSystem '2.16.840.1.113883.3.4424.13.5.30.5' displayName='Data i czas potwierdzenia przyjęcia zlecenia' codeSystemName='EtapyRealizacjiZleceniaZrm''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='2'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '2' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:statusCode[@code = 'completed']
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='2'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '2' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:statusCode[@code = 'completed']"
         id="d16e13574-false-d51942e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="@nullFlavor or (@code='completed')">(plCdaDispatchAndResponseTimelineEntry): The element value SHALL be one of 'code 'completed''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='2'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '2' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:effectiveTime[not(@nullFlavor)]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='3'][not(@nullFlavor)]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='3'][not(@nullFlavor)]"
         id="d16e13583-false-d51961e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaDispatchAndResponseTimelineEntry): The value for typeCode SHALL be 'COMP'. Found: "<value-of select="@typeCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = '3' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:act[hl7:code[(@code = '3' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = '3' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:act[hl7:code[(@code = '3' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='3'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '3' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='3'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '3' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]"
         id="d16e13605-false-d51983e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@classCode) = ('ACT')">(plCdaDispatchAndResponseTimelineEntry): The value for classCode SHALL be 'ACT'. Found: "<value-of select="@classCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN')">(plCdaDispatchAndResponseTimelineEntry): The value for moodCode SHALL be 'EVN'. Found: "<value-of select="@moodCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '3' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:code[(@code = '3' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '3' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:code[(@code = '3' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:statusCode[@code = 'completed']) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:statusCode[@code = 'completed'] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:statusCode[@code = 'completed']) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:statusCode[@code = 'completed'] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:effectiveTime[not(@nullFlavor)]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:effectiveTime[not(@nullFlavor)] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:effectiveTime[not(@nullFlavor)]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:effectiveTime[not(@nullFlavor)] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='3'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '3' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:code[(@code = '3' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='3'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '3' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:code[(@code = '3' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]"
         id="d16e13611-false-d52026e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="@nullFlavor or (@code='3' and @codeSystem='2.16.840.1.113883.3.4424.13.5.30.5' and @displayName='Data i czas wyjazdy ZRM / wylotu LZRM' and @codeSystemName='EtapyRealizacjiZleceniaZrm')">(plCdaDispatchAndResponseTimelineEntry): The element value SHALL be one of 'code '3' codeSystem '2.16.840.1.113883.3.4424.13.5.30.5' displayName='Data i czas wyjazdy ZRM / wylotu LZRM' codeSystemName='EtapyRealizacjiZleceniaZrm''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='3'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '3' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:statusCode[@code = 'completed']
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='3'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '3' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:statusCode[@code = 'completed']"
         id="d16e13616-false-d52040e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="@nullFlavor or (@code='completed')">(plCdaDispatchAndResponseTimelineEntry): The element value SHALL be one of 'code 'completed''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='3'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '3' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:effectiveTime[not(@nullFlavor)]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='4'][not(@nullFlavor)]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='4'][not(@nullFlavor)]"
         id="d16e13625-false-d52059e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaDispatchAndResponseTimelineEntry): The value for typeCode SHALL be 'COMP'. Found: "<value-of select="@typeCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = '4' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:act[hl7:code[(@code = '4' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = '4' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:act[hl7:code[(@code = '4' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='4'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '4' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='4'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '4' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]"
         id="d16e13647-false-d52081e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@classCode) = ('ACT')">(plCdaDispatchAndResponseTimelineEntry): The value for classCode SHALL be 'ACT'. Found: "<value-of select="@classCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN')">(plCdaDispatchAndResponseTimelineEntry): The value for moodCode SHALL be 'EVN'. Found: "<value-of select="@moodCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '4' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:code[(@code = '4' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '4' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:code[(@code = '4' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:statusCode[@code = 'completed']) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:statusCode[@code = 'completed'] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:statusCode[@code = 'completed']) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:statusCode[@code = 'completed'] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:effectiveTime[not(@nullFlavor)]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:effectiveTime[not(@nullFlavor)] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:effectiveTime[not(@nullFlavor)]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:effectiveTime[not(@nullFlavor)] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='4'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '4' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:code[(@code = '4' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='4'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '4' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:code[(@code = '4' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]"
         id="d16e13653-false-d52124e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="@nullFlavor or (@code='4' and @codeSystem='2.16.840.1.113883.3.4424.13.5.30.5' and @displayName='Data i czas przybycia na miejsce zdarzenia' and @codeSystemName='EtapyRealizacjiZleceniaZrm')">(plCdaDispatchAndResponseTimelineEntry): The element value SHALL be one of 'code '4' codeSystem '2.16.840.1.113883.3.4424.13.5.30.5' displayName='Data i czas przybycia na miejsce zdarzenia' codeSystemName='EtapyRealizacjiZleceniaZrm''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='4'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '4' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:statusCode[@code = 'completed']
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='4'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '4' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:statusCode[@code = 'completed']"
         id="d16e13658-false-d52138e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="@nullFlavor or (@code='completed')">(plCdaDispatchAndResponseTimelineEntry): The element value SHALL be one of 'code 'completed''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='4'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '4' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:effectiveTime[not(@nullFlavor)]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='5']
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='5']"
         id="d16e13667-false-d52157e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaDispatchAndResponseTimelineEntry): The value for typeCode SHALL be 'COMP'. Found: "<value-of select="@typeCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = '5' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:act[hl7:code[(@code = '5' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = '5' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:act[hl7:code[(@code = '5' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='5']/hl7:act[hl7:code[(@code = '5' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='5']/hl7:act[hl7:code[(@code = '5' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]"
         id="d16e13689-false-d52179e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@classCode) = ('ACT')">(plCdaDispatchAndResponseTimelineEntry): The value for classCode SHALL be 'ACT'. Found: "<value-of select="@classCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN')">(plCdaDispatchAndResponseTimelineEntry): The value for moodCode SHALL be 'EVN'. Found: "<value-of select="@moodCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '5' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:code[(@code = '5' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '5' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:code[(@code = '5' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:statusCode[@code = 'completed']) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:statusCode[@code = 'completed'] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:statusCode[@code = 'completed']) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:statusCode[@code = 'completed'] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:effectiveTime[not(@nullFlavor)]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:effectiveTime[not(@nullFlavor)] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:effectiveTime[not(@nullFlavor)]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:effectiveTime[not(@nullFlavor)] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='5']/hl7:act[hl7:code[(@code = '5' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:code[(@code = '5' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='5']/hl7:act[hl7:code[(@code = '5' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:code[(@code = '5' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]"
         id="d16e13695-false-d52222e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="@nullFlavor or (@code='5' and @codeSystem='2.16.840.1.113883.3.4424.13.5.30.5' and @displayName='Data i czas przybycia do podmiotu leczniczego' and @codeSystemName='EtapyRealizacjiZleceniaZrm')">(plCdaDispatchAndResponseTimelineEntry): The element value SHALL be one of 'code '5' codeSystem '2.16.840.1.113883.3.4424.13.5.30.5' displayName='Data i czas przybycia do podmiotu leczniczego' codeSystemName='EtapyRealizacjiZleceniaZrm''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='5']/hl7:act[hl7:code[(@code = '5' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:statusCode[@code = 'completed']
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='5']/hl7:act[hl7:code[(@code = '5' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:statusCode[@code = 'completed']"
         id="d16e13700-false-d52236e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="@nullFlavor or (@code='completed')">(plCdaDispatchAndResponseTimelineEntry): The element value SHALL be one of 'code 'completed''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='5']/hl7:act[hl7:code[(@code = '5' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:effectiveTime[not(@nullFlavor)]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='6']
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='6']"
         id="d16e13709-false-d52255e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaDispatchAndResponseTimelineEntry): The value for typeCode SHALL be 'COMP'. Found: "<value-of select="@typeCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = '6' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:act[hl7:code[(@code = '6' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = '6' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:act[hl7:code[(@code = '6' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='6']/hl7:act[hl7:code[(@code = '6' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='6']/hl7:act[hl7:code[(@code = '6' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]"
         id="d16e13731-false-d52277e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@classCode) = ('ACT')">(plCdaDispatchAndResponseTimelineEntry): The value for classCode SHALL be 'ACT'. Found: "<value-of select="@classCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN')">(plCdaDispatchAndResponseTimelineEntry): The value for moodCode SHALL be 'EVN'. Found: "<value-of select="@moodCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '6' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:code[(@code = '6' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '6' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:code[(@code = '6' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:statusCode[@code = 'completed']) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:statusCode[@code = 'completed'] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:statusCode[@code = 'completed']) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:statusCode[@code = 'completed'] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:effectiveTime[not(@nullFlavor)]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:effectiveTime[not(@nullFlavor)] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:effectiveTime[not(@nullFlavor)]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:effectiveTime[not(@nullFlavor)] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='6']/hl7:act[hl7:code[(@code = '6' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:code[(@code = '6' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='6']/hl7:act[hl7:code[(@code = '6' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:code[(@code = '6' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]"
         id="d16e13737-false-d52320e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="@nullFlavor or (@code='6' and @codeSystem='2.16.840.1.113883.3.4424.13.5.30.5' and @displayName='Data i czas przekazania pacjenta' and @codeSystemName='EtapyRealizacjiZleceniaZrm')">(plCdaDispatchAndResponseTimelineEntry): The element value SHALL be one of 'code '6' codeSystem '2.16.840.1.113883.3.4424.13.5.30.5' displayName='Data i czas przekazania pacjenta' codeSystemName='EtapyRealizacjiZleceniaZrm''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='6']/hl7:act[hl7:code[(@code = '6' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:statusCode[@code = 'completed']
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='6']/hl7:act[hl7:code[(@code = '6' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:statusCode[@code = 'completed']"
         id="d16e13742-false-d52334e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="@nullFlavor or (@code='completed')">(plCdaDispatchAndResponseTimelineEntry): The element value SHALL be one of 'code 'completed''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='6']/hl7:act[hl7:code[(@code = '6' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:effectiveTime[not(@nullFlavor)]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='7'][not(@nullFlavor)]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='7'][not(@nullFlavor)]"
         id="d16e13752-false-d52353e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaDispatchAndResponseTimelineEntry): The value for typeCode SHALL be 'COMP'. Found: "<value-of select="@typeCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = '7' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:act[hl7:code[(@code = '7' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = '7' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:act[hl7:code[(@code = '7' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='7'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '7' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='7'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '7' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]"
         id="d16e13774-false-d52375e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@classCode) = ('ACT')">(plCdaDispatchAndResponseTimelineEntry): The value for classCode SHALL be 'ACT'. Found: "<value-of select="@classCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN')">(plCdaDispatchAndResponseTimelineEntry): The value for moodCode SHALL be 'EVN'. Found: "<value-of select="@moodCode"/>"</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '7' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:code[(@code = '7' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '7' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:code[(@code = '7' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:statusCode[@code = 'completed']) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:statusCode[@code = 'completed'] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:statusCode[@code = 'completed']) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:statusCode[@code = 'completed'] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:effectiveTime[not(@nullFlavor)]) &gt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:effectiveTime[not(@nullFlavor)] is mandatory [min 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="count(hl7:effectiveTime[not(@nullFlavor)]) &lt;= 1">(plCdaDispatchAndResponseTimelineEntry): element hl7:effectiveTime[not(@nullFlavor)] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='7'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '7' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:code[(@code = '7' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='7'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '7' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:code[(@code = '7' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]"
         id="d16e13780-false-d52418e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="@nullFlavor or (@code='7' and @codeSystem='2.16.840.1.113883.3.4424.13.5.30.5' and @displayName='Data i czas zakończenia zlecenia' and @codeSystemName='EtapyRealizacjiZleceniaZrm')">(plCdaDispatchAndResponseTimelineEntry): The element value SHALL be one of 'code '7' codeSystem '2.16.840.1.113883.3.4424.13.5.30.5' displayName='Data i czas zakończenia zlecenia' codeSystemName='EtapyRealizacjiZleceniaZrm''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='7'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '7' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:statusCode[@code = 'completed']
Item: (plCdaDispatchAndResponseTimelineEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='7'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '7' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:statusCode[@code = 'completed']"
         id="d16e13785-false-d52432e0">
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.286-2025-02-26T000000.html"
              test="@nullFlavor or (@code='completed')">(plCdaDispatchAndResponseTimelineEntry): The element value SHALL be one of 'code 'completed''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.286
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.286']]/hl7:component[hl7:act/hl7:code/@code='7'][not(@nullFlavor)]/hl7:act[hl7:code[(@code = '7' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.5')]]/hl7:effectiveTime[not(@nullFlavor)]
Item: (plCdaDispatchAndResponseTimelineEntry)
-->
</pattern>
