<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="CDA_PL_IG_1.3.1.xsl" type="text/xsl"?>
<ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:extPL="http://www.csioz.gov.pl/xsd/extPL/r2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="extPL:ClinicalDocument">
	<!-- Skierowanie na kardiologię -->
    <typeId extension="POCD_HD000040" root="2.16.840.1.113883.1.3"/>
    <templateId root="2.16.840.1.113883.3.4424.13.10.1.4" extension="1.3.1"/>
    <id extension="6543211234567" root="2.16.840.1.113883.3.4424.7.4.1" displayable="true"/>
    <code code="57832-8" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Prescription for diagnostic or specialist care Document">
        <translation code="02.10" displayName="Skierowanie na badanie lub leczenie" codeSystem="2.16.840.1.113883.3.4424.11.1.32" codeSystemName="KLAS_DOK_P1"/>
    </code>
    <title>Skierowanie do szpitala</title>
    <effectiveTime value="20141020"/>
    <confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25"/>
    <languageCode code="pl-PL"/>
    <setId extension="4322395464356345" root="2.16.840.1.113883.3.4424.7.4.2"/>
    <versionNumber value="1"/>
    <recordTarget>
        <templateId root="2.16.840.1.113883.3.4424.13.10.2.26"/>
        <patientRole>
		    <id extension="12345" root="2.16.840.1.113883.3.4424.2.7.0.17.1" displayable="false"/>
		    <id extension="62011699999" root="2.16.840.1.113883.3.4424.1.1.616" displayable="true"/>
			<addr>
			    <city>Warszawa</city>
			    <postalCode>01-134</postalCode>
			    <streetName>Odkryta</streetName>
			    <houseNumber>41</houseNumber>
			    <unitID>12</unitID>
			</addr>
			<patient>
				<name>
					<given>Mieczysław</given>
					<family>Kowalski</family>
				</name>
				<administrativeGenderCode code="M" codeSystem="2.16.840.1.113883.5.1"/>
				<birthTime value="19620116"/>
			</patient>
		</patientRole>
    </recordTarget>
    <author>
        <templateId root="2.16.840.1.113883.3.4424.13.10.2.86"/>
        <functionCode code="LEK" codeSystem="2.16.840.1.113883.3.4424.11.3.18" displayName="Lekarz"/>
		<time value="20130412"/>
		<assignedAuthor xsi:type="extPL:AssignedAuthor">
            <id extension="7724513" root="2.16.840.1.113883.3.4424.1.6.2" displayable="true"/>
            <code code="0705" codeSystem="2.16.840.1.113883.3.4424.11.3.3" displayName="choroby wewnętrzne"/>
            <assignedPerson>
                <templateId root="2.16.840.1.113883.3.4424.13.10.2.1"/>
                <name>
                    <prefix>lek.</prefix>
                    <given>Adam</given>
                    <family>Zadrożny</family>
                </name>
            </assignedPerson>
            <representedOrganization>
				<!-- Komórka organizacyjna podmiotu leczniczego -->
				<templateId root="2.16.840.1.113883.3.4424.13.10.2.18" />
				<id extension="000000009876-001" root="2.16.840.1.113883.3.4424.2.3.3" />
				<name>Poradnia lekarza rodzinnego</name>
				<telecom use="PUB" value="tel:66-580-90-06"/>
				<addr>
					<postalCode>23-345</postalCode>
                    <city>Małe Ciche</city>
                    <streetName>Rynek</streetName>
                    <houseNumber>5</houseNumber>
				</addr>
				<standardIndustryClassCode code="0010" codeSystem="2.16.840.1.113883.3.4424.11.2.4" displayName="Poradnia (gabinet) lekarza POZ"/>
                <asOrganizationPartOf>
                    <wholeOrganization>
                        <!-- Jednostka podmiotu leczniczego (zakłada się, że zgodna 2.16.840.1.113883.3.4424.13.10.2.17, jednak nieformalnie) -->
                        <id extension="000000009876-01" root="2.16.840.1.113883.3.4424.2.3.2" displayable="true"/>
                        <asOrganizationPartOf>
		                    <wholeOrganization>
		                    	<!-- Przedsiębiorstwo podmiotu leczniczego (zakłada się, że zgodne 2.16.840.1.113883.3.4424.13.10.2.16, jednak nieformalnie) -->
		                        <id extension="43251260700026" root="2.16.840.1.113883.3.4424.2.2.2" displayable="true"/>
		                        <name>NZOZ "PROXMED"</name>
		                        <asOrganizationPartOf>
		                            <wholeOrganization>
		                            	<!-- Podmiot leczniczy (zakłada się, że zgodny 2.16.840.1.113883.3.4424.13.10.2.14, jednak nieformalnie) -->
		                                <id extension="000000009876" root="2.16.840.1.113883.3.4424.2.3.1" displayable="true"/>
		                                <id extension="432512607" root="2.16.840.1.113883.3.4424.2.2.1" displayable="true"/>
		                            </wholeOrganization>
		                        </asOrganizationPartOf>
	                    	</wholeOrganization>
						</asOrganizationPartOf>
					</wholeOrganization>
				</asOrganizationPartOf>
			</representedOrganization>
            <extPL:boundedBy typeCode="PART">
                <extPL:templateId root="2.16.840.1.113883.3.4424.13.10.2.44"/>
                <extPL:reimbursementRelatedContract moodCode="EVN" classCode="CNTRCT">
                    <extPL:id extension="03-16-01-02990-01" root="2.16.840.1.113883.3.4424.8.6.1.7"/>
                    <extPL:bounding typeCode="PART">
                        <extPL:reimburser classCode="UNDWRT">
                            <extPL:id extension="07" root="2.16.840.1.113883.3.4424.3.1" displayable="true"/>
                        </extPL:reimburser>
                    </extPL:bounding>
                </extPL:reimbursementRelatedContract>
            </extPL:boundedBy>
        </assignedAuthor>
    </author>
    <custodian>
        <templateId root="2.16.840.1.113883.3.4424.13.10.2.20"/>
        <assignedCustodian>
            <representedCustodianOrganization>
                <id root="2.16.840.1.113883.3.4424" assigningAuthorityName="CSIOZ" displayable="false"/>
            </representedCustodianOrganization>
        </assignedCustodian>
    </custodian>
    <legalAuthenticator>
        <templateId root="2.16.840.1.113883.3.4424.13.10.2.6"/>
        <time value="20130412"/>
        <signatureCode code="S"/>
        <assignedEntity>
            <id extension="7724513" root="2.16.840.1.113883.3.4424.1.6.2" displayable="false"/>
        </assignedEntity>
    </legalAuthenticator>
    <participant typeCode="IND">
        <templateId root="2.16.840.1.113883.3.4424.13.10.2.19"/>
        <associatedEntity classCode="UNDWRT">
            <id extension="07" root="2.16.840.1.113883.3.4424.3.1" displayable="true"/>
        </associatedEntity>
    </participant>
    <component> 
        <templateId root="2.16.840.1.113883.3.4424.13.10.2.28"/>
        <structuredBody>
            <component>
                <section>
                    <templateId root="2.16.840.1.113883.3.4424.13.10.3.1"/>
                    <code code="29548-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Diagnosis"/>
					<title>Rozpoznanie</title>
                    <text>
                        <content ID="OBS_1">I10 Nadciśnienie tętnicze</content>
                    </text>
                    <entry>
                        <templateId root="2.16.840.1.113883.3.4424.13.10.4.1"/>
                        <organizer classCode="BATTERY" moodCode="EVN">
                            <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="I10" codeSystem="2.16.840.1.113883.6.3" codeSystemName="icd10" displayName="Nadciśnienie tętnicze (samoistne)"/>
                                    <text>
                                        <reference value="#OBS_1"/>
                                    </text>
                                </observation>
                            </component>
                        </organizer>
                    </entry>
                </section>
            </component>
            <component>
                <section>
                    <templateId root="2.16.840.1.113883.3.4424.13.10.3.6"/>
                    <code code="57828-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Prescriptions"/>
                    <!-- tytuł wymagany przez CSIOZ, to jest główna sekcja dokumentu skierowania -->
                    <title>Inne informacje</title>
                    <text>
                        <paragraph ID="ENC_1">
							Proszę o przyjęcie na oddział kardiologii w celu wykonania
							<content ID="PROC_1">koronarografii</content>
						</paragraph>
                    </text>
                    <entry>
                        <templateId root="2.16.840.1.113883.3.4424.13.10.4.6"/>
                        <encounter classCode="ENC" moodCode="RQO">
                            <code code="4100" codeSystem="2.16.840.1.113883.3.4424.11.2.4" displayName="Oddział kardiologiczny"/>
                            <text>
                                <reference value="#ENC_1"/>
                            </text>
                            <entryRelationship typeCode="COMP">
                                <procedure classCode="PROC" moodCode="RQO">
                                    <code code="88.55" codeSystem="2.16.840.1.113883.3.4424.11.2.6" codeSystemName="ICD-9-PL" displayName="Koronarografia z użyciem jednego cewnika"/>
                                    <text>
                                        <reference value="#PROC_1"/>
                                    </text>
                                </procedure>
                            </entryRelationship>
                        </encounter>
                    </entry>
                </section>
            </component>
			<component>
				<section>
					<templateId root="2.16.840.1.113883.3.4424.13.10.3.39"/>
					<title>Załączniki</title>
					<text>
						<list>
							<item ID="EXTDOC_1">Wynik badania laboratoryjnego z dnia 01.10.2014</item>
							<item ID="EXTDOC_2">Wynik badania echokardiograficznego z dnia 09.09.2014</item>
						</list>
					</text>
					<entry>
						<organizer classCode="CLUSTER" moodCode="EVN">
							<templateId root="2.16.840.1.113883.3.4424.13.10.4.31"/>	
							<statusCode code="completed"/>
							<reference typeCode="REFR">
								<templateId root="2.16.840.1.113883.3.4424.13.10.4.32"/>
								<seperatableInd value="false"/>
								<externalDocument>
									<templateId root="2.16.840.1.113883.3.4424.13.10.4.33"/>
									<id extension="2345678" root="2.16.840.1.113883.3.4424.2.7.0.7.1" displayable="false"/>
									<code code="11502-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Laboratory report">
										<translation code="06.10" codeSystem="2.16.840.1.113883.3.4424.11.1.32" codeSystemName="KLAS_DOK_P1" displayName="Wyniki badań laboratoryjnych" />
									</code>
									<text><reference value="#EXTDOC_2"/></text>
									<setId extension="432231" root="2.16.840.1.113883.3.4424.2.7.0.7.2"/>
									<versionNumber value="1"/>
								</externalDocument>
							</reference>
							<reference typeCode="REFR">
								<templateId root="2.16.840.1.113883.3.4424.13.10.4.32"/>
								<seperatableInd value="false"/>
								<externalDocument>
									<templateId root="2.16.840.1.113883.3.4424.13.10.4.34"/>
									<text><reference value="#EXTDOC_2"/></text>
								</externalDocument>
							</reference>
						</organizer>
					</entry>
				</section>
			</component>
        </structuredBody>
    </component>
</ClinicalDocument>
