<?xml version="1.0" encoding="UTF-8"?>
<mappings>
    <!-- Chapter 1: Release Info (if publication is a release) -->
    <!-- ========= --><release project="2.16.840.1.113883.3.4424.13"
            prefix="plcda-"
            signature="develop"
            date="2025-02-26T00:00:00"
            versionLabel="1.3.2">
      <note xmlns:epsos="urn:epsos-org:ep:medication"
            xmlns:cda="urn:hl7-org:v3"
            xmlns:extPL="http://www.csioz.gov.pl/xsd/extPL/r3"
            xmlns:pharm="urn:ihe:pharm"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xmlns:xs="http://www.w3.org/2001/XMLSchema"
            language="pl-PL">
            <b>Wydanie uzupełniające do wydania w wersji 1.3.2.</b>
         </note>
   </release>
    
    <!-- Chapter 2: Mapping based on model list -->
    <!-- ========= -->
    <!-- Used to map an instance to a specific Schematron. How to read:
- For every template-id that is used in instances there is an element map, e.g.
  <map model="REPC_IN004110UV01" namespace="urn:hl7-org:v3" sch="peri20-counseling-fase-1c.sch" schsvrl="peri20-counseling-fase-1c.xsl"/>
  or
  <map templateRoot="2.16.840.1.113883.2.4.6.10.90.59" templateExt="2017-03-27" sch="peri20-counseling-fase-1c.sch" schsvrl="peri20-counseling-fase-1c.xsl"/>
  <map templateRoot="2.16.840.1.113883.2.4.6.10.90.59" sch="peri20-counseling-fase-1c.sch" schsvrl="peri20-counseling-fase-1c.xsl"/>
  or 
  <map rootelement="REPC_IN004110UV01" namespace="urn:hl7-org:v3" sch="peri20-counseling-fase-1c.sch" schsvrl="peri20-counseling-fase-1c.xsl"/>
  
  - @model       - optional    - hint as to the XML Schema that could be used
  - @namespace   - mandatory   - default namespace-uri() of the project and of the instance unless specified otherwise
  or
  - templateRoot - mandatory   - in HL7v3 this would be an OID. In other instance types it might be something else, but then this mapping file might need adjusted setup
  - templateExt  - optional    - in HL7v3 this would be any string found in templateId/@extension
  or
  - @rootelement - required    - local-name() of the root element of the instance
  - @namespace   - mandatory   - namespace-uri() of the root element
  
  One of the following is required, normally schsvrl makes sense:
  - @schsvrl     - conditional - path+file name of the SVRL XSL. The path should be relative to this index/map file
  - @schtext     - conditional - path+file name of the Text XSL. The path should be relative to this index/map file
  - @sch         - conditional - path+file name of the original Schematron file. The path should be relative to this index/map file
    
  Note that the same template may be part of multiple transactions, hence multiple map element could be present for the same template. The attached Schematron
  will have different names, but will have the exact same rules (same template, same rules) hence only the first match is needed for validation.
  
- As final fallback, when no template-id is found in the instance, code should rely on root element of the instance to determine the Schematron file name ... --><!-- template name: plCdaParamedicRescueSummaryNote -->
    <map model="POCD_MT000040"
        rootelement="ClinicalDocument"
        namespace="urn:hl7-org:v3"
        templateRoot="2.16.840.1.113883.3.4424.13.10.1.48"
        sch="plcda-plCdaParamedicRescueSummaryNote.sch"
        schsvrl="plcda-plCdaParamedicRescueSummaryNote.xsl"
        xsd="ClinicalDocument.xsd"/>
   <map model="POCD_MT000040"
        rootelement="ClinicalDocument"
        namespace="urn:hl7-org:v3"
        sch="plcda-plCdaParamedicRescueSummaryNote.sch"
        schsvrl="plcda-plCdaParamedicRescueSummaryNote.xsl"
        xsd="ClinicalDocument.xsd"/>
    
    <!-- Chapter 3: Mapping based on representing templates -->
    <!-- ========= -->
    <!-- Used to map a representing template to a specific Schematron. How to read:
- For every representing template the schematron file and sch svrl xsl conversion file is mentioned
- The corresponding root element plus its namespace is mentioned 
- Every transaction represented by this template is named--><template id="2.16.840.1.113883.3.4424.13.10.1.48"
             effectiveDate="dynamic"
             sch="plcda-plCdaParamedicRescueSummaryNote.sch"
             schsvrl="plcda-plCdaParamedicRescueSummaryNote.xsl">
      <root rootelement="ClinicalDocument" namespace="urn:hl7-org:v3"/>
      <transaction id="2.16.840.1.113883.3.4424.13.4.56"
                   effectiveDate="2025-02-26T00:00:00"
                   statusCode="final"
                   name="Karta medycznych czynności ratunkowych"/>
   </template>
    
    <!-- Chapter 4: Schematron parameters that were used for this compilation -->
    <decor-parameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     xsi:noNamespaceSchemaLocation="core/assets/../decor-parameters.xsd"><!-- create Schematron1 or not (Schematron0) -->
      <switchCreateSchematron1/>
      <!-- create WithWrapperIncludes1 or not (WithWrapperIncludes0) -->
      <switchCreateSchematronWithWrapperIncludes0/>
      <switchCreateSchematronWithWarningsOnOpen0/>
      <switchCreateSchematronClosed0/>
      <switchCreateSchematronWithExplicitIncludes0/>
      <!-- create DocHTML1 or not (DocHTML0) -->
      <switchCreateDocHTML0/>
      <!-- create SVG1 or not (SVG0) -->
      <switchCreateDocSVG0/>
      <!-- create DocBook1 or not (DocBook0) -->
      <switchCreateDocDocbook0/>
      <!-- create PDF1 or not (PDF0) -->
      <switchCreateDocPDF0/>
      <!-- use local assets dir ../assets instead of online version -->
      <useLocalAssets1/>
      <!-- use local logos dir ../pfx-logos instead of online version -->
      <useLocalLogos1/>
      <!-- useCustomLogo -->
      <useCustomLogo0 src="" href=""/>
      <useLatestDecorVersion0/>
      <!-- create artefacts without timestamp directories as we are in development -->
      <inDevelopment1/>
      <!-- override /decor/project/@language default language, or set if not given there -->
      <!-- <defaultLanguage>nl-NL<defaultLanguage> -->
      <!-- need to keep those off for big projects due to memory constraints, but active otherwise -->
      <switchCreateDatatypeChecks0/>
      <!-- create instances that mimic the specification -->
      <createDefaultInstancesForRepresentingTemplates0/>
      <!-- log at level (ALL, DEBUG, INFO, WARN, ERROR, FATAL, OFF) -->
      <logLevel>ERROR</logLevel>
      <!-- determine binding behavior -->
      <bindingBehavior valueSets="freeze"/>
      <!-- Relevant for HTML only. Implements treetable.js based table views if 'switchCreateTreeTableHtml1' or traditional tables otherwise -->
      <switchCreateTreeTableHtml1/>
   </decor-parameters>
</mappings>
