Primjer poruke zahtjeva za zatvaranje posjete

<Bundle xmlns="http://hl7.org/fhir">
    <id value="1b947384-6e0c-4291-8feb-2c0720dd77b2" />
    <meta>
        <versionId value="5" />
        <lastUpdated value="2022-09-27T14:32:29.054+00:00" />
        <source value="#1d093c285c1f73cf" />
    </meta>
    <type value="message" />
    <timestamp value="2022-07-14T13:35:12+02:00" />
    <entry>
        <fullUrl value="urn:uuid:bfd8c056-578b-444b-b01c-d7aa00d4ddad" />
        <resource>
            <MessageHeader>
                <eventCoding>
                    <system value="http://ent.hr/fhir/CodeSystem/ehe-message-types" />
                    <code value="1.3" />
                </eventCoding>
                <sender>
                    <type value="Organization" />
                    <identifier>
                        <system value="http://fhir.cezih.hr/specifikacije/identifikatori/HZZO-sifra-zdravstvene-organizacije" />
                        <value value="1234" />
                    </identifier>
                </sender>
                <author>
                    <type value="Practitioner" />
                    <identifier>
                        <system value="http://fhir.cezih.hr/specifikacije/identifikatori/HZJZ-broj-zdravstvenog-djelatnika" />
                        <value value="1234567" />
                    </identifier>
                </author>
                <source>
                    <endpoint value="urn:oid:1.2.3.4.5.6" />
                </source>
                <focus>
                    <reference value="urn:uuid:1216b1c7-a2b6-4b39-9f89-90c72e222f3f" />
                </focus>
            </MessageHeader>
        </resource>
    </entry>
    <entry>
        <fullUrl value="urn:uuid:1216b1c7-a2b6-4b39-9f89-90c72e222f3f" />
        <resource>
            <Encounter>
                <identifier>
                    <system value="http://fhir.cezih.hr/specifikacije/identifikatori/identifikator-posjete" />
                    <value value="cl3lnsp4o000009mhcuac4j0u" />
                </identifier>
                <status value="finished" />
                <class>
                    <system value="http://fhir.cezih.hr/specifikacije/CodeSystem/nacin-prijema" />
                    <code value="9" />
                    <display value="Interna uputnica" />
                </class>
                <period>
                    <start value="2022-01-20T12:30:02Z" />
                    <end value="2022-01-20T13:30:02Z" />
                </period>
                <diagnosis>
                    <condition>
                        <type value="Condition" />
                        <identifier>
                            <system value="http://fhir.cezih.hr/specifikacije/identifikatori/slucaj" />
                            <value value="cl3lndh7u000009l6hhzya349" />
                        </identifier>
                    </condition>
                </diagnosis>
                <serviceProvider>
                    <type value="Organization" />
                    <identifier>
                        <system value="http://fhir.cezih.hr/specifikacije/identifikatori/HZZO-sifra-zdravstvene-organizacije" />
                        <value value="1234" />
                    </identifier>
                </serviceProvider>
            </Encounter>
        </resource>
    </entry>
    <signature>
        <type>
            <system value="urn:iso-astm:E1762-95:2013" />
            <code value="1.2.840.10065.1.12.1.1" />
        </type>
        <when value="2022-07-14T11:20:14+02:00" />
        <who>
            <type value="Practitioner" />
            <identifier>
                <system value="http://fhir.cezih.hr/specifikacije/identifikatori/HZJZ-broj-zdravstvenog-djelatnika" />
                <value value="1234567" />
            </identifier>
        </who>
        <data value="UHJpbWVyIHBvdHBpc2EgemEgdmnFoWUgaW5mb3JtYWNpamEgcHJvxI1pdGFqIEZISVIgc3RhbmRhcmQgaSBJSEUgRFNH" />
    </signature>
</Bundle>
{
    "resourceType": "Bundle",
    "id": "1b947384-6e0c-4291-8feb-2c0720dd77b2",
    "meta": {
        "versionId": "5",
        "lastUpdated": "09/27/2022 14:32:29",
        "source": "#1d093c285c1f73cf"
    },
    "type": "message",
    "timestamp": "07/14/2022 11:35:12",
    "entry":  [
        {
            "fullUrl": "urn:uuid:bfd8c056-578b-444b-b01c-d7aa00d4ddad",
            "resource": {
                "resourceType": "MessageHeader",
                "eventCoding": {
                    "system": "http://ent.hr/fhir/CodeSystem/ehe-message-types",
                    "code": "1.3"
                },
                "sender": {
                    "type": "Organization",
                    "identifier": {
                        "system": "http://fhir.cezih.hr/specifikacije/identifikatori/HZZO-sifra-zdravstvene-organizacije",
                        "value": "1234"
                    }
                },
                "author": {
                    "type": "Practitioner",
                    "identifier": {
                        "system": "http://fhir.cezih.hr/specifikacije/identifikatori/HZJZ-broj-zdravstvenog-djelatnika",
                        "value": "1234567"
                    }
                },
                "source": {
                    "endpoint": "urn:oid:1.2.3.4.5.6"
                },
                "focus":  [
                    {
                        "reference": "urn:uuid:1216b1c7-a2b6-4b39-9f89-90c72e222f3f"
                    }
                ]
            }
        },
        {
            "fullUrl": "urn:uuid:1216b1c7-a2b6-4b39-9f89-90c72e222f3f",
            "resource": {
                "resourceType": "Encounter",
                "identifier":  [
                    {
                        "system": "http://fhir.cezih.hr/specifikacije/identifikatori/identifikator-posjete",
                        "value": "cl3lnsp4o000009mhcuac4j0u"
                    }
                ],
                "status": "finished",
                "class": {
                    "system": "http://fhir.cezih.hr/specifikacije/CodeSystem/nacin-prijema",
                    "code": "9",
                    "display": "Interna uputnica"
                },
                "period": {
                    "start": "01/20/2022 12:30:02",
                    "end": "01/20/2022 13:30:02"
                },
                "diagnosis":  [
                    {
                        "condition": {
                            "type": "Condition",
                            "identifier": {
                                "system": "http://fhir.cezih.hr/specifikacije/identifikatori/slucaj",
                                "value": "cl3lndh7u000009l6hhzya349"
                            }
                        }
                    }
                ],
                "serviceProvider": {
                    "type": "Organization",
                    "identifier": {
                        "system": "http://fhir.cezih.hr/specifikacije/identifikatori/HZZO-sifra-zdravstvene-organizacije",
                        "value": "1234"
                    }
                }
            }
        }
    ],
    "signature": {
        "type":  [
            {
                "system": "urn:iso-astm:E1762-95:2013",
                "code": "1.2.840.10065.1.12.1.1"
            }
        ],
        "when": "07/14/2022 09:20:14",
        "who": {
            "type": "Practitioner",
            "identifier": {
                "system": "http://fhir.cezih.hr/specifikacije/identifikatori/HZJZ-broj-zdravstvenog-djelatnika",
                "value": "1234567"
            }
        },
        "data": "UHJpbWVyIHBvdHBpc2EgemEgdmnFoWUgaW5mb3JtYWNpamEgcHJvxI1pdGFqIEZISVIgc3RhbmRhcmQgaSBJSEUgRFNH"
    }
}