<?xml version="1.0" encoding="UTF-8"?>
<!--
Template derived pattern
===========================================
ID: 2.16.840.1.113883.3.4424.13.10.4.275
Name: [4] KMCR Va Postępowanie z pacjentem, Czynności
Description: KMCR Va Postępowanie z pacjentem, Czynności 
-->
<pattern xmlns="http://purl.oclc.org/dsdl/schematron"
         id="template-2.16.840.1.113883.3.4424.13.10.4.275-2025-02-26T000000">
   <title>[4] KMCR Va Postępowanie z pacjentem, Czynności</title>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]
Item: (plCdaRescueProceduresEntry)
-->

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

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]"
         id="d16e11314-false-d42647e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('BATTERY')">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN')">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275'] 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.275-2025-02-26T000000.html"
              test="count(hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275'] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '47519-4' and @codeSystem = '2.16.840.1.113883.6.1')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '47519-4' 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '47519-4' and @codeSystem = '2.16.840.1.113883.6.1')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '47519-4' 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.275-2025-02-26T000000.html"
              test="count(hl7:statusCode[@code = 'completed']) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:statusCode[@code = 'completed']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:statusCode[@code = 'completed'] appears too often [max 1x].</assert>
      <assert role="error"
              see="https://www.csioz.gov.pl/HL7POL/pl-cda-html-pl-PL/plcda-html-develop/tmp-2.16.840.1.113883.3.4424.13.10.4.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='99.99900']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='99.99900'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='93.921']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='93.921'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='96.02']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='96.02'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='96.04']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='96.04'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='93.929']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='93.929'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='93.964']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='93.964'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='93.984']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='93.984'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='89.602']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='89.602'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='99.99911']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='99.99911'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='89.511']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='89.511'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='89.522']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='89.522'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='89.543']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='89.543'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='99.630']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='99.630'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='99.631']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='99.631'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='99.624']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='99.624'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='99.622']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='99.622'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='89.549']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='89.549'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='37.268']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='37.268'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='99.64']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='99.64'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='99.99904']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='99.99904'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='99.99903']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='99.99903'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='99.99906']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='99.99906'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='57.01']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='57.01'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='96.06']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='96.06'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='96.33']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='96.33'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='93.521']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='93.521'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='93.5017']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='93.5017'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='93.5018']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='93.5018'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure[hl7:code/@code='93.50' and hl7:text='unieruchomienie']]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure[hl7:code/@code='93.50' and hl7:text='unieruchomienie']] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='93.5025']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='93.5025'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='93.5019']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='93.5019'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure[hl7:code/@code='93.50' and hl7:text='opatrunek']]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure[hl7:code/@code='93.50' and hl7:text='opatrunek']] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='72.52']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='72.52'] 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.275-2025-02-26T000000.html"
              test="count(hl7:component[hl7:procedure/hl7:code/@code='99.99']) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:component[hl7:procedure/hl7:code/@code='99.99'] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']"
         id="d16e11320-false-d42827e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@root) = ('2.16.840.1.113883.3.4424.13.10.4.275')">(plCdaRescueProceduresEntry): The value for root SHALL be '2.16.840.1.113883.3.4424.13.10.4.275'. Found: "<value-of select="@root"/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:code[(@code = '47519-4' and @codeSystem = '2.16.840.1.113883.6.1')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:code[(@code = '47519-4' and @codeSystem = '2.16.840.1.113883.6.1')]"
         id="d16e11325-false-d42839e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='47519-4' and @codeSystem='2.16.840.1.113883.6.1' and @displayName='History of Procedures Document' and @codeSystemName='LOINC')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '47519-4' codeSystem '2.16.840.1.113883.6.1' displayName='History of Procedures Document' 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.275-2025-02-26T000000.html"
              test="count(hl7:translation[(@code = 'KMCR_Va' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.1')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:translation[(@code = 'KMCR_Va' 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.275-2025-02-26T000000.html"
              test="count(hl7:translation[(@code = 'KMCR_Va' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.1')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:translation[(@code = 'KMCR_Va' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.1')] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:code[(@code = '47519-4' and @codeSystem = '2.16.840.1.113883.6.1')]/hl7:translation[(@code = 'KMCR_Va' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.1')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:code[(@code = '47519-4' and @codeSystem = '2.16.840.1.113883.6.1')]/hl7:translation[(@code = 'KMCR_Va' and @codeSystem = '2.16.840.1.113883.3.4424.13.5.30.1')]"
         id="d16e11329-false-d42862e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='KMCR_Va' and @codeSystem='2.16.840.1.113883.3.4424.13.5.30.1' and @displayName='Postępowanie z pacjentem, Czynności' and @codeSystemName='WpisDoKMCR_KMLZRM')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code 'KMCR_Va' codeSystem '2.16.840.1.113883.3.4424.13.5.30.1' displayName='Postępowanie z pacjentem, Czynności' codeSystemName='WpisDoKMCR_KMLZRM''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:statusCode[@code = 'completed']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:statusCode[@code = 'completed']"
         id="d16e11335-false-d42876e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='completed')">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99900']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99900']"
         id="d16e11341-false-d42887e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.99900' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.99900' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.99900' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.99900' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99900']/hl7:procedure[hl7:code[(@code = '99.99900' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99900']/hl7:procedure[hl7:code[(@code = '99.99900' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11345-false-d42909e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.99900' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.99900' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.99900' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.99900' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99900']/hl7:procedure[hl7:code[(@code = '99.99900' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.99900' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99900']/hl7:procedure[hl7:code[(@code = '99.99900' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.99900' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11351-false-d42943e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='99.99900' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Odsysanie górnych dróg oddechowych' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '99.99900' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Odsysanie górnych dróg oddechowych' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99900']/hl7:procedure[hl7:code[(@code = '99.99900' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99900']/hl7:procedure[hl7:code[(@code = '99.99900' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11356-false-d42956e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='odsysanie'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''odsysanie''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.921']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.921']"
         id="d16e11364-false-d42965e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.921' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.921' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.921' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.921' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.921']/hl7:procedure[hl7:code[(@code = '93.921' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.921']/hl7:procedure[hl7:code[(@code = '93.921' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11368-false-d42987e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.921' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.921' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.921' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.921' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.921']/hl7:procedure[hl7:code[(@code = '93.921' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.921' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.921']/hl7:procedure[hl7:code[(@code = '93.921' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.921' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11374-false-d43021e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='93.921' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Nieinwazyjna wentylacja mechaniczna (NIV)' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '93.921' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Nieinwazyjna wentylacja mechaniczna (NIV)' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.921']/hl7:procedure[hl7:code[(@code = '93.921' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.921']/hl7:procedure[hl7:code[(@code = '93.921' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11379-false-d43034e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='wentylacja workiem'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''wentylacja workiem''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.02']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.02']"
         id="d16e11387-false-d43043e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '96.02' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '96.02' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '96.02' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '96.02' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.02']/hl7:procedure[hl7:code[(@code = '96.02' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.02']/hl7:procedure[hl7:code[(@code = '96.02' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11391-false-d43065e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '96.02' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '96.02' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '96.02' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '96.02' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.02']/hl7:procedure[hl7:code[(@code = '96.02' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '96.02' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.02']/hl7:procedure[hl7:code[(@code = '96.02' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '96.02' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11397-false-d43099e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='96.02' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Wprowadzenie rurki ustno-gardłowej' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '96.02' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Wprowadzenie rurki ustno-gardłowej' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.02']/hl7:procedure[hl7:code[(@code = '96.02' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.02']/hl7:procedure[hl7:code[(@code = '96.02' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11402-false-d43112e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='rurka UG'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''rurka UG''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.04']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.04']"
         id="d16e11410-false-d43121e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '96.04' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '96.04' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '96.04' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '96.04' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.04']/hl7:procedure[hl7:code[(@code = '96.04' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.04']/hl7:procedure[hl7:code[(@code = '96.04' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11414-false-d43143e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '96.04' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '96.04' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '96.04' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '96.04' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.04']/hl7:procedure[hl7:code[(@code = '96.04' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '96.04' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.04']/hl7:procedure[hl7:code[(@code = '96.04' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '96.04' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11420-false-d43177e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='96.04' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Intubacja dotchawicza' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '96.04' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Intubacja dotchawicza' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.04']/hl7:procedure[hl7:code[(@code = '96.04' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.04']/hl7:procedure[hl7:code[(@code = '96.04' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11425-false-d43190e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='intubacja'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''intubacja''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.929']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.929']"
         id="d16e11433-false-d43199e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.929' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.929' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.929' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.929' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.929']/hl7:procedure[hl7:code[(@code = '93.929' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.929']/hl7:procedure[hl7:code[(@code = '93.929' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11437-false-d43221e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.929' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.929' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.929' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.929' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.929']/hl7:procedure[hl7:code[(@code = '93.929' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.929' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.929']/hl7:procedure[hl7:code[(@code = '93.929' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.929' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11443-false-d43255e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='93.929' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Wentylacja mechaniczna - inne' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '93.929' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Wentylacja mechaniczna - inne' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.929']/hl7:procedure[hl7:code[(@code = '93.929' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.929']/hl7:procedure[hl7:code[(@code = '93.929' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11448-false-d43268e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='respirator'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''respirator''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.964']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.964']"
         id="d16e11456-false-d43277e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.964' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.964' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.964' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.964' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.964']/hl7:procedure[hl7:code[(@code = '93.964' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.964']/hl7:procedure[hl7:code[(@code = '93.964' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11460-false-d43299e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.964' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.964' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.964' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.964' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.964']/hl7:procedure[hl7:code[(@code = '93.964' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.964' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.964']/hl7:procedure[hl7:code[(@code = '93.964' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.964' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11466-false-d43333e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='93.964' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Tlenoterpia' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '93.964' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Tlenoterpia' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.964']/hl7:procedure[hl7:code[(@code = '93.964' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.964']/hl7:procedure[hl7:code[(@code = '93.964' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11471-false-d43346e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='tlenoterapia bierna'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''tlenoterapia bierna''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.984']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.984']"
         id="d16e11480-false-d43355e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.984' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.984' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.984' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.984' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.984']/hl7:procedure[hl7:code[(@code = '93.984' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.984']/hl7:procedure[hl7:code[(@code = '93.984' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11484-false-d43377e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.984' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.984' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.984' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.984' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.984']/hl7:procedure[hl7:code[(@code = '93.984' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.984' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.984']/hl7:procedure[hl7:code[(@code = '93.984' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.984' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11490-false-d43411e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='93.984' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Kapnometria' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '93.984' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Kapnometria' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.984']/hl7:procedure[hl7:code[(@code = '93.984' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.984']/hl7:procedure[hl7:code[(@code = '93.984' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11495-false-d43424e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='kapnometria'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''kapnometria''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.602']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.602']"
         id="d16e11503-false-d43433e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '89.602' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '89.602' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '89.602' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '89.602' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.602']/hl7:procedure[hl7:code[(@code = '89.602' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.602']/hl7:procedure[hl7:code[(@code = '89.602' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11507-false-d43455e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '89.602' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '89.602' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '89.602' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '89.602' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.602']/hl7:procedure[hl7:code[(@code = '89.602' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '89.602' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.602']/hl7:procedure[hl7:code[(@code = '89.602' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '89.602' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11513-false-d43489e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='89.602' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Pulsoksymetria' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '89.602' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Pulsoksymetria' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.602']/hl7:procedure[hl7:code[(@code = '89.602' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.602']/hl7:procedure[hl7:code[(@code = '89.602' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11518-false-d43502e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='pulsoksymetria'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''pulsoksymetria''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99911']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99911']"
         id="d16e11526-false-d43511e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.99911' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.99911' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.99911' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.99911' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99911']/hl7:procedure[hl7:code[(@code = '99.99911' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99911']/hl7:procedure[hl7:code[(@code = '99.99911' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11530-false-d43533e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.99911' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.99911' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.99911' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.99911' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99911']/hl7:procedure[hl7:code[(@code = '99.99911' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.99911' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99911']/hl7:procedure[hl7:code[(@code = '99.99911' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.99911' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11536-false-d43567e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='99.99911' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Konikopunkcja' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '99.99911' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Konikopunkcja' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99911']/hl7:procedure[hl7:code[(@code = '99.99911' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99911']/hl7:procedure[hl7:code[(@code = '99.99911' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11541-false-d43580e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='konikopunkcja'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''konikopunkcja''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.511']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.511']"
         id="d16e11549-false-d43589e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '89.511' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '89.511' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '89.511' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '89.511' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.511']/hl7:procedure[hl7:code[(@code = '89.511' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.511']/hl7:procedure[hl7:code[(@code = '89.511' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11553-false-d43611e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '89.511' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '89.511' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '89.511' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '89.511' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.511']/hl7:procedure[hl7:code[(@code = '89.511' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '89.511' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.511']/hl7:procedure[hl7:code[(@code = '89.511' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '89.511' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11559-false-d43645e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='89.511' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Elektrokardiografia z 1– 3 odprowadzeniami' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '89.511' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Elektrokardiografia z 1– 3 odprowadzeniami' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.511']/hl7:procedure[hl7:code[(@code = '89.511' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.511']/hl7:procedure[hl7:code[(@code = '89.511' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11564-false-d43658e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='EKG 1-3 odpr.'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''EKG 1-3 odpr.''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.522']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.522']"
         id="d16e11572-false-d43667e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '89.522' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '89.522' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '89.522' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '89.522' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.522']/hl7:procedure[hl7:code[(@code = '89.522' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.522']/hl7:procedure[hl7:code[(@code = '89.522' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11576-false-d43689e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '89.522' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '89.522' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '89.522' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '89.522' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.522']/hl7:procedure[hl7:code[(@code = '89.522' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '89.522' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.522']/hl7:procedure[hl7:code[(@code = '89.522' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '89.522' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11582-false-d43723e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='89.522' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Elektrokardiografia z 12 lub więcej odprowadzeniami (z opisem)' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '89.522' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Elektrokardiografia z 12 lub więcej odprowadzeniami (z opisem)' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.522']/hl7:procedure[hl7:code[(@code = '89.522' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.522']/hl7:procedure[hl7:code[(@code = '89.522' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11587-false-d43736e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='EKG 12 odpr.'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''EKG 12 odpr.''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.543']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.543']"
         id="d16e11595-false-d43745e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '89.543' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '89.543' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '89.543' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '89.543' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.543']/hl7:procedure[hl7:code[(@code = '89.543' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.543']/hl7:procedure[hl7:code[(@code = '89.543' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11599-false-d43767e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '89.543' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '89.543' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '89.543' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '89.543' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.543']/hl7:procedure[hl7:code[(@code = '89.543' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '89.543' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.543']/hl7:procedure[hl7:code[(@code = '89.543' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '89.543' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11605-false-d43801e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='89.543' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Telemetria' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '89.543' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Telemetria' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.543']/hl7:procedure[hl7:code[(@code = '89.543' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.543']/hl7:procedure[hl7:code[(@code = '89.543' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11610-false-d43814e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='teletransmisja'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''teletransmisja''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.630']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.630']"
         id="d16e11619-false-d43823e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.630' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.630' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.630' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.630' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.630']/hl7:procedure[hl7:code[(@code = '99.630' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.630']/hl7:procedure[hl7:code[(@code = '99.630' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11623-false-d43845e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.630' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.630' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.630' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.630' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.630']/hl7:procedure[hl7:code[(@code = '99.630' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.630' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.630']/hl7:procedure[hl7:code[(@code = '99.630' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.630' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11629-false-d43879e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='99.630' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Pośredni - ręczny masaż serca' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '99.630' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Pośredni - ręczny masaż serca' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.630']/hl7:procedure[hl7:code[(@code = '99.630' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.630']/hl7:procedure[hl7:code[(@code = '99.630' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11634-false-d43892e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='ręczny masaż serca'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''ręczny masaż serca''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.631']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.631']"
         id="d16e11642-false-d43901e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.631' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.631' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.631' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.631' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.631']/hl7:procedure[hl7:code[(@code = '99.631' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.631']/hl7:procedure[hl7:code[(@code = '99.631' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11646-false-d43923e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.631' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.631' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.631' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.631' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.631']/hl7:procedure[hl7:code[(@code = '99.631' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.631' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.631']/hl7:procedure[hl7:code[(@code = '99.631' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.631' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11652-false-d43957e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='99.631' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Pośredni - automatyczny masaż serca' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '99.631' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Pośredni - automatyczny masaż serca' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.631']/hl7:procedure[hl7:code[(@code = '99.631' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.631']/hl7:procedure[hl7:code[(@code = '99.631' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11657-false-d43970e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='autom. masaż serca'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''autom. masaż serca''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.624']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.624']"
         id="d16e11665-false-d43979e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.624' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.624' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.624' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.624' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.624']/hl7:procedure[hl7:code[(@code = '99.624' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.624']/hl7:procedure[hl7:code[(@code = '99.624' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11669-false-d44001e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.624' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.624' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.624' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.624' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.624']/hl7:procedure[hl7:code[(@code = '99.624' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.624' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.624']/hl7:procedure[hl7:code[(@code = '99.624' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.624' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11675-false-d44035e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='99.624' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Defibrylacja' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '99.624' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Defibrylacja' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.624']/hl7:procedure[hl7:code[(@code = '99.624' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.624']/hl7:procedure[hl7:code[(@code = '99.624' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11680-false-d44048e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='defibrylacja'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''defibrylacja''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.622']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.622']"
         id="d16e11688-false-d44057e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.622' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.622' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.622' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.622' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.622']/hl7:procedure[hl7:code[(@code = '99.622' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.622']/hl7:procedure[hl7:code[(@code = '99.622' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11692-false-d44079e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.622' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.622' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.622' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.622' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.622']/hl7:procedure[hl7:code[(@code = '99.622' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.622' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.622']/hl7:procedure[hl7:code[(@code = '99.622' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.622' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11698-false-d44113e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='99.622' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Zewnętrzna kardiowersja' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '99.622' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Zewnętrzna kardiowersja' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.622']/hl7:procedure[hl7:code[(@code = '99.622' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.622']/hl7:procedure[hl7:code[(@code = '99.622' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11703-false-d44126e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='kardiowersja'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''kardiowersja''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.549']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.549']"
         id="d16e11711-false-d44135e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '89.549' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '89.549' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '89.549' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '89.549' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.549']/hl7:procedure[hl7:code[(@code = '89.549' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.549']/hl7:procedure[hl7:code[(@code = '89.549' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11715-false-d44157e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '89.549' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '89.549' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '89.549' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '89.549' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.549']/hl7:procedure[hl7:code[(@code = '89.549' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '89.549' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.549']/hl7:procedure[hl7:code[(@code = '89.549' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '89.549' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11721-false-d44191e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='89.549' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Monitorowanie elektrokardiograficzne - inne' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '89.549' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Monitorowanie elektrokardiograficzne - inne' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.549']/hl7:procedure[hl7:code[(@code = '89.549' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='89.549']/hl7:procedure[hl7:code[(@code = '89.549' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11726-false-d44204e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='monitorowanie'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''monitorowanie''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='37.268']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='37.268']"
         id="d16e11734-false-d44213e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '37.268' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '37.268' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '37.268' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '37.268' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='37.268']/hl7:procedure[hl7:code[(@code = '37.268' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='37.268']/hl7:procedure[hl7:code[(@code = '37.268' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11738-false-d44235e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '37.268' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '37.268' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '37.268' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '37.268' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='37.268']/hl7:procedure[hl7:code[(@code = '37.268' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '37.268' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='37.268']/hl7:procedure[hl7:code[(@code = '37.268' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '37.268' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11744-false-d44269e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='37.268' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Czasowa przezskórna elektrostymulacja serca' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '37.268' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Czasowa przezskórna elektrostymulacja serca' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='37.268']/hl7:procedure[hl7:code[(@code = '37.268' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='37.268']/hl7:procedure[hl7:code[(@code = '37.268' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11749-false-d44282e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='stymulacja zewn.'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''stymulacja zewn.''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.64']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.64']"
         id="d16e11758-false-d44291e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.64' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.64' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.64' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.64' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.64']/hl7:procedure[hl7:code[(@code = '99.64' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.64']/hl7:procedure[hl7:code[(@code = '99.64' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11762-false-d44313e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.64' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.64' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.64' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.64' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.64']/hl7:procedure[hl7:code[(@code = '99.64' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.64' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.64']/hl7:procedure[hl7:code[(@code = '99.64' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.64' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11768-false-d44347e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='99.64' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Stymulacja zatoki szyjnej' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '99.64' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Stymulacja zatoki szyjnej' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.64']/hl7:procedure[hl7:code[(@code = '99.64' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.64']/hl7:procedure[hl7:code[(@code = '99.64' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11773-false-d44360e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='stymulacja zat. szyjnej'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''stymulacja zat. szyjnej''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99904']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99904']"
         id="d16e11781-false-d44369e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.99904' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.99904' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.99904' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.99904' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99904']/hl7:procedure[hl7:code[(@code = '99.99904' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99904']/hl7:procedure[hl7:code[(@code = '99.99904' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11785-false-d44391e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.99904' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.99904' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.99904' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.99904' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99904']/hl7:procedure[hl7:code[(@code = '99.99904' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.99904' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99904']/hl7:procedure[hl7:code[(@code = '99.99904' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.99904' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11791-false-d44425e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='99.99904' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Uzyskanie obwodowego dostępu dożylnego' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '99.99904' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Uzyskanie obwodowego dostępu dożylnego' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99904']/hl7:procedure[hl7:code[(@code = '99.99904' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99904']/hl7:procedure[hl7:code[(@code = '99.99904' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11796-false-d44438e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='linia żył obw.'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''linia żył obw.''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99903']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99903']"
         id="d16e11804-false-d44447e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.99903' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.99903' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.99903' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.99903' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99903']/hl7:procedure[hl7:code[(@code = '99.99903' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99903']/hl7:procedure[hl7:code[(@code = '99.99903' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11808-false-d44469e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.99903' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.99903' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.99903' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.99903' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99903']/hl7:procedure[hl7:code[(@code = '99.99903' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.99903' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99903']/hl7:procedure[hl7:code[(@code = '99.99903' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.99903' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11814-false-d44503e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='99.99903' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Uzyskanie centralnego dostępu dożylnego' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '99.99903' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Uzyskanie centralnego dostępu dożylnego' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99903']/hl7:procedure[hl7:code[(@code = '99.99903' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99903']/hl7:procedure[hl7:code[(@code = '99.99903' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11819-false-d44516e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='linia żył centr.'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''linia żył centr.''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99906']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99906']"
         id="d16e11827-false-d44525e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.99906' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.99906' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.99906' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.99906' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99906']/hl7:procedure[hl7:code[(@code = '99.99906' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99906']/hl7:procedure[hl7:code[(@code = '99.99906' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11831-false-d44547e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.99906' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.99906' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.99906' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.99906' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99906']/hl7:procedure[hl7:code[(@code = '99.99906' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.99906' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99906']/hl7:procedure[hl7:code[(@code = '99.99906' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.99906' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11837-false-d44581e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='99.99906' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Uzyskanie dostępu doszpikowego' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '99.99906' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Uzyskanie dostępu doszpikowego' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99906']/hl7:procedure[hl7:code[(@code = '99.99906' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99906']/hl7:procedure[hl7:code[(@code = '99.99906' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11842-false-d44594e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='dostęp doszpikowy'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''dostęp doszpikowy''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='57.01']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='57.01']"
         id="d16e11850-false-d44603e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '57.01' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '57.01' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '57.01' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '57.01' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='57.01']/hl7:procedure[hl7:code[(@code = '57.01' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='57.01']/hl7:procedure[hl7:code[(@code = '57.01' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11854-false-d44625e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '57.01' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '57.01' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '57.01' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '57.01' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='57.01']/hl7:procedure[hl7:code[(@code = '57.01' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '57.01' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='57.01']/hl7:procedure[hl7:code[(@code = '57.01' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '57.01' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11860-false-d44659e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='57.01' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Cewnikowanie pęcherza przez cewkę jednorazowe' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '57.01' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Cewnikowanie pęcherza przez cewkę jednorazowe' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='57.01']/hl7:procedure[hl7:code[(@code = '57.01' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='57.01']/hl7:procedure[hl7:code[(@code = '57.01' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11865-false-d44672e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='cewnikowanie'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''cewnikowanie''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.06']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.06']"
         id="d16e11873-false-d44681e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '96.06' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '96.06' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '96.06' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '96.06' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.06']/hl7:procedure[hl7:code[(@code = '96.06' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.06']/hl7:procedure[hl7:code[(@code = '96.06' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11877-false-d44703e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '96.06' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '96.06' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '96.06' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '96.06' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.06']/hl7:procedure[hl7:code[(@code = '96.06' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '96.06' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.06']/hl7:procedure[hl7:code[(@code = '96.06' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '96.06' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11883-false-d44737e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='96.06' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Wprowadzenie sondy Sengstakena' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '96.06' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Wprowadzenie sondy Sengstakena' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.06']/hl7:procedure[hl7:code[(@code = '96.06' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.06']/hl7:procedure[hl7:code[(@code = '96.06' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11888-false-d44750e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='sonda żołądkowa'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''sonda żołądkowa''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.33']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.33']"
         id="d16e11897-false-d44759e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '96.33' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '96.33' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '96.33' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '96.33' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.33']/hl7:procedure[hl7:code[(@code = '96.33' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.33']/hl7:procedure[hl7:code[(@code = '96.33' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11901-false-d44781e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '96.33' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '96.33' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '96.33' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '96.33' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.33']/hl7:procedure[hl7:code[(@code = '96.33' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '96.33' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.33']/hl7:procedure[hl7:code[(@code = '96.33' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '96.33' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11907-false-d44815e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='96.33' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Płukanie żołądka' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '96.33' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Płukanie żołądka' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.33']/hl7:procedure[hl7:code[(@code = '96.33' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='96.33']/hl7:procedure[hl7:code[(@code = '96.33' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11912-false-d44828e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='płukanie żołądka'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''płukanie żołądka''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.521']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.521']"
         id="d16e11920-false-d44837e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.521' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.521' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.521' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.521' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.521']/hl7:procedure[hl7:code[(@code = '93.521' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.521']/hl7:procedure[hl7:code[(@code = '93.521' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11924-false-d44859e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.521' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.521' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.521' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.521' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.521']/hl7:procedure[hl7:code[(@code = '93.521' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.521' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.521']/hl7:procedure[hl7:code[(@code = '93.521' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.521' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11930-false-d44893e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='93.521' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Założenie kołnierza szyjnego' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '93.521' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Założenie kołnierza szyjnego' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.521']/hl7:procedure[hl7:code[(@code = '93.521' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.521']/hl7:procedure[hl7:code[(@code = '93.521' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11935-false-d44906e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='kołnierz'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''kołnierz''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5017']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5017']"
         id="d16e11943-false-d44915e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.5017' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.5017' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.5017' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.5017' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5017']/hl7:procedure[hl7:code[(@code = '93.5017' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5017']/hl7:procedure[hl7:code[(@code = '93.5017' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11947-false-d44937e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.5017' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.5017' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.5017' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.5017' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5017']/hl7:procedure[hl7:code[(@code = '93.5017' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.5017' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5017']/hl7:procedure[hl7:code[(@code = '93.5017' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.5017' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11953-false-d44971e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='93.5017' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Unieruchomienie przy użyciu deski ortopedycznej' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '93.5017' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Unieruchomienie przy użyciu deski ortopedycznej' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5017']/hl7:procedure[hl7:code[(@code = '93.5017' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5017']/hl7:procedure[hl7:code[(@code = '93.5017' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11958-false-d44984e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='deska ortopedyczna'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''deska ortopedyczna''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5018']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5018']"
         id="d16e11966-false-d44993e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.5018' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.5018' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.5018' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.5018' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5018']/hl7:procedure[hl7:code[(@code = '93.5018' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5018']/hl7:procedure[hl7:code[(@code = '93.5018' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11970-false-d45015e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.5018' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.5018' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.5018' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.5018' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5018']/hl7:procedure[hl7:code[(@code = '93.5018' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.5018' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5018']/hl7:procedure[hl7:code[(@code = '93.5018' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.5018' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11976-false-d45049e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='93.5018' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Unieruchomienie przy użyciu materaca próżniowego' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '93.5018' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Unieruchomienie przy użyciu materaca próżniowego' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5018']/hl7:procedure[hl7:code[(@code = '93.5018' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5018']/hl7:procedure[hl7:code[(@code = '93.5018' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e11981-false-d45062e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='materac próżniowy'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''materac próżniowy''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure[hl7:code/@code='93.50' and hl7:text='unieruchomienie']]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure[hl7:code/@code='93.50' and hl7:text='unieruchomienie']]"
         id="d16e11989-false-d45071e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure[hl7:code/@code='93.50' and hl7:text='unieruchomienie']]/hl7:procedure[hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure[hl7:code/@code='93.50' and hl7:text='unieruchomienie']]/hl7:procedure[hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e11993-false-d45093e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure[hl7:code/@code='93.50' and hl7:text='unieruchomienie']]/hl7:procedure[hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure[hl7:code/@code='93.50' and hl7:text='unieruchomienie']]/hl7:procedure[hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e11999-false-d45127e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='93.50' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Opatrzenie i unieruchomienie obrażeń w warunkach pozaszpitalnych' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '93.50' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Opatrzenie i unieruchomienie obrażeń w warunkach pozaszpitalnych' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure[hl7:code/@code='93.50' and hl7:text='unieruchomienie']]/hl7:procedure[hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure[hl7:code/@code='93.50' and hl7:text='unieruchomienie']]/hl7:procedure[hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e12004-false-d45140e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='unieruchomienie'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''unieruchomienie''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5025']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5025']"
         id="d16e12012-false-d45149e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.5025' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.5025' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.5025' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.5025' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5025']/hl7:procedure[hl7:code[(@code = '93.5025' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5025']/hl7:procedure[hl7:code[(@code = '93.5025' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e12016-false-d45171e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.5025' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.5025' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.5025' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.5025' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5025']/hl7:procedure[hl7:code[(@code = '93.5025' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.5025' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5025']/hl7:procedure[hl7:code[(@code = '93.5025' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.5025' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e12022-false-d45205e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='93.5025' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Pas do stabilizacji miednicy' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '93.5025' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Pas do stabilizacji miednicy' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5025']/hl7:procedure[hl7:code[(@code = '93.5025' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5025']/hl7:procedure[hl7:code[(@code = '93.5025' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e12027-false-d45218e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='pas do stab. mied.'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''pas do stab. mied.''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5019']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5019']"
         id="d16e12036-false-d45227e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.5019' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.5019' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.5019' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.5019' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5019']/hl7:procedure[hl7:code[(@code = '93.5019' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5019']/hl7:procedure[hl7:code[(@code = '93.5019' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e12040-false-d45249e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.5019' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.5019' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.5019' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.5019' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5019']/hl7:procedure[hl7:code[(@code = '93.5019' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.5019' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5019']/hl7:procedure[hl7:code[(@code = '93.5019' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.5019' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e12046-false-d45283e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='93.5019' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Unieruchomienie przy użyciu kamizelki Kendricka (KED)' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '93.5019' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Unieruchomienie przy użyciu kamizelki Kendricka (KED)' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5019']/hl7:procedure[hl7:code[(@code = '93.5019' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='93.5019']/hl7:procedure[hl7:code[(@code = '93.5019' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e12051-false-d45296e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='KED'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''KED''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure[hl7:code/@code='93.50' and hl7:text='opatrunek']]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure[hl7:code/@code='93.50' and hl7:text='opatrunek']]"
         id="d16e12059-false-d45305e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure[hl7:code/@code='93.50' and hl7:text='opatrunek']]/hl7:procedure[hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure[hl7:code/@code='93.50' and hl7:text='opatrunek']]/hl7:procedure[hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e12063-false-d45327e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure[hl7:code/@code='93.50' and hl7:text='opatrunek']]/hl7:procedure[hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure[hl7:code/@code='93.50' and hl7:text='opatrunek']]/hl7:procedure[hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e12069-false-d45361e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='93.50' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Opatrzenie i unieruchomienie obrażeń w warunkach pozaszpitalnych' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '93.50' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Opatrzenie i unieruchomienie obrażeń w warunkach pozaszpitalnych' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure[hl7:code/@code='93.50' and hl7:text='opatrunek']]/hl7:procedure[hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure[hl7:code/@code='93.50' and hl7:text='opatrunek']]/hl7:procedure[hl7:code[(@code = '93.50' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e12074-false-d45374e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='opatrunek'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''opatrunek''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='72.52']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='72.52']"
         id="d16e12082-false-d45383e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '72.52' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '72.52' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '72.52' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '72.52' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='72.52']/hl7:procedure[hl7:code[(@code = '72.52' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='72.52']/hl7:procedure[hl7:code[(@code = '72.52' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e12086-false-d45405e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '72.52' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '72.52' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '72.52' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '72.52' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='72.52']/hl7:procedure[hl7:code[(@code = '72.52' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '72.52' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='72.52']/hl7:procedure[hl7:code[(@code = '72.52' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '72.52' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e12092-false-d45439e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='72.52' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Pomoc ręczna - inne' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '72.52' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Pomoc ręczna - inne' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='72.52']/hl7:procedure[hl7:code[(@code = '72.52' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='72.52']/hl7:procedure[hl7:code[(@code = '72.52' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]"
         id="d16e12097-false-d45452e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="text()='pomoc przy porodzie spontanicznym'">(plCdaRescueProceduresEntry): the element content of hl7:text[not(@nullFlavor)] SHALL be ''pomoc przy porodzie spontanicznym''. Found: "<value-of select="."/>"</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99']
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99']"
         id="d16e12105-false-d45461e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@typeCode) = ('COMP') or not(@typeCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.99' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.99' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] 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.275-2025-02-26T000000.html"
              test="count(hl7:procedure[hl7:code[(@code = '99.99' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:procedure[hl7:code[(@code = '99.99' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]] appears too often [max 1x].</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99']/hl7:procedure[hl7:code[(@code = '99.99' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99']/hl7:procedure[hl7:code[(@code = '99.99' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]"
         id="d16e12109-false-d45483e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="string(@classCode) = ('PROC') or not(@classCode)">(plCdaRescueProceduresEntry): The value for classCode SHALL be 'PROC'. 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.275-2025-02-26T000000.html"
              test="string(@moodCode) = ('EVN') or not(@moodCode)">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.99' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &gt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.99' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')] 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.275-2025-02-26T000000.html"
              test="count(hl7:code[(@code = '99.99' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]) &lt;= 1">(plCdaRescueProceduresEntry): element hl7:code[(@code = '99.99' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &gt;= 1">(plCdaRescueProceduresEntry): 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.275-2025-02-26T000000.html"
              test="count(hl7:text[not(@nullFlavor)]) &lt;= 1">(plCdaRescueProceduresEntry): 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.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99']/hl7:procedure[hl7:code[(@code = '99.99' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.99' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]
Item: (plCdaRescueProceduresEntry)
-->

   <rule fpi="RULC-1"
         context="*[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99']/hl7:procedure[hl7:code[(@code = '99.99' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:code[(@code = '99.99' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]"
         id="d16e12115-false-d45517e0">
      <assert role="error"
              see="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.275-2025-02-26T000000.html"
              test="@nullFlavor or (@code='99.99' and @codeSystem='2.16.840.1.113883.3.4424.11.2.6' and @displayName='Pozostałe procedury' and @codeSystemName='ICD-9-PL')">(plCdaRescueProceduresEntry): The element value SHALL be one of 'code '99.99' codeSystem '2.16.840.1.113883.3.4424.11.2.6' displayName='Pozostałe procedury' codeSystemName='ICD-9-PL''.</assert>
   </rule>
   <!--
Template derived rules for ID: 2.16.840.1.113883.3.4424.13.10.4.275
Context: *[hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]]/hl7:organizer[hl7:templateId[@root = '2.16.840.1.113883.3.4424.13.10.4.275']]/hl7:component[hl7:procedure/hl7:code/@code='99.99']/hl7:procedure[hl7:code[(@code = '99.99' and @codeSystem = '2.16.840.1.113883.3.4424.11.2.6')]]/hl7:text[not(@nullFlavor)]
Item: (plCdaRescueProceduresEntry)
-->
</pattern>
