<?xml version="1.0" encoding="UTF-8"?>
<!--
Template derived pattern
===========================================
ID: 2.16.840.1.113883.3.4424.13.10.3.222
Name: [3] Sekcja postaci binarnej karty medycznych czynności ratunkowych
Description: Szablon struktury CDA dla sekcji postaci binarnej karty medycznych czynności ratunkowych
-->
<pattern xmlns="http://purl.oclc.org/dsdl/schematron"
         id="template-2.16.840.1.113883.3.4424.13.10.3.222-2025-02-26T000000">
   <title>[3] Sekcja postaci binarnej karty medycznych czynności ratunkowych</title>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.3.222
Context: *[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]
Item: (plCdaParamedicRescueSummaryNoteBinaryContentSection)
-->

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

   <rule fpi="RULC-1"
         context="*[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]"
         id="d16e4710-false-d20747e0">
      <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.3.222-2025-02-26T000000.html"
              test="string(@classCode) = ('DOCSECT') or not(@classCode)">(plCdaParamedicRescueSummaryNoteBinaryContentSection): The value for classCode SHALL be 'DOCSECT'. 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.3.222-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaParamedicRescueSummaryNoteBinaryContentSection): 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.3.222-2025-02-26T000000.html"
              test="hl7:code/@code = /hl7:ClinicalDocument/hl7:code/@code and hl7:code/@displayName = /hl7:ClinicalDocument/hl7:code/@displayName">(plCdaParamedicRescueSummaryNoteBinaryContentSection): Kod typu sekcji postaci binarnej dokumentu musi byc zgodny z kodem typu dokumentu.</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.3.222-2025-02-26T000000.html"
              test="count(hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']) &gt;= 1">(plCdaParamedicRescueSummaryNoteBinaryContentSection): element hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222'] 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.3.222-2025-02-26T000000.html"
              test="count(hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']) &lt;= 1">(plCdaParamedicRescueSummaryNoteBinaryContentSection): element hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222'] 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.3.222-2025-02-26T000000.html"
              test="count(hl7:id) &lt;= 1">(plCdaParamedicRescueSummaryNoteBinaryContentSection): element hl7:id 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.3.222-2025-02-26T000000.html"
              test="count(hl7:code[@codeSystem = '2.16.840.1.113883.6.1']) &gt;= 1">(plCdaParamedicRescueSummaryNoteBinaryContentSection): element hl7:code[@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.3.222-2025-02-26T000000.html"
              test="count(hl7:code[@codeSystem = '2.16.840.1.113883.6.1']) &lt;= 1">(plCdaParamedicRescueSummaryNoteBinaryContentSection): element hl7:code[@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.3.222-2025-02-26T000000.html"
              test="count(hl7:title) = 0">(plCdaParamedicRescueSummaryNoteBinaryContentSection): element hl7:title MAY NOT be present.</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.3.222-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaParamedicRescueSummaryNoteBinaryContentSection): 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.3.222-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaParamedicRescueSummaryNoteBinaryContentSection): element hl7:text[not(@nullFlavor)] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.3.222-2025-02-26T000000.html"
              test="count(hl7:confidentialityCode[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.1.11.16926-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem) or @nullFlavor]) &lt;= 1">(plCdaParamedicRescueSummaryNoteBinaryContentSection): element hl7:confidentialityCode[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.1.11.16926-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem) or @nullFlavor] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.3.222-2025-02-26T000000.html"
              test="count(hl7:languageCode[@code = doc('include/voc-2.16.840.1.113883.3.4424.13.11.25-DYNAMIC.xml')//valueSet[1]/conceptList/*/@code or @nullFlavor]) &lt;= 1">(plCdaParamedicRescueSummaryNoteBinaryContentSection): element hl7:languageCode[@code = doc('include/voc-2.16.840.1.113883.3.4424.13.11.25-DYNAMIC.xml')//valueSet[1]/conceptList/*/@code or @nullFlavor] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.3.222-2025-02-26T000000.html"
              test="count(hl7:subject[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.15']]) &lt;= 1">(plCdaParamedicRescueSummaryNoteBinaryContentSection): element hl7:subject[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.15']] 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.3.222-2025-02-26T000000.html"
              test="count(hl7:entry[hl7:observationMedia/hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.4.49'][not(@nullFlavor)]) &gt;= 1">(plCdaParamedicRescueSummaryNoteBinaryContentSection): element hl7:entry[hl7:observationMedia/hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.4.49'][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.3.222-2025-02-26T000000.html"
              test="count(hl7:entry[hl7:organizer/hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.4.1']) &lt;= 1">(plCdaParamedicRescueSummaryNoteBinaryContentSection): element hl7:entry[hl7:organizer/hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.4.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.3.222-2025-02-26T000000.html"
              test="count(hl7:entry[hl7:organizer/hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.4.2']) &lt;= 1">(plCdaParamedicRescueSummaryNoteBinaryContentSection): element hl7:entry[hl7:organizer/hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.4.2'] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.3.222
Context: *[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']
Item: (plCdaParamedicRescueSummaryNoteBinaryContentSection)
-->

   <rule fpi="RULC-1"
         context="*[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']"
         id="d16e4716-false-d20924e0">
      <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.3.222-2025-02-26T000000.html"
              test="string(@root) = ('2.16.840.1.113883.3.4424.13.10.3.222')">(plCdaParamedicRescueSummaryNoteBinaryContentSection): The value for root SHALL be '2.16.840.1.113883.3.4424.13.10.3.222'. Found: "<value-of select="@root"/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.3.222
Context: *[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:id
Item: (plCdaParamedicRescueSummaryNoteBinaryContentSection)
-->

   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.3.222
Context: *[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:code[@codeSystem = '2.16.840.1.113883.6.1']
Item: (plCdaParamedicRescueSummaryNoteBinaryContentSection)
-->

   <rule fpi="RULC-1"
         context="*[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:code[@codeSystem = '2.16.840.1.113883.6.1']"
         id="d16e4723-false-d20944e0">
      <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.3.222-2025-02-26T000000.html"
              test="@nullFlavor or (@codeSystem='2.16.840.1.113883.6.1' and @codeSystemName='LOINC')">(plCdaParamedicRescueSummaryNoteBinaryContentSection): The element value SHALL be one of 'codeSystem '2.16.840.1.113883.6.1' codeSystemName='LOINC''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.3.222
Context: *[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:title
Item: (plCdaParamedicRescueSummaryNoteBinaryContentSection)
-->

   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.3.222
Context: *[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:text[not(@nullFlavor)]
Item: (plCdaParamedicRescueSummaryNoteBinaryContentSection)
-->

   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.3.222
Context: *[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:confidentialityCode[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.1.11.16926-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem) or @nullFlavor]
Item: (plCdaParamedicRescueSummaryNoteBinaryContentSection)
-->

   <rule fpi="RULC-1"
         context="*[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:confidentialityCode[concat(@code, @codeSystem) = doc('include/voc-2.16.840.1.113883.1.11.16926-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem) or @nullFlavor]"
         id="d16e4736-false-d20976e0">
      <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.3.222-2025-02-26T000000.html"
              test="@nullFlavor or exists(doc('include/voc-2.16.840.1.113883.1.11.16926-DYNAMIC.xml')//valueSet[1][conceptList/concept[@code = $theCode][@codeSystem = $theCodeSystem]])">(plCdaParamedicRescueSummaryNoteBinaryContentSection): The element value SHALL be one of '2.16.840.1.113883.1.11.16926 x_BasicConfidentialityKind (DYNAMIC)'.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.3.222
Context: *[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:languageCode[@code = doc('include/voc-2.16.840.1.113883.3.4424.13.11.25-DYNAMIC.xml')//valueSet[1]/conceptList/*/@code or @nullFlavor]
Item: (plCdaParamedicRescueSummaryNoteBinaryContentSection)
-->

   <rule fpi="RULC-1"
         context="*[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:languageCode[@code = doc('include/voc-2.16.840.1.113883.3.4424.13.11.25-DYNAMIC.xml')//valueSet[1]/conceptList/*/@code or @nullFlavor]"
         id="d16e4741-false-d20996e0">
      <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.3.222-2025-02-26T000000.html"
              test="@nullFlavor or exists(doc('include/voc-2.16.840.1.113883.3.4424.13.11.25-DYNAMIC.xml')//valueSet[1]/conceptList/concept[@code = $theCode] or completeCodeSystem)">(plCdaParamedicRescueSummaryNoteBinaryContentSection): The element value SHALL be one of '2.16.840.1.113883.3.4424.13.11.25 Język dokumentu (DYNAMIC)'.</assert>
   </rule>

   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.3.222
Context: *[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:subject[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.15']]
Item: (plCdaParamedicRescueSummaryNoteBinaryContentSection)
-->

   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.3.222
Context: *[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:author[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.18']]
Item: (plCdaParamedicRescueSummaryNoteBinaryContentSection)
-->

   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.3.222
Context: *[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:informant[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.14']]
Item: (plCdaParamedicRescueSummaryNoteBinaryContentSection)
-->

   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.3.222
Context: *[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:entry[hl7:observationMedia/hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.4.49'][not(@nullFlavor)]
Item: (plCdaParamedicRescueSummaryNoteBinaryContentSection)
-->
   <rule fpi="RULC-1"
         context="*[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:entry[hl7:observationMedia/hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.4.49'][not(@nullFlavor)]">
      <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.3.222-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaParamedicRescueSummaryNoteBinaryContentSection): 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.3.222-2025-02-26T000000.html"
              test="not(@contextConductionInd) or string(@contextConductionInd)=('true','false')">(plCdaParamedicRescueSummaryNoteBinaryContentSection): Attribute @contextConductionInd SHALL be of data type 'bl'  - '<value-of select="@contextConductionInd"/>'</assert>
   </rule>

   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.3.222
Context: *[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:entry[hl7:organizer/hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.4.1']
Item: (plCdaParamedicRescueSummaryNoteBinaryContentSection)
-->
   <rule fpi="RULC-1"
         context="*[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:entry[hl7:organizer/hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.4.1']">
      <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.3.222-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaParamedicRescueSummaryNoteBinaryContentSection): 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.3.222-2025-02-26T000000.html"
              test="not(@contextConductionInd) or string(@contextConductionInd)=('true','false')">(plCdaParamedicRescueSummaryNoteBinaryContentSection): Attribute @contextConductionInd SHALL be of data type 'bl'  - '<value-of select="@contextConductionInd"/>'</assert>
   </rule>

   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.3.222
Context: *[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:entry[hl7:organizer/hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.4.2']
Item: (plCdaParamedicRescueSummaryNoteBinaryContentSection)
-->
   <rule fpi="RULC-1"
         context="*[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:entry[hl7:organizer/hl7:templateId/@root='2.16.840.1.113883.3.4424.13.10.4.2']">
      <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.3.222-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaParamedicRescueSummaryNoteBinaryContentSection): 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.3.222-2025-02-26T000000.html"
              test="not(@contextConductionInd) or string(@contextConductionInd)=('true','false')">(plCdaParamedicRescueSummaryNoteBinaryContentSection): Attribute @contextConductionInd SHALL be of data type 'bl'  - '<value-of select="@contextConductionInd"/>'</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.3.222
Context: *[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:entry
Item: (plCdaParamedicRescueSummaryNoteBinaryContentSection)
-->

   <rule fpi="RULC-1"
         context="*[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:entry"
         id="d16e4781-false-d21171e0">
      <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.3.222-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaParamedicRescueSummaryNoteBinaryContentSection): 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.3.222-2025-02-26T000000.html"
              test="not(@contextConductionInd) or string(@contextConductionInd)=('true','false')">(plCdaParamedicRescueSummaryNoteBinaryContentSection): Attribute @contextConductionInd SHALL be of data type 'bl'  - '<value-of select="@contextConductionInd"/>'</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.3.222
Context: *[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:component
Item: (plCdaParamedicRescueSummaryNoteBinaryContentSection)
-->

   <rule fpi="RULC-1"
         context="*[hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]]/hl7:section[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.3.222']]/hl7:component"
         id="d16e4788-false-d21186e0">
      <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.3.222-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaParamedicRescueSummaryNoteBinaryContentSection): 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.3.222-2025-02-26T000000.html"
              test="not(@contextConductionInd) or string(@contextConductionInd)=('true','false')">(plCdaParamedicRescueSummaryNoteBinaryContentSection): Attribute @contextConductionInd SHALL be of data type 'bl'  - '<value-of select="@contextConductionInd"/>'</assert>
   </rule>
</pattern>
