<?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 do laboratorium -->
	<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="654321" root="2.16.840.1.113883.3.4424.7.4.1" displayable="false"/>
	<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 laboratorium</title>
	<effectiveTime value="20130412"/>
	<confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25"/>
	<languageCode code="pl-PL"/>
	<setId extension="123456" 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>Jan</given>
					<given>Franciszek</given>
					<family>Kowalski</family>
				</name>
				<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="false"/>
            <code code="0718_0726" codeSystem="2.16.840.1.113883.3.4424.11.3.3.1" displayName="neurologia, radiologia i diagnostyka obrazowa"/>
            <assignedPerson>
            	<templateId root="2.16.840.1.113883.3.4424.13.10.2.1"/>
                <name>
                    <prefix>lek.</prefix>
                    <given>Piotr</given>
                    <family>Nowak</family>
                </name>
            </assignedPerson>
            <representedOrganization>
                <templateId root="2.16.840.1.113883.3.4424.13.10.2.17"/>
                <id extension="000000008610-01" root="2.16.840.1.113883.3.4424.2.3.2" displayable="true"/>
                <name>Poradnia POZ</name>
                <telecom use="PUB" value="tel:22-1111123"/>
                <addr>
                    <postalCode>00-950</postalCode>
                    <city>Warszawa</city>
                    <streetName>Marszałkowska</streetName>
                    <houseNumber>320</houseNumber>
                </addr>
                <asOrganizationPartOf>
                    <wholeOrganization>
                        <id extension="12345678901234" root="2.16.840.1.113883.3.4424.2.2.2" displayable="true"/>
                        <name>NZOZ „POL-MED”</name>
                        <asOrganizationPartOf>
                            <wholeOrganization>
                                <id extension="000000008610" root="2.16.840.1.113883.3.4424.2.3.1" displayable="true"/>
                                <id extension="123456789" root="2.16.840.1.113883.3.4424.2.2.1" displayable="true"/>
                                <name>POL-MED Sp. z o.o.</name>
                            </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="654321" 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="true"/>
        </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="false"/>
    	</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>Rozpoznania</title>
                    <text>
                        <paragraph ID="OBS_1">I10 Nadciśnienie tętnicze</paragraph>
                    </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>
			            <list ID="ENC_1">
			                <caption>Proszę o wykonanie następujących badań na CITO:</caption>
			                <item ID="PROC_1">Morfologia krwi</item>
			                <item ID="PROC_2">Sód (Na)</item>
			                <item ID="PROC_3">Potas (K)</item>
			                <item ID="PROC_4">Kreatynina</item>
			                <item ID="PROC_5">Mocznik</item>
			            </list>
			        </text>
			        <entry>
			        	<templateId root="2.16.840.1.113883.3.4424.13.10.4.6"/>
			            <encounter classCode="ENC" moodCode="RQO">
			                <code code="7100" codeSystem="2.16.840.1.113883.3.4424.11.2.4" displayName="Pracownia diagnostyki laboratoryjnej (laboratorium)"/>
			                <text><reference value="#ENC_1"/></text>
			                <priorityCode code="UR" codeSystem="2.16.840.1.113883.5.7"/>
			                <entryRelationship typeCode="COMP">
			                    <procedure classCode="PROC" moodCode="RQO">
			                        <code code="C53" codeSystem="2.16.840.1.113883.3.4424.11.2.6" codeSystemName="ICD-9-PL" displayName="Morfologia krwi 8-parametrowa"/>
			                        <text><reference value="#PROC_1"/></text>
			                    </procedure>
			                </entryRelationship>
			                <entryRelationship typeCode="COMP">
			                    <procedure classCode="PROC" moodCode="RQO">
			                        <code code="O35" codeSystem="2.16.840.1.113883.3.4424.11.2.6" codeSystemName="ICD-9-PL" displayName="Sód (Na)"/>
			                        <text><reference value="#PROC_2"/></text>
			                    </procedure>
			                </entryRelationship>
			                <entryRelationship typeCode="COMP">
			                    <procedure classCode="PROC" moodCode="RQO">
			                        <code code="N45" codeSystem="2.16.840.1.113883.3.4424.11.2.6" codeSystemName="ICD-9-PL" displayName="Potas (K)"/>
			                        <text><reference value="#PROC_3"/></text>
			                    </procedure>
			                </entryRelationship>
			               	<entryRelationship typeCode="COMP">
			                    <procedure classCode="PROC" moodCode="RQO">
			                        <code code="M37" codeSystem="2.16.840.1.113883.3.4424.11.2.6" codeSystemName="ICD-9-PL" displayName="Kreatynina"/>
			                        <text><reference value="#PROC_4"/></text>
			                    </procedure>
			               </entryRelationship>
			               <entryRelationship typeCode="COMP">
			                    <procedure classCode="PROC" moodCode="RQO">
			                        <code code="N13" codeSystem="2.16.840.1.113883.3.4424.11.2.6" codeSystemName="ICD-9-PL" displayName="Mocznik"/>
			                        <text><reference value="#PROC_5"/></text>
			                    </procedure>
			                </entryRelationship>
			            </encounter>
			        </entry>
			    </section>
			</component>
	    </structuredBody>
	</component>
</ClinicalDocument>
