<?xml version="1.0" encoding="UTF-8"?>
<!--
Template derived pattern
===========================================
ID: 2.16.840.1.113883.3.4424.13.10.4.279
Name: [4] KMCR VIb Udzielono medycznych czynności ratunkowych
Description: KMCR VIb Udzielono medycznych czynności ratunkowych
-->
<pattern xmlns="http://purl.oclc.org/dsdl/schematron"
         id="template-2.16.840.1.113883.3.4424.13.10.4.279-2025-02-26T000000">
   <title>[4] KMCR VIb Udzielono medycznych czynności ratunkowych</title>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]"
         id="d16e12404-false-d48335e0">
      <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.279-2025-02-26T000000.html"
              test="count(hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']] 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.279-2025-02-26T000000.html"
              test="count(hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]"
         id="d16e12484-false-d48352e0">
      <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.279-2025-02-26T000000.html"
              test="string(@classCode) = ('BATTERY')">(plCdaRescueTransportationEntry): 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.279-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN')">(plCdaRescueTransportationEntry): 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.279-2025-02-26T000000.html"
              test="count(hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279'] 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.279-2025-02-26T000000.html"
              test="count(hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279'] 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.279-2025-02-26T000000.html"
              test="count(hl7:code[(@code = 'KMCR_VIb' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.1')]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:code[(@code = 'KMCR_VIb' 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.279-2025-02-26T000000.html"
              test="count(hl7:code[(@code = 'KMCR_VIb' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.1')]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:code[(@code = 'KMCR_VIb' 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.279-2025-02-26T000000.html"
              test="count(hl7:statusCode[@code = 'completed']) &gt;= 1">(plCdaRescueTransportationEntry): 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.279-2025-02-26T000000.html"
              test="count(hl7:statusCode[@code = 'completed']) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:statusCode[@code = 'completed'] appears too often [max 1x].</assert>
      <let name="elmcount"
           value="count(hl7:component[hl7:act/hl7:code/@code='BPWMZ'] | hl7:component[hl7:act/hl7:code/@code='PPNMZ'] | hl7:component[hl7:act/hl7:code/@code='15517-6'] | hl7:component[hl7:act/hl7:code/@code='PNWZT'])"/>
      <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.279-2025-02-26T000000.html"
              test="$elmcount &gt;= 1">(plCdaRescueTransportationEntry): choice (hl7:component[hl7:act/hl7:code/@code='BPWMZ']  or  hl7:component[hl7:act/hl7:code/@code='PPNMZ']  or  hl7:component[hl7:act/hl7:code/@code='15517-6']  or  hl7:component[hl7:act/hl7:code/@code='PNWZT']) does not contain enough elements [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.279-2025-02-26T000000.html"
              test="$elmcount &lt;= 1">(plCdaRescueTransportationEntry): choice (hl7:component[hl7:act/hl7:code/@code='BPWMZ']  or  hl7:component[hl7:act/hl7:code/@code='PPNMZ']  or  hl7:component[hl7:act/hl7:code/@code='15517-6']  or  hl7:component[hl7:act/hl7:code/@code='PNWZT']) contains too many elements [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.279-2025-02-26T000000.html"
              test="count(hl7:component[hl7:act/hl7:code/@code='BPWMZ']) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:component[hl7:act/hl7:code/@code='BPWMZ'] 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.279-2025-02-26T000000.html"
              test="count(hl7:component[hl7:act/hl7:code/@code='PPNMZ']) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:component[hl7:act/hl7:code/@code='PPNMZ'] 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.279-2025-02-26T000000.html"
              test="count(hl7:component[hl7:act/hl7:code/@code='15517-6']) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:component[hl7:act/hl7:code/@code='15517-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.279-2025-02-26T000000.html"
              test="count(hl7:component[hl7:act/hl7:code/@code='PNWZT']) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:component[hl7:act/hl7:code/@code='PNWZT'] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']"
         id="d16e12490-false-d48418e0">
      <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.279-2025-02-26T000000.html"
              test="string(@root) = ('2.16.840.1.113883.3.4424.13.10.4.279')">(plCdaRescueTransportationEntry): The value for root SHALL be '2.16.840.1.113883.3.4424.13.10.4.279'. Found: "<value-of select="@root"/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:code[(@code = 'KMCR_VIb' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.1')]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:code[(@code = 'KMCR_VIb' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.1')]"
         id="d16e12495-false-d48430e0">
      <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.279-2025-02-26T000000.html"
              test="@nullFlavor or (@code='KMCR_VIb' and @codeSystem='2.16.840.1.113883.3.4424.13.5.30.1' and @displayName='Udzielono medycznych czynności ratunkowych' and @codeSystemName='WpisDoKMCR_KMLZRM')">(plCdaRescueTransportationEntry): The element value SHALL be one of 'code 'KMCR_VIb' codeSystem '2.16.840.1.113883.3.4424.13.5.30.1' displayName='Udzielono medycznych czynności ratunkowych' codeSystemName='WpisDoKMCR_KMLZRM''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:statusCode[@code = 'completed']
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:statusCode[@code = 'completed']"
         id="d16e12500-false-d48444e0">
      <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.279-2025-02-26T000000.html"
              test="@nullFlavor or (@code='completed')">(plCdaRescueTransportationEntry): 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.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='BPWMZ']
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='BPWMZ']"
         id="d16e12508-false-d48455e0">
      <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.279-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueTransportationEntry): 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.279-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = 'BPWMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:act[hl7:code[(@code = 'BPWMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]] 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.279-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = 'BPWMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:act[hl7:code[(@code = 'BPWMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='BPWMZ']/hl7:act[hl7:code[(@code = 'BPWMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='BPWMZ']/hl7:act[hl7:code[(@code = 'BPWMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]"
         id="d16e12529-false-d48477e0">
      <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.279-2025-02-26T000000.html"
              test="string(@classCode) = ('DOC') or not(@classCode)">(plCdaRescueTransportationEntry): The value for classCode SHALL be 'DOC'. 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.279-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueTransportationEntry): 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.279-2025-02-26T000000.html"
              test="count(hl7:code[(@code = 'BPWMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:code[(@code = 'BPWMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] 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.279-2025-02-26T000000.html"
              test="count(hl7:code[(@code = 'BPWMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:code[(@code = 'BPWMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] 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.279-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:text[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.279-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:text[not(@nullFlavor)] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='BPWMZ']/hl7:act[hl7:code[(@code = 'BPWMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]/hl7:code[(@code = 'BPWMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='BPWMZ']/hl7:act[hl7:code[(@code = 'BPWMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]/hl7:code[(@code = 'BPWMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]"
         id="d16e12535-false-d48511e0">
      <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.279-2025-02-26T000000.html"
              test="@nullFlavor or (@code='BPWMZ' and @codeSystem='2.16.840.1.113883.3.4424.13.5.30.3' and @displayName='brak pacjenta w miejscu zdarzenia' and @codeSystemName='ZakonczenieInterwencjiRatunkowej')">(plCdaRescueTransportationEntry): The element value SHALL be one of 'code 'BPWMZ' codeSystem '2.16.840.1.113883.3.4424.13.5.30.3' displayName='brak pacjenta w miejscu zdarzenia' codeSystemName='ZakonczenieInterwencjiRatunkowej''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='BPWMZ']/hl7:act[hl7:code[(@code = 'BPWMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='BPWMZ']/hl7:act[hl7:code[(@code = 'BPWMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]/hl7:text[not(@nullFlavor)]"
         id="d16e12540-false-d48524e0">
      <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.279-2025-02-26T000000.html"
              test="text()='brak pacjenta w miejscu zdarzenia'">(plCdaRescueTransportationEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''brak pacjenta w miejscu zdarzenia''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='PPNMZ']
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='PPNMZ']"
         id="d16e12548-false-d48533e0">
      <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.279-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueTransportationEntry): 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.279-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = 'PPNMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:act[hl7:code[(@code = 'PPNMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]] 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.279-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = 'PPNMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:act[hl7:code[(@code = 'PPNMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='PPNMZ']/hl7:act[hl7:code[(@code = 'PPNMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='PPNMZ']/hl7:act[hl7:code[(@code = 'PPNMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]"
         id="d16e12569-false-d48555e0">
      <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.279-2025-02-26T000000.html"
              test="string(@classCode) = ('DOC') or not(@classCode)">(plCdaRescueTransportationEntry): The value for classCode SHALL be 'DOC'. 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.279-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueTransportationEntry): 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.279-2025-02-26T000000.html"
              test="count(hl7:code[(@code = 'PPNMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:code[(@code = 'PPNMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] 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.279-2025-02-26T000000.html"
              test="count(hl7:code[(@code = 'PPNMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:code[(@code = 'PPNMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] 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.279-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:text[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.279-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:text[not(@nullFlavor)] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='PPNMZ']/hl7:act[hl7:code[(@code = 'PPNMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]/hl7:code[(@code = 'PPNMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='PPNMZ']/hl7:act[hl7:code[(@code = 'PPNMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]/hl7:code[(@code = 'PPNMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]"
         id="d16e12575-false-d48589e0">
      <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.279-2025-02-26T000000.html"
              test="@nullFlavor or (@code='PPNMZ' and @codeSystem='2.16.840.1.113883.3.4424.13.5.30.3' and @displayName='pacjent pozostał na miejscu zdarzenia' and @codeSystemName='ZakonczenieInterwencjiRatunkowej')">(plCdaRescueTransportationEntry): The element value SHALL be one of 'code 'PPNMZ' codeSystem '2.16.840.1.113883.3.4424.13.5.30.3' displayName='pacjent pozostał na miejscu zdarzenia' codeSystemName='ZakonczenieInterwencjiRatunkowej''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='PPNMZ']/hl7:act[hl7:code[(@code = 'PPNMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='PPNMZ']/hl7:act[hl7:code[(@code = 'PPNMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]/hl7:text[not(@nullFlavor)]"
         id="d16e12580-false-d48602e0">
      <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.279-2025-02-26T000000.html"
              test="text()='pacjent pozostał na miejscu zdarzenia'">(plCdaRescueTransportationEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''pacjent pozostał na miejscu zdarzenia''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']"
         id="d16e12588-false-d48611e0">
      <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.279-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueTransportationEntry): 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.279-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.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.279-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]"
         id="d16e12625-false-d48633e0">
      <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.279-2025-02-26T000000.html"
              test="string(@classCode) = ('ACT') or not(@classCode)">(plCdaRescueTransportationEntry): 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.279-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueTransportationEntry): 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.279-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.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.279-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.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.279-2025-02-26T000000.html"
              test="count(hl7:participant[not(@nullFlavor)][@typeCode = 'DST'][hl7:participantRole]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:participant[not(@nullFlavor)][@typeCode = 'DST'][hl7:participantRole] 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.279-2025-02-26T000000.html"
              test="count(hl7:participant[not(@nullFlavor)][@typeCode = 'DST'][hl7:participantRole]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:participant[not(@nullFlavor)][@typeCode = 'DST'][hl7:participantRole] 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.279-2025-02-26T000000.html"
              test="count(hl7:entryRelationship[hl7:act/hl7:code/@code='OPPL']) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:entryRelationship[hl7:act/hl7:code/@code='OPPL'] 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.279-2025-02-26T000000.html"
              test="count(hl7:entryRelationship[hl7:act/hl7:code/@code='PRZEK']) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:entryRelationship[hl7:act/hl7:code/@code='PRZEK'] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]"
         id="d16e12631-false-d48675e0">
      <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.279-2025-02-26T000000.html"
              test="@nullFlavor or (@code='15517-6' and @codeSystem='2.16.840.1.113883.6.1' and @displayName='Ambulance transport, Transport direction' and @codeSystemName='LOINC')">(plCdaRescueTransportationEntry): The element value SHALL be one of 'code '15517-6' codeSystem '2.16.840.1.113883.6.1' displayName='Ambulance transport, Transport direction' codeSystemName='LOINC''.</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.279-2025-02-26T000000.html"
              test="count(hl7:translation[(@code = 'UMCRT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:translation[(@code = 'UMCRT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] 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.279-2025-02-26T000000.html"
              test="count(hl7:translation[(@code = 'UMCRT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:translation[(@code = 'UMCRT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]/hl7:translation[(@code = 'UMCRT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]/hl7:translation[(@code = 'UMCRT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]"
         id="d16e12635-false-d48698e0">
      <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.279-2025-02-26T000000.html"
              test="@nullFlavor or (@code='UMCRT' and @codeSystem='2.16.840.1.113883.3.4424.13.5.30.3' and @displayName='udzielono medycznych czynności ratunkowych i przetransportowano' and @codeSystemName='ZakonczenieInterwencjiRatunkowej')">(plCdaRescueTransportationEntry): The element value SHALL be one of 'code 'UMCRT' codeSystem '2.16.840.1.113883.3.4424.13.5.30.3' displayName='udzielono medycznych czynności ratunkowych i przetransportowano' codeSystemName='ZakonczenieInterwencjiRatunkowej''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:participant[not(@nullFlavor)][@typeCode = 'DST'][hl7:participantRole]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:participant[not(@nullFlavor)][@typeCode = 'DST'][hl7:participantRole]"
         id="d16e12641-false-d48711e0">
      <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.279-2025-02-26T000000.html"
              test="string(@typeCode) = ('DST')">(plCdaRescueTransportationEntry): The value for typeCode SHALL be 'DST'. 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.279-2025-02-26T000000.html"
              test="count(hl7:participantRole[hl7:playingEntity[hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]]]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:participantRole[hl7:playingEntity[hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]]] 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.279-2025-02-26T000000.html"
              test="count(hl7:participantRole[hl7:playingEntity[hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]]]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:participantRole[hl7:playingEntity[hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:participant[not(@nullFlavor)][@typeCode = 'DST'][hl7:participantRole]/hl7:participantRole[hl7:playingEntity[hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]]]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:participant[not(@nullFlavor)][@typeCode = 'DST'][hl7:participantRole]/hl7:participantRole[hl7:playingEntity[hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]]]"
         id="d16e12645-false-d48737e0">
      <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.279-2025-02-26T000000.html"
              test="string(@classCode) = ('ROL') or not(@classCode)">(plCdaRescueTransportationEntry): The value for classCode SHALL be 'ROL'. 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.279-2025-02-26T000000.html"
              test="count(hl7:playingEntity[hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:playingEntity[hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]] 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.279-2025-02-26T000000.html"
              test="count(hl7:playingEntity[hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:playingEntity[hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:participant[not(@nullFlavor)][@typeCode = 'DST'][hl7:participantRole]/hl7:participantRole[hl7:playingEntity[hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]]]/hl7:playingEntity[hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:participant[not(@nullFlavor)][@typeCode = 'DST'][hl7:participantRole]/hl7:participantRole[hl7:playingEntity[hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]]]/hl7:playingEntity[hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]]"
         id="d16e12649-false-d48763e0">
      <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.279-2025-02-26T000000.html"
              test="string(@classCode) = ('ENT') or not(@classCode)">(plCdaRescueTransportationEntry): The value for classCode SHALL be 'ENT'. 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.279-2025-02-26T000000.html"
              test="string(@determinerCode) = ('INSTANCE') or not(@determinerCode)">(plCdaRescueTransportationEntry): The value for determinerCode SHALL be 'INSTANCE'. Found: "<value-of select="@determinerCode"/>"</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.279-2025-02-26T000000.html"
              test="count(hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)] 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.279-2025-02-26T000000.html"
              test="count(hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)] 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.279-2025-02-26T000000.html"
              test="count(hl7:name[not(@nullFlavor)]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:name[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.279-2025-02-26T000000.html"
              test="count(hl7:name[not(@nullFlavor)]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:name[not(@nullFlavor)] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:participant[not(@nullFlavor)][@typeCode = 'DST'][hl7:participantRole]/hl7:participantRole[hl7:playingEntity[hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]]]/hl7:playingEntity[hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]]/hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:participant[not(@nullFlavor)][@typeCode = 'DST'][hl7:participantRole]/hl7:participantRole[hl7:playingEntity[hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]]]/hl7:playingEntity[hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]]/hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]"
         id="d16e12655-false-d48801e0">
      <let name="theCode" value="@code"/>
      <let name="theCodeSystem" value="@codeSystem"/>
      <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.279-2025-02-26T000000.html"
              test="@nullFlavor or exists(doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1][conceptList/concept[@code = $theCode][@codeSystem = $theCodeSystem]])">(plCdaRescueTransportationEntry): The element value SHALL be one of '2.16.840.1.113883.3.4424.13.11.218 Miejsce docelowe transportu pacjenta (DYNAMIC)'.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:participant[not(@nullFlavor)][@typeCode = 'DST'][hl7:participantRole]/hl7:participantRole[hl7:playingEntity[hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]]]/hl7:playingEntity[hl7:code[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.3.4424.13.11.218-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]]/hl7:name[not(@nullFlavor)]
