<?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-closed">
   <title>[4] KMCR VIb Udzielono medycznych czynności ratunkowych</title>

   <!-- Checking undefined contents for template/element @isClosed="true". Match context that we did not already match -->
   <rule fpi="RUL-QQQ"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']]]/*[not(@xsi:nil = 'true')][not(self::hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']])]"
         id="d16e12404-true-d49073e0">
      <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="not(.)">(plCdaRescueTransportationEntry)/d16e12404-true-d49073e0: '<value-of select="name(..)"/>' is defined as closed, and this element '<name/>' is not allowed, or not allowed with this content. This may concern the templateId, code or id. Expected in this context:  hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279']] (rule-reference: d16e12404-true-d49073e0)</assert>
   </rule>

   <!-- Checking undefined contents for template/element @isClosed="true". Match context that we did not already match -->
   <rule fpi="RUL-QQQ"
         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']]/*[not(@xsi:nil = 'true')][not(self::hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.279'] | self::hl7:code[(@code = 'KMCR_VIb' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.1')] | self::hl7:statusCode[@code = 'completed'] | self::hl7:component[hl7:act/hl7:code/@code='BPWMZ'] | self::hl7:component[hl7:act/hl7:code/@code='PPNMZ'] | self::hl7:component[hl7:act/hl7:code/@code='15517-6'] | self::hl7:component[hl7:act/hl7:code/@code='PNWZT'])]"
         id="d16e12484-true-d49104e0">
      <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="not(.)">(plCdaRescueTransportationEntry)/d16e12484-true-d49104e0: '<value-of select="name(..)"/>' is defined as closed, and this element '<name/>' is not allowed, or not allowed with this content. This may concern the templateId, code or id. Expected in this context:  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')] | hl7:statusCode[@code = 'completed'] | 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'] (rule-reference: d16e12484-true-d49104e0)</assert>
   </rule>

   <!-- Checking undefined contents for template/element @isClosed="true". Match context that we did not already match -->
   <rule fpi="RUL-QQQ"
         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']/*[not(@xsi:nil = 'true')][not(self::hl7:act[hl7:code[(@code = 'BPWMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]])]"
         id="d16e12508-true-d49136e0">
      <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="not(.)">(plCdaRescueTransportationEntry)/d16e12508-true-d49136e0: '<value-of select="name(..)"/>' is defined as closed, and this element '<name/>' is not allowed, or not allowed with this content. This may concern the templateId, code or id. Expected in this context:  hl7:act[hl7:code[(@code = 'BPWMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]] (rule-reference: d16e12508-true-d49136e0)</assert>
   </rule>

   <!-- Checking undefined contents for template/element @isClosed="true". Match context that we did not already match -->
   <rule fpi="RUL-QQQ"
         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')]]/*[not(@xsi:nil = 'true')][not(self::hl7:code[(@code = 'BPWMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] | self::hl7:text[not(@nullFlavor)])]"
         id="d16e12529-true-d49158e0">
      <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="not(.)">(plCdaRescueTransportationEntry)/d16e12529-true-d49158e0: '<value-of select="name(..)"/>' is defined as closed, and this element '<name/>' is not allowed, or not allowed with this content. This may concern the templateId, code or id. Expected in this context:  hl7:code[(@code = 'BPWMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] | hl7:text[not(@nullFlavor)] (rule-reference: d16e12529-true-d49158e0)</assert>
   </rule>

   <!-- Checking undefined contents for template/element @isClosed="true". Match context that we did not already match -->
   <rule fpi="RUL-QQQ"
         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']/*[not(@xsi:nil = 'true')][not(self::hl7:act[hl7:code[(@code = 'PPNMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]])]"
         id="d16e12548-true-d49183e0">
      <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="not(.)">(plCdaRescueTransportationEntry)/d16e12548-true-d49183e0: '<value-of select="name(..)"/>' is defined as closed, and this element '<name/>' is not allowed, or not allowed with this content. This may concern the templateId, code or id. Expected in this context:  hl7:act[hl7:code[(@code = 'PPNMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]] (rule-reference: d16e12548-true-d49183e0)</assert>
   </rule>

   <!-- Checking undefined contents for template/element @isClosed="true". Match context that we did not already match -->
   <rule fpi="RUL-QQQ"
         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')]]/*[not(@xsi:nil = 'true')][not(self::hl7:code[(@code = 'PPNMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] | self::hl7:text[not(@nullFlavor)])]"
         id="d16e12569-true-d49205e0">
      <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="not(.)">(plCdaRescueTransportationEntry)/d16e12569-true-d49205e0: '<value-of select="name(..)"/>' is defined as closed, and this element '<name/>' is not allowed, or not allowed with this content. This may concern the templateId, code or id. Expected in this context:  hl7:code[(@code = 'PPNMZ' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] | hl7:text[not(@nullFlavor)] (rule-reference: d16e12569-true-d49205e0)</assert>
   </rule>

   <!-- Checking undefined contents for template/element @isClosed="true". Match context that we did not already match -->
   <rule fpi="RUL-QQQ"
         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']/*[not(@xsi:nil = 'true')][not(self::hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]])]"
         id="d16e12588-true-d49230e0">
      <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="not(.)">(plCdaRescueTransportationEntry)/d16e12588-true-d49230e0: '<value-of select="name(..)"/>' is defined as closed, and this element '<name/>' is not allowed, or not allowed with this content. This may concern the templateId, code or id. Expected in this context:  hl7:act[hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')]] (rule-reference: d16e12588-true-d49230e0)</assert>
   </rule>

   <!-- Checking undefined contents for template/element @isClosed="true". Match context that we did not already match -->
   <rule fpi="RUL-QQQ"
         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')]]/*[not(@xsi:nil = 'true')][not(self::hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')] | self::hl7:participant[not(@nullFlavor)][@typeCode = 'DST'][hl7:participantRole] | self::hl7:entryRelationship[hl7:act/hl7:code/@code='OPPL'] | self::hl7:entryRelationship[hl7:act/hl7:code/@code='PRZEK'])]"
         id="d16e12625-true-d49254e0">
      <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="not(.)">(plCdaRescueTransportationEntry)/d16e12625-true-d49254e0: '<value-of select="name(..)"/>' is defined as closed, and this element '<name/>' is not allowed, or not allowed with this content. This may concern the templateId, code or id. Expected in this context:  hl7:code[(@code = '15517-6' and @codeSystem = '2.16.840.1.113883.6.1')] | hl7:participant[not(@nullFlavor)][@typeCode = 'DST'][hl7:participantRole] | hl7:entryRelationship[hl7:act/hl7:code/@code='OPPL'] | hl7:entryRelationship[hl7:act/hl7:code/@code='PRZEK'] (rule-reference: d16e12625-true-d49254e0)</assert>
   </rule>

   <!-- Checking undefined contents for template/element @isClosed="true". Match context that we did not already match -->
   <rule fpi="RUL-QQQ"
         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')]/*[not(@xsi:nil = 'true')][not(self::hl7:translation[(@code = 'UMCRT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')])]"
         id="d16e12631-true-d49271e0">
      <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="not(.)">(plCdaRescueTransportationEntry)/d16e12631-true-d49271e0: '<value-of select="name(..)"/>' is defined as closed, and this element '<name/>' is not allowed, or not allowed with this content. This may concern the templateId, code or id. Expected in this context:  hl7:translation[(@code = 'UMCRT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] (rule-reference: d16e12631-true-d49271e0)</assert>
   </rule>

   <!-- Checking undefined contents for template/element @isClosed="true". Match context that we did not already match -->
   <rule fpi="RUL-QQQ"
         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]/*[not(@xsi:nil = 'true')][not(self::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="d16e12641-true-d49297e0">
      <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="not(.)">(plCdaRescueTransportationEntry)/d16e12641-true-d49297e0: '<value-of select="name(..)"/>' is defined as closed, and this element '<name/>' is not allowed, or not allowed with this content. This may concern the templateId, code or id. Expected in this context:  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)]]] (rule-reference: d16e12641-true-d49297e0)</assert>
   </rule>

   <!-- Checking undefined contents for template/element @isClosed="true". Match context that we did not already match -->
   <rule fpi="RUL-QQQ"
         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)]]]/*[not(@xsi:nil = 'true')][not(self::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-true-d49320e0">
      <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="not(.)">(plCdaRescueTransportationEntry)/d16e12645-true-d49320e0: '<value-of select="name(..)"/>' is defined as closed, and this element '<name/>' is not allowed, or not allowed with this content. This may concern the templateId, code or id. Expected in this context:  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)]] (rule-reference: d16e12645-true-d49320e0)</assert>
   </rule>

   <!-- Checking undefined contents for template/element @isClosed="true". Match context that we did not already match -->
   <rule fpi="RUL-QQQ"
         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)]]/*[not(@xsi:nil = 'true')][not(self::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)] | self::hl7:name[not(@nullFlavor)])]"
         id="d16e12649-true-d49348e0">
      <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="not(.)">(plCdaRescueTransportationEntry)/d16e12649-true-d49348e0: '<value-of select="name(..)"/>' is defined as closed, and this element '<name/>' is not allowed, or not allowed with this content. This may concern the templateId, code or id. Expected in this context:  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)] (rule-reference: d16e12649-true-d49348e0)</assert>
   </rule>

   <!-- Checking undefined contents for template/element @isClosed="true". Match context that we did not already match -->
   <rule fpi="RUL-QQQ"
         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']/*[not(@xsi:nil = 'true')][not(self::hl7:act[hl7:code[(@code = 'OPPL' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]])]"
         id="d16e12665-true-d49375e0">
      <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="not(.)">(plCdaRescueTransportationEntry)/d16e12665-true-d49375e0: '<value-of select="name(..)"/>' is defined as closed, and this element '<name/>' is not allowed, or not allowed with this content. This may concern the templateId, code or id. Expected in this context:  hl7:act[hl7:code[(@code = 'OPPL' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]] (rule-reference: d16e12665-true-d49375e0)</assert>
   </rule>

   <!-- Checking undefined contents for template/element @isClosed="true". Match context that we did not already match -->
   <rule fpi="RUL-QQQ"
         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')]]/*[not(@xsi:nil = 'true')][not(self::hl7:code[(@code = 'OPPL' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] | self::hl7:text[not(@nullFlavor)])]"
         id="d16e12686-true-d49397e0">
      <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="not(.)">(plCdaRescueTransportationEntry)/d16e12686-true-d49397e0: '<value-of select="name(..)"/>' is defined as closed, and this element '<name/>' is not allowed, or not allowed with this content. This may concern the templateId, code or id. Expected in this context:  hl7:code[(@code = 'OPPL' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] | hl7:text[not(@nullFlavor)] (rule-reference: d16e12686-true-d49397e0)</assert>
   </rule>

   <!-- Checking undefined contents for template/element @isClosed="true". Match context that we did not already match -->
   <rule fpi="RUL-QQQ"
         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']/*[not(@xsi:nil = 'true')][not(self::hl7:act[hl7:code[(@code = 'PRZEK' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]])]"
         id="d16e12706-true-d49422e0">
      <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="not(.)">(plCdaRescueTransportationEntry)/d16e12706-true-d49422e0: '<value-of select="name(..)"/>' is defined as closed, and this element '<name/>' is not allowed, or not allowed with this content. This may concern the templateId, code or id. Expected in this context:  hl7:act[hl7:code[(@code = 'PRZEK' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]] (rule-reference: d16e12706-true-d49422e0)</assert>
   </rule>

   <!-- Checking undefined contents for template/element @isClosed="true". Match context that we did not already match -->
   <rule fpi="RUL-QQQ"
         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')]]/*[not(@xsi:nil = 'true')][not(self::hl7:code[(@code = 'PRZEK' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] | self::hl7:text[not(@nullFlavor)])]"
         id="d16e12727-true-d49444e0">
      <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="not(.)">(plCdaRescueTransportationEntry)/d16e12727-true-d49444e0: '<value-of select="name(..)"/>' is defined as closed, and this element '<name/>' is not allowed, or not allowed with this content. This may concern the templateId, code or id. Expected in this context:  hl7:code[(@code = 'PRZEK' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] | hl7:text[not(@nullFlavor)] (rule-reference: d16e12727-true-d49444e0)</assert>
   </rule>

   <!-- Checking undefined contents for template/element @isClosed="true". Match context that we did not already match -->
   <rule fpi="RUL-QQQ"
         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']/*[not(@xsi:nil = 'true')][not(self::hl7:act[hl7:code[(@code = 'PNWZT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]])]"
         id="d16e12748-true-d49469e0">
      <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="not(.)">(plCdaRescueTransportationEntry)/d16e12748-true-d49469e0: '<value-of select="name(..)"/>' is defined as closed, and this element '<name/>' is not allowed, or not allowed with this content. This may concern the templateId, code or id. Expected in this context:  hl7:act[hl7:code[(@code = 'PNWZT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')]] (rule-reference: d16e12748-true-d49469e0)</assert>
   </rule>

   <!-- Checking undefined contents for template/element @isClosed="true". Match context that we did not already match -->
   <rule fpi="RUL-QQQ"
         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')]]/*[not(@xsi:nil = 'true')][not(self::hl7:code[(@code = 'PNWZT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] | self::hl7:text[not(@nullFlavor)])]"
         id="d16e12769-true-d49491e0">
      <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="not(.)">(plCdaRescueTransportationEntry)/d16e12769-true-d49491e0: '<value-of select="name(..)"/>' is defined as closed, and this element '<name/>' is not allowed, or not allowed with this content. This may concern the templateId, code or id. Expected in this context:  hl7:code[(@code = 'PNWZT' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.3')] | hl7:text[not(@nullFlavor)] (rule-reference: d16e12769-true-d49491e0)</assert>
   </rule>
</pattern>
