<?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">

    <typeId extension="POCD_HD000040" root="2.16.840.1.113883.1.3"/>

    <templateId root="1.2.616.1.113769.5.1" extension="0.3"/>

    <id extension="MP-EX-2026-0001" root="1.2.616.1.113769.4.1.1.000007.81234.15" displayable="true"/>

    <code code="57147-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Occupational medicine Referral note">
        <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 na badanie profilaktyczne medycyny pracy</title>
    <effectiveTime value="20260115140000+0100"/>
    <confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25"/>
    <languageCode code="pl-PL"/>

    <setId extension="MP-EX-2026-0001-SET" root="1.2.616.1.113769.4.1.1.000007.81234.15" displayable="true"/>
    <versionNumber value="1"/>

    <recordTarget>
        <templateId root="2.16.840.1.113883.3.4424.13.10.2.26"/>
        <patientRole>
            <id extension="03220398746" root="2.16.840.1.113883.3.4424.1.1.616" displayable="true"/>
            <addr>
                <city>Kraków</city>
                <postalCode>30-001</postalCode>
                <streetName>Floriańska</streetName>
                <houseNumber>15</houseNumber>
            </addr>
            <patient>
                <name>
                    <given>Zofia</given>
                    <family>Nowak</family>
                </name>
                <administrativeGenderCode code="F" codeSystem="2.16.840.1.113883.5.1"/>
                <birthTime value="20030322"/>
            </patient>
        </patientRole>
    </recordTarget>

    <author>
        <templateId root="2.16.840.1.113883.3.4424.13.10.2.86"/>
        <time value="20260115140000+0100"/>
        <assignedAuthor xsi:type="extPL:AssignedAuthor">
            <id extension="75120112340" root="2.16.840.1.113883.3.4424.1.1.616" displayable="false"/>
            <assignedPerson>
                <templateId root="2.16.840.1.113883.3.4424.13.10.2.1"/>
                <name>
                    <given>Piotr</given>
                    <family>Kadrowy</family>
                </name>
            </assignedPerson>
            <representedOrganization>
                <templateId root="2.16.840.1.113883.3.4424.13.10.2.17"/>
                <id extension="000331501" root="2.16.840.1.113883.3.4424.2.2.1" displayable="true"/>
                <id extension="EMP-INT-1001" root="1.2.616.1.113769.4.1.1.000007.81234.16.1" displayable="true"/>
                <name>Usługi IT Nowak Sp. z o.o.</name>
                <telecom use="WP" value="tel:12-345-67-89"/>
                <addr>
                    <country>PL</country>
                    <city>Kraków</city>
                    <postalCode>30-002</postalCode>
                    <streetName>Wielicka</streetName>
                    <houseNumber>100</houseNumber>
                </addr>
            </representedOrganization>
        </assignedAuthor>
    </author>

    <custodian>
        <templateId root="2.16.840.1.113883.3.4424.13.10.2.20"/>
        <assignedCustodian>
            <representedCustodianOrganization>
                <id extension="000331501" root="2.16.840.1.113883.3.4424.2.2.1" displayable="true"/>
                <name>Usługi IT Nowak Sp. z o.o.</name>
                <addr>
                    <country>PL</country>
                    <city>Kraków</city>
                    <postalCode>30-002</postalCode>
                    <streetName>Wielicka</streetName>
                    <houseNumber>100</houseNumber>
                </addr>
            </representedCustodianOrganization>
        </assignedCustodian>
    </custodian>

    <legalAuthenticator>
        <templateId root="2.16.840.1.113883.3.4424.13.10.2.6"/>
        <time value="20260115140000+0100"/>
        <signatureCode code="S"/>
        <assignedEntity>
            <id extension="75120112340" root="2.16.840.1.113883.3.4424.1.1.616" displayable="false"/>
        </assignedEntity>
    </legalAuthenticator>

    <component>
        <templateId root="2.16.840.1.113883.3.4424.13.10.2.28"/>
        <structuredBody>

            <component>
                <section>
                    <templateId root="1.2.616.1.113769.5.1.1" extension="0.3"/>
                    <code code="42349-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Reason for referral"/>
                    <title>Cel badania</title>
                    <text>
                        <paragraph>
                            <caption>Rodzaj badania: </caption>
                            <content ID="OBS_CEL_1">Wstępne</content>
                        </paragraph>
                    </text>
                    <entry>
                        <observation classCode="OBS" moodCode="EVN">
                            <code code="01"
                                  codeSystem="1.2.616.1.113769.1.9"
                                  codeSystemName="KAMSOFT_RodzajBadaniaMP"
                                  displayName="Wstępne"/>
                            <text>
                                <reference value="#OBS_CEL_1"/>
                            </text>
                            <statusCode code="completed"/>
                        </observation>
                    </entry>
                </section>
            </component>

            <component>
                <section>
                    <templateId root="1.2.616.1.113769.5.1.2" extension="0.3"/>
                    <code code="74158-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Occupational history"/>
                    <title>Stanowisko pracy</title>
                    <text>
                        <paragraph>
                            <caption>Nazwa stanowiska: </caption>
                            <content ID="OBS_STAN_1">PROGRAMISTA</content>
                        </paragraph>
                        <paragraph>
                            <caption>Opis stanowiska: </caption>
                            <content ID="OBS_STAN_2">Praca przy komputerze, sala open space, spotkania zespołowe.</content>
                        </paragraph>
                    </text>
                    <entry>
                        <observation classCode="OBS" moodCode="EVN">
                            <code code="B-12"
                                  codeSystem="1.2.616.1.113769.4.1.1.000007.81234.81"
                                  codeSystemName="KAMSOFT_Stanowiska_ERP"
                                  displayName="PROGRAMISTA">
                                <originalText>
                                    <reference value="#OBS_STAN_1"/>
                                </originalText>
                            </code>
                            <text>
                                <reference value="#OBS_STAN_2"/>
                            </text>
                            <statusCode code="completed"/>
                            <value xsi:type="ST">Praca przy komputerze, sala open space, spotkania zespołowe.</value>
                        </observation>
                    </entry>
                </section>
            </component>

            <component>
                <section>
                    <templateId root="1.2.616.1.113769.5.1.3" extension="0.3"/>
                    <code code="66594-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Exposure to substances"/>
                    <title>Opis warunków pracy - czynniki niebezpieczne, szkodliwe lub uciążliwe</title>
                    <text>
                        <paragraph>Na stanowisku pracy występują następujące czynniki niebezpieczne, szkodliwe lub uciążliwe:</paragraph>
                        <table>
                            <thead>
                                <tr>
                                    <th>Grupa</th>
                                    <th>Czynnik</th>
                                    <th>Wartość zmierzona<br/>(czas ekspozycji)</th>
                                    <th>NDS / NDN</th>
                                    <th>Data pomiaru</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>Czynniki fizyczne</td>
                                    <td><content ID="OBS_CZN_1">Hałas lokalny</content></td>
                                    <td>68 dB<br/>(8 h/dobę)</td>
                                    <td>70 dB</td>
                                    <td>1 listopada 2025 r.</td>
                                </tr>
                            </tbody>
                        </table>
                    </text>
                    <entry>
                        <organizer classCode="BATTERY" moodCode="EVN">
                            <code code="ALL-EXPOSURES"
                                  codeSystem="1.2.616.1.113769.5.1.3"
                                  displayName="Wszystkie czynniki narażenia"/>
                            <statusCode code="completed"/>

                            <component>
                                <organizer classCode="CLUSTER" moodCode="EVN">
                                    <code code="01"
                                          codeSystem="1.2.616.1.113769.1.8.1"
                                          codeSystemName="KAMSOFT_GrupyCzynnikow"
                                          displayName="Czynniki fizyczne"/>
                                    <statusCode code="completed"/>

                                    <component>
                                        <observation classCode="OBS" moodCode="EVN">
                                            <code code="FIZ-001"
                                                  codeSystem="1.2.616.1.113769.1.8.2"
                                                  codeSystemName="KAMSOFT_Czynniki"
                                                  displayName="Hałas lokalny">
                                                <originalText>
                                                    <reference value="#OBS_CZN_1"/>
                                                </originalText>
                                            </code>
                                            <statusCode code="completed"/>
                                            <effectiveTime value="20251101"/>
                                            <value xsi:type="PQ" value="68" unit="dB"/>
                                            <referenceRange>
                                                <observationRange>
                                                    <value xsi:type="PQ" value="70" unit="dB"/>
                                                    <interpretationCode code="N" codeSystem="2.16.840.1.113883.5.83" displayName="Norma (NDS/NDN)"/>
                                                </observationRange>
                                            </referenceRange>
                                            <entryRelationship typeCode="COMP">
                                                <observation classCode="OBS" moodCode="EVN">
                                                    <code code="EXPOSURE-TIME"
                                                          codeSystem="1.2.616.1.113769.5.1.3"
                                                          displayName="Czas ekspozycji"/>
                                                    <value xsi:type="PQ" value="8" unit="h/d"/>
                                                </observation>
                                            </entryRelationship>
                                        </observation>
                                    </component>
                                </organizer>
                            </component>

                        </organizer>
                    </entry>
                </section>
            </component>

            <component>
                <section>
                    <templateId root="1.2.616.1.113769.5.1.4" extension="0.3"/>
                    <code code="ADD-EXAMS"
                          codeSystem="1.2.616.1.113769.5.1.4"
                          displayName="Wymagane badania dodatkowe"/>
                    <title>Wymagane badania dodatkowe</title>
                    <text>
                        <paragraph>W związku z charakterem pracy i występującymi czynnikami narażenia wymagane są następujące badania dodatkowe:</paragraph>
                        <list>
                            <item>
                                <content ID="OBS_DOD_1">Spirometria</content> — badanie podstawowe wg polityki pracodawcy
                            </item>
                        </list>
                    </text>
                    <entry>
                        <organizer classCode="BATTERY" moodCode="RQO">
                            <code code="ADDITIONAL-EXAMS"
                                  codeSystem="1.2.616.1.113769.5.1.4"
                                  displayName="Wymagane badania dodatkowe"/>
                            <statusCode code="active"/>

                            <component>
                                <observation classCode="OBS" moodCode="RQO">
                                    <code code="89.37"
                                          codeSystem="2.16.840.1.113883.6.103"
                                          codeSystemName="ICD-9-PL"
                                          displayName="Spirometria">
                                        <originalText>
                                            <reference value="#OBS_DOD_1"/>
                                        </originalText>
                                    </code>
                                    <text>
                                        <reference value="#OBS_DOD_1"/>
                                    </text>
                                    <statusCode code="active"/>
                                </observation>
                            </component>

                        </organizer>
                    </entry>
                </section>
            </component>

            <component>
                <section>
                    <templateId root="1.2.616.1.113769.5.1.5" extension="0.3"/>
                    <code code="ADDITIONAL-INFO"
                          codeSystem="1.2.616.1.113769.5.1.5"
                          displayName="Informacje dodatkowe"/>
                    <title>Informacje dodatkowe</title>
                    <text>
                        <paragraph/>
                    </text>
                </section>
            </component>

        </structuredBody>
    </component>

</ClinicalDocument>