Item: (plCdaRescueTransportationEntry)
-->

   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:entryRelationship[hl7:act/hl7:code/@code='OPPL']
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:entryRelationship[hl7:act/hl7:code/@code='OPPL']"
         id="d16e12665-false-d48824e0">
      <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.279-2025-02-26T000000.html"
              test="string(@typeCode) = ('REFR')">(plCdaRescueTransportationEntry): The value for typeCode SHALL be 'REFR'. 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.279-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = 'OPPL' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:act[hl7:code[(@code = 'OPPL' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]] 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.279-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = 'OPPL' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:act[hl7:code[(@code = 'OPPL' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:entryRelationship[hl7:act/hl7:code/@code='OPPL']/hl7:act[hl7:code[(@code = 'OPPL' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:entryRelationship[hl7:act/hl7:code/@code='OPPL']/hl7:act[hl7:code[(@code = 'OPPL' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]"
         id="d16e12686-false-d48846e0">
      <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.279-2025-02-26T000000.html"
              test="string(@classCode) = ('ACT') or not(@classCode)">(plCdaRescueTransportationEntry): 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.279-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueTransportationEntry): 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.279-2025-02-26T000000.html"
              test="count(hl7:code[(@code = 'OPPL' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:code[(@code = 'OPPL' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] 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.279-2025-02-26T000000.html"
              test="count(hl7:code[(@code = 'OPPL' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:code[(@code = 'OPPL' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] 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.279-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:text[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.279-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:text[not(@nullFlavor)] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:entryRelationship[hl7:act/hl7:code/@code='OPPL']/hl7:act[hl7:code[(@code = 'OPPL' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]/hl7:code[(@code = 'OPPL' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:entryRelationship[hl7:act/hl7:code/@code='OPPL']/hl7:act[hl7:code[(@code = 'OPPL' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]/hl7:code[(@code = 'OPPL' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]"
         id="d16e12692-false-d48880e0">
      <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.279-2025-02-26T000000.html"
              test="@nullFlavor or (@code='OPPL' and @codeSystem='2.16.840.1.113883.3.4424.13.5.30.3' and @displayName='odmowa podpisu przez personel podmiotu leczniczego' and @codeSystemName='ZakonczenieInterwencjiRatunkowej')">(plCdaRescueTransportationEntry): The element value SHALL be one of 'code 'OPPL' codeSystem '2.16.840.1.113883.3.4424.13.5.30.3' displayName='odmowa podpisu przez personel podmiotu leczniczego' codeSystemName='ZakonczenieInterwencjiRatunkowej''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:entryRelationship[hl7:act/hl7:code/@code='OPPL']/hl7:act[hl7:code[(@code = 'OPPL' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:entryRelationship[hl7:act/hl7:code/@code='OPPL']/hl7:act[hl7:code[(@code = 'OPPL' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]/hl7:text[not(@nullFlavor)]"
         id="d16e12697-false-d48893e0">
      <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.279-2025-02-26T000000.html"
              test="text()='odmowa podpisu przez personel podmiotu leczniczego'">(plCdaRescueTransportationEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''odmowa podpisu przez personel podmiotu leczniczego''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:entryRelationship[hl7:act/hl7:code/@code='PRZEK']
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:entryRelationship[hl7:act/hl7:code/@code='PRZEK']"
         id="d16e12706-false-d48902e0">
      <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.279-2025-02-26T000000.html"
              test="string(@typeCode) = ('REFR')">(plCdaRescueTransportationEntry): The value for typeCode SHALL be 'REFR'. 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.279-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = 'PRZEK' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:act[hl7:code[(@code = 'PRZEK' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]] 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.279-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = 'PRZEK' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:act[hl7:code[(@code = 'PRZEK' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:entryRelationship[hl7:act/hl7:code/@code='PRZEK']/hl7:act[hl7:code[(@code = 'PRZEK' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:entryRelationship[hl7:act/hl7:code/@code='PRZEK']/hl7:act[hl7:code[(@code = 'PRZEK' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]"
         id="d16e12727-false-d48924e0">
      <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.279-2025-02-26T000000.html"
              test="string(@classCode) = ('ACT') or not(@classCode)">(plCdaRescueTransportationEntry): 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.279-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueTransportationEntry): 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.279-2025-02-26T000000.html"
              test="count(hl7:code[(@code = 'PRZEK' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:code[(@code = 'PRZEK' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] 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.279-2025-02-26T000000.html"
              test="count(hl7:code[(@code = 'PRZEK' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:code[(@code = 'PRZEK' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] 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.279-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:text[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.279-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:text[not(@nullFlavor)] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:entryRelationship[hl7:act/hl7:code/@code='PRZEK']/hl7:act[hl7:code[(@code = 'PRZEK' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]/hl7:code[(@code = 'PRZEK' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:entryRelationship[hl7:act/hl7:code/@code='PRZEK']/hl7:act[hl7:code[(@code = 'PRZEK' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]/hl7:code[(@code = 'PRZEK' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]"
         id="d16e12733-false-d48958e0">
      <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.279-2025-02-26T000000.html"
              test="@nullFlavor or (@code='PRZEK' and @codeSystem='2.16.840.1.113883.3.4424.13.5.30.3' and @displayName='przekazano' and @codeSystemName='ZakonczenieInterwencjiRatunkowej')">(plCdaRescueTransportationEntry): The element value SHALL be one of 'code 'PRZEK' codeSystem '2.16.840.1.113883.3.4424.13.5.30.3' displayName='przekazano' codeSystemName='ZakonczenieInterwencjiRatunkowej''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:entryRelationship[hl7:act/hl7:code/@code='PRZEK']/hl7:act[hl7:code[(@code = 'PRZEK' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='15517-6']/hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]]/hl7:entryRelationship[hl7:act/hl7:code/@code='PRZEK']/hl7:act[hl7:code[(@code = 'PRZEK' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]/hl7:text[not(@nullFlavor)]"
         id="d16e12738-false-d48971e0">
      <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.279-2025-02-26T000000.html"
              test="text()='przekazano'">(plCdaRescueTransportationEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''przekazano''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='PNWZT']
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='PNWZT']"
         id="d16e12748-false-d48980e0">
      <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.279-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueTransportationEntry): 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.279-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = 'PNWZT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:act[hl7:code[(@code = 'PNWZT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]] 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.279-2025-02-26T000000.html"
              test="count(hl7:act[hl7:code[(@code = 'PNWZT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:act[hl7:code[(@code = 'PNWZT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='PNWZT']/hl7:act[hl7:code[(@code = 'PNWZT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='PNWZT']/hl7:act[hl7:code[(@code = 'PNWZT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]"
         id="d16e12769-false-d49002e0">
      <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.279-2025-02-26T000000.html"
              test="string(@classCode) = ('ACT') or not(@classCode)">(plCdaRescueTransportationEntry): 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.279-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueTransportationEntry): 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.279-2025-02-26T000000.html"
              test="count(hl7:code[(@code = 'PNWZT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:code[(@code = 'PNWZT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] 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.279-2025-02-26T000000.html"
              test="count(hl7:code[(@code = 'PNWZT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:code[(@code = 'PNWZT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] 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.279-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueTransportationEntry): element hl7:text[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.279-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueTransportationEntry): element hl7:text[not(@nullFlavor)] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='PNWZT']/hl7:act[hl7:code[(@code = 'PNWZT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]/hl7:code[(@code = 'PNWZT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='PNWZT']/hl7:act[hl7:code[(@code = 'PNWZT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]/hl7:code[(@code = 'PNWZT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]"
         id="d16e12775-false-d49036e0">
      <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.279-2025-02-26T000000.html"
              test="@nullFlavor or (@code='PNWZT' and @codeSystem='2.16.840.1.113883.3.4424.13.5.30.3' and @displayName='pacjent nie wyraża zgody na przetransportowanie do szpitala' and @codeSystemName='ZakonczenieInterwencjiRatunkowej')">(plCdaRescueTransportationEntry): The element value SHALL be one of 'code 'PNWZT' codeSystem '2.16.840.1.113883.3.4424.13.5.30.3' displayName='pacjent nie wyraża zgody na przetransportowanie do szpitala' codeSystemName='ZakonczenieInterwencjiRatunkowej''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.279
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='PNWZT']/hl7:act[hl7:code[(@code = 'PNWZT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueTransportationEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]/hl7:component[hl7:act/hl7:code/@code='PNWZT']/hl7:act[hl7:code[(@code = 'PNWZT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]]/hl7:text[not(@nullFlavor)]"
         id="d16e12780-false-d49049e0">
      <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.279-2025-02-26T000000.html"
              test="text()='pacjent nie wyraża zgody na przetransportowanie do szpitala'">(plCdaRescueTransportationEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''pacjent nie wyraża zgody na przetransportowanie do szpitala''. Found: "<value-of select="."/>"</assert>
   </rule>
</pattern>
