<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="CDA_PL_IG_1.3.2.xsl" type="text/xsl"?>
<ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:extPL="http://www.csioz.gov.pl/xsd/extPL/r3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="extPL:ClinicalDocument" moodCode="EVN">
    <typeId extension="POCD_HD000040" root="2.16.840.1.113883.1.3"/>
    <templateId root="2.16.840.1.113883.3.4424.13.10.1.48" extension="1.3.2"/>
    <id root="2.16.840.1.113883.3.4424.2.7.9999.36.1" extension="1000000000000376130"/>
    <code code="101135-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Ambulance Discharge summary">
        <translation code="00.50" codeSystem="2.16.840.1.113883.3.4424.11.1.32" codeSystemName="KLAS_DOK_P1" displayName="Karta medycznych czynności ratunkowych"/>
    </code>
    <title>Karta medycznych czynności ratunkowych</title>
    <effectiveTime value="20240115121809"/>
    <confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25" displayName="normal"/>
    <languageCode code="pl-PL"/>
    <setId root="2.16.840.1.113883.3.4424.2.7.9999.36.2" extension="1000000000000376130"/>
    <versionNumber value="1"/>
    <recordTarget typeCode="RCT" contextControlCode="OP">
        <templateId root="2.16.840.1.113883.3.4424.13.10.2.3"/>
        <patientRole classCode="PAT">
            <id root="2.16.840.1.113883.3.4424.1.1.616" extension="89083199973"/>
            <id root="2.16.840.1.113883.3.4424.2.7.28.17.1" extension="89083199973"/>
            <addr>
				<city>Warszawa</city>
				<postalCode>01-134</postalCode>
				<streetName>Odkryta</streetName>
				<houseNumber>41</houseNumber>
				<unitID>12</unitID>
			</addr>
            <patient classCode="PSN" determinerCode="INSTANCE">
                <name>
                    <given>JAN</given>
                    <family>KOWAL</family>
                </name>
                <administrativeGenderCode code="M" codeSystem="2.16.840.1.113883.5.1" displayName="Male"/>
                <birthTime value="19890831"/>
            </patient>
        </patientRole>
    </recordTarget>
    <author typeCode="AUT" contextControlCode="OP">
        <templateId root="2.16.840.1.113883.3.4424.13.10.2.130"/>
        <functionCode code="RATM" codeSystem="2.16.840.1.113883.3.4424.11.3.18" displayName="Ratownik medyczny"/>
        <time value="20240115121809"/>
        <assignedAuthor xsi:type="extPL:AssignedAuthor">
            <id root="2.16.840.1.113883.3.4424.1.6.5" extension="13648"/>
            <assignedPerson classCode="PSN" determinerCode="INSTANCE">
                <templateId root="2.16.840.1.113883.3.4424.13.10.2.1"/>
                <name>
                    <given>Wiktoria</given>
                    <family>Lecznicza</family>
                </name>
            </assignedPerson>
            <representedOrganization classCode="ORG" determinerCode="INSTANCE">
                <templateId root="2.16.840.1.113883.3.4424.13.10.2.18"/>
                <id root="2.16.840.1.113883.3.4424.2.3.3" extension="000000190353-1232" displayable="true"/>
                <id root="2.16.840.1.113883.3.4424.11.2.4" extension="3112" displayable="true"/>
                <name>Katowice centrum WPR</name>
                <telecom use="PUB" value="tel:111111111"/>
                <addr>
                    <country>POLSKA</country>
                    <postalCode xsi:type="extPL:adxp.postalCode" postCity="Katowice">40-027</postalCode>
                    <city>Katowice</city>
                    <streetName>Francuska</streetName>
                    <houseNumber>1</houseNumber>
                </addr>
                <standardIndustryClassCode codeSystem="2.16.840.1.113883.3.4424.11.2.4" code="3112" displayName="Katowice centrum WPR"/>
                <asOrganizationPartOf classCode="PART">
                    <wholeOrganization>
                        <id root="2.16.840.1.113883.3.4424.2.3.2" extension="000000190353-11" displayable="true"/>
                        <name>POGOTOWIE KATOWICKIE</name>
                        <asOrganizationPartOf>
                            <wholeOrganization>
                                <id extension="000000190353" root="2.16.840.1.113883.3.4424.2.3.1" displayable="true"/>
                                <id root="2.16.840.1.113883.3.4424.2.2.2" extension="12345678912349"/>
                            </wholeOrganization>
                        </asOrganizationPartOf>
                    </wholeOrganization>
                </asOrganizationPartOf>
            </representedOrganization>
        </assignedAuthor>
    </author>
    <custodian typeCode="CST">
        <templateId root="2.16.840.1.113883.3.4424.13.10.2.5"/>
        <assignedCustodian classCode="ASSIGNED">
            <representedCustodianOrganization classCode="ORG" determinerCode="INSTANCE">
                <id root="2.16.840.1.113883.3.4424.2.3.1" extension="1007" displayable="false"/>
            </representedCustodianOrganization>
        </assignedCustodian>
    </custodian>
    <legalAuthenticator typeCode="LA" contextControlCode="OP">
        <templateId root="2.16.840.1.113883.3.4424.13.10.2.6"/>
        <time value="20240115121809"/>
        <signatureCode code="S"/>
        <assignedEntity classCode="ASSIGNED">
            <id root="2.16.840.1.113883.3.4424.1.6.5" extension="13648" displayable="true"/>
        </assignedEntity>
    </legalAuthenticator>
    <componentOf typeCode="COMP">
        <templateId root="2.16.840.1.113883.3.4424.13.10.2.134"/>
        <encompassingEncounter classCode="ENC" moodCode="EVN">
            <id root="2.16.840.1.113883.3.4424.2.7.9999.36.3" extension="KZW/24/P/0000000027" /> <!-- Nr zlecenia wyjazdu -->
            <!-- valueSet: RodzajZespoluRatunkowego -->
            <code code="3112" codeSystem="2.16.840.1.113883.3.4424.11.2.4" displayName="Zespół ratownictwa medycznego podstawowy" />
            <effectiveTime>
                <low value="20240115113027" /> <!-- Czas przybycia na miejsce zdarzenia -->
                <high value="20240115113600" /> <!-- Czas przekazania pacjenta -->
            </effectiveTime>
            <location>
                <healthCareFacility>
                    <location>
                        <templateId root="2.16.840.1.113883.3.4424.13.10.2.75" />
                        <addr>
                            <streetName>Kłoczkowskiego Wacława</streetName>
                            <houseNumber>3</houseNumber>
                            <unitID>1</unitID>
                            <additionalLocator>Piętro: 1, Klatka: 1</additionalLocator>
                            <city>Gdańsk</city>
                        </addr>
                    </location>
                </healthCareFacility>
            </location>
        </encompassingEncounter>
    </componentOf>
    <component typeCode="COMP">
        <templateId root="2.16.840.1.113883.3.4424.13.10.2.130"/>
        <structuredBody classCode="DOCBODY" moodCode="EVN">
            <component typeCode="COMP">
                <section classCode="DOCSECT" moodCode="EVN">
                    <templateId root="2.16.840.1.113883.3.4424.13.10.3.222"/>
                    <code code="101135-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Ambulance Discharge summary"/>
                    <text>
                        <renderMultiMedia referencedObject="DOCUMENT_CONTENT"/>
                    </text>
                    
                    <entry typeCode="COMP">
                        <observationMedia ID="DOCUMENT_CONTENT" classCode="OBS" moodCode="EVN">
                            <templateId root="2.16.840.1.113883.3.4424.13.10.4.49"/>
                            <value representation="B64" mediaType="image/png">[encoded data, 1559272 characters]</value>
                        </observationMedia>
                    </entry>

                    <!--plCdaPrincipalDiagnosis-->
                    <entry>
						<organizer classCode="BATTERY" moodCode="EVN">
                            <templateId root="2.16.840.1.113883.3.4424.13.10.4.1" />
							<code code="8319008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Principal diagnosis" />
							<statusCode code="completed" />
							<component>
								<observation classCode="OBS" moodCode="EVN">
									<code code="K92.2" codeSystem="2.16.840.1.113883.6.3" codeSystemName="icd10" displayName="Krwotok z przewodu pokarmowego, nieokreślony"/>
								</observation>
							</component>
						</organizer>
					</entry>

                    <!--plCdaSecondaryDiagnosis-->
					<entry>
						<organizer classCode="BATTERY" moodCode="EVN">
                            <templateId root="2.16.840.1.113883.3.4424.13.4.2" />
							<code code="85097005" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Secondary diagnosis" />
							<statusCode code="completed" />
							<component>
								<observation classCode="OBS" moodCode="EVN">
									<code code="K93.8" codeSystem="2.16.840.1.113883.6.3" codeSystemName="icd10" displayName="Zaburzenia innych określonych narządów przewodu pokarmowego w przebiegu chorób sklasyfikowanych gdzie indziej"/>
								</observation>
							</component>
						</organizer>
					</entry>

                </section>
            </component>
        </structuredBody>
    </component>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="xmldsig-ec059b42-033e-430e-a6fd-d696e4d129a9">
  <ds:SignedInfo>
    <ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
    <ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/>
    <ds:Reference Id="xmldsig-ec059b42-033e-430e-a6fd-d696e4d129a9-ref0" URI="">
      <ds:Transforms>
        <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
      </ds:Transforms>
      <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
      <ds:DigestValue>7gHb6vXoKPxlkWY0uiCqggt4QF0=</ds:DigestValue>
    </ds:Reference>
    <ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#xmldsig-ec059b42-033e-430e-a6fd-d696e4d129a9-signedprops">
      <ds:Transforms>
        <ds:Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
      </ds:Transforms>
      <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
      <ds:DigestValue>FEcIrKeOrrUFE+Zq6Rx1gyut1Fc=</ds:DigestValue>
    </ds:Reference>
  </ds:SignedInfo>
  <ds:SignatureValue Id="xmldsig-ec059b42-033e-430e-a6fd-d696e4d129a9-sigvalue">avIh5gv2ojJn8QPQvxQgBO9T+QAY3XJNQP6zntth6l/GdxJP1EE3/dh3rBbP+kjChQi4IisWuqm+gS8Oi6C6jyHEQw5v3iTt0ms3QHcj+wClROgxdVvMNM3jyUSSaCE4H4IL1oKjkpfgc5S75BnQ89Q9awuyBxCvOfkk1oZ+F+CKankpygCGTbY9rb4AjWR8Pa8VuxhQ/bDAXM74XsKGOxD3rRmyyB9N/BP65HirI5UkGoQku4SyHKcmKyVR9QS4XB2xAQUELm/VD3TEAeRNfg3ydhv6YDwCGNxUGWHALhcbrIBwLtWkARzfHPOIASsklp0qXGVDkSZSrTaj7V9Tdg==</ds:SignatureValue>
  <ds:KeyInfo>
    <ds:X509Data>
      <ds:X509Certificate>MIIDAjCCAeoCCQDsnS4tjurzhzANBgkqhkiG9w0BAQsFADBDMRgwFgYDVQQDDA9BbG9qenkgU3p5bWN6YWsxCzAJBgNVBAYTAlBMMRowGAYDVQQFExFQTk9QTC01ODExMjI0Mjc2NjAeFw0yMzAzMTQxNDA4NDNaFw0yNDAzMTMxNDA4NDNaMEMxGDAWBgNVBAMMD0Fsb2p6eSBTenltY3phazELMAkGA1UEBhMCUEwxGjAYBgNVBAUTEVBOT1BMLTU4MTEyMjQyNzY2MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvH8f0rrqOhJ85ACVqwi1D+5Xr/lEWFaSlGWVrjE6V/zZDjVBqBtY6zab3pcRcn5gspK283ch5aN+/4QMXjo7Ov2rI94MIoY+DAPly5ThGvSQxT25Jm5yQdzKhGsjWl5WMZ0zkezaXsLQaaStTUZtKjWrLRwCC3ZNnz8KaXqnN8X7Be/5ksiD/GqjAAl0OMEClZTdCgzG48Bv7IIZUqD/BVSBYAINKtl9ELFdeAcDXAUlkUs+xAG2BwrglK3d3FQq9h2ILn4ZQfSAMSpJgd1PU9j1/T9jHH6Mr0+qMvBNldQ03AktAehCRADD3oPaYKWAzzDW6ZT1YLPtJeAXFfxKDwIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQCxjlcq4l8Zrs0OLpHiKEJrBs2a6cA6yrGZN0MRyhmk+UQc/WFzW8xyCotepit0FddI1W0Ncwd2ObVAmrvF7WbIkk6nUzdjMGAmG2gSORW18XbgfHrRVmRaiQ/W9+TosO/DL/2CqKjf5N2SvZond/SBmtf8Op148noTU7YPW5TFLLW69CnJ74PJRy0TbPLXDSy1mt8MTpjJJOr9sNZpqwj0kH0iOtKpZqSwwR8oI2fHLSyS0ZygYjfcCXJf20BawtoKLMugdk75kUvr+Wbph/Bj44KdROZOBXVSkZXBBqC1KqqSgURps6/NefFxrAQqY2HF/5XVf9538noAsGO/KCfe</ds:X509Certificate>
      <ds:X509SubjectName>CN=Alojzy Szymczak, C=PL, OID.2.5.4.5=#1311504e4f504c2d3538313132323432373636</ds:X509SubjectName>
      <ds:X509IssuerSerial>
        <ds:X509IssuerName>CN=Alojzy Szymczak, C=PL, OID.2.5.4.5=#1311504e4f504c2d3538313132323432373636</ds:X509IssuerName>
        <ds:X509SerialNumber>17049834537500734343</ds:X509SerialNumber>
      </ds:X509IssuerSerial>
    </ds:X509Data>
  </ds:KeyInfo>
  <ds:Object>
    <xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" xmlns:xades141="http://uri.etsi.org/01903/v1.4.1#" Target="#xmldsig-ec059b42-033e-430e-a6fd-d696e4d129a9">
    <xades:SignedProperties Id="xmldsig-ec059b42-033e-430e-a6fd-d696e4d129a9-signedprops">
        <xades:SignedSignatureProperties>
            <xades:SigningTime>2024-01-15T12:18:09+01:00</xades:SigningTime>
        </xades:SignedSignatureProperties>
    </xades:SignedProperties>
</xades:QualifyingProperties>
</ds:Object>
</ds:Signature></ClinicalDocument>
