<?xml version="1.0" encoding="UTF-8"?>

<Bundle xmlns="http://hl7.org/fhir">
  <id value="exempel-journalhandling"/>
  <meta>
    <profile value="https://fhir.aiidera.se/StructureDefinition/AiideraJournalDocument|0.22.0"/>
  </meta>
  <identifier>
    <system value="https://id.aiidera.se/document"/>
    <value value="00000000-0000-4000-8000-000000000008"/>
  </identifier>
  <type value="document"/>
  <timestamp value="2026-08-09T10:00:00+02:00"/>
  <entry>
    <fullUrl value="urn:uuid:00000000-0000-4000-8000-000000000001"/>
    <resource>
      <Composition>
        <meta>
          <profile value="https://fhir.aiidera.se/StructureDefinition/AiideraJournalComposition|0.22.0"/>
        </meta>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="Composition_null"> </a><p class="res-header-id"><b>Genererad berättande text: Composition </b></p><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px"/><p style="margin-bottom: 0px">Profil: <a href="StructureDefinition-AiideraJournalComposition.html">Aiidera journalhandlingens Composition</a> version: 0.22.0</p></div><p><b>identifier</b>: <a href="NamingSystem-AiideraDocumentNamingSystem.html" title="Identifierar en signerad journalhandling. Värdet står i Bundle.identifier inuti de signerade bytesen och på varje resurs signeringstransaktionen skriver, och är nyckeln som binder en projektion till sitt original. Varje handling får ett eget värde; en rättelse får ett nytt och länkas med relatesTo. Ett värde återanvänds aldrig mellan två signerade handlingar.">AiideraDocumentIdentifier</a>/00000000-0000-4000-8000-000000000008</p><p><b>status</b>: Final</p><p><b>type</b>: <span title="Koder:{http://loinc.org 34109-9}">Note</span></p><p><b>category</b>: <span title="Koder:">Mottagningsbesök</span></p><p><b>encounter</b>: <a href="Bundle-exempel-journalhandling.html#urn-uuid-00000000-0000-4000-8000-000000000004">Encounter: status = finished; class = ambulatory (ActCode#AMB); type = Mottagningsbesök</a></p><p><b>date</b>: 2026-08-09 10:00:00+0200</p><p><b>author</b>: <a href="Bundle-exempel-journalhandling.html#urn-uuid-00000000-0000-4000-8000-000000000005">PractitionerRole Läkare</a></p><p><b>title</b>: Mottagningsbesök</p></div>
        </text>
        <identifier>
          <system value="https://id.aiidera.se/document"/>
          <value value="00000000-0000-4000-8000-000000000008"/>
        </identifier>
        <status value="final"/>
        <type>
          <coding>
            <system value="http://loinc.org"/>
            <version value="2.82"/>
            <code value="34109-9"/>
          </coding>
        </type>
        <category>
          <text value="Mottagningsbesök"/>
        </category>
        <subject>
          <reference value="urn:uuid:00000000-0000-4000-8000-000000000002"/>
        </subject>
        <encounter>
          <reference value="urn:uuid:00000000-0000-4000-8000-000000000004"/>
        </encounter>
        <date value="2026-08-09T10:00:00+02:00"/>
        <author>
          <reference value="urn:uuid:00000000-0000-4000-8000-000000000005"/>
        </author>
        <title value="Mottagningsbesök"/>
        <section>
          <title value="Status"/>
          <code>
            <coding>
              <system value="http://snomed.info/sct"/>
              <version value="http://snomed.info/sct/45991000052106/version/20260531"/>
              <code value="425044008"/>
            </coding>
            <text value="Status"/>
          </code>
          <text>
            <status value="additional"/><div xmlns="http://www.w3.org/1999/xhtml">Patienten mår väl. Blodtrycket kontrollerat och stabilt sedan förra besöket.</div>
          </text>
        </section>
        <section>
          <title value="Deltagare"/>
          <code>
            <text value="Deltagare"/>
          </code>
          <text>
            <status value="additional"/><div xmlns="http://www.w3.org/1999/xhtml">patient<br/>vårdnadshavare</div>
          </text>
          <entry>
            <reference value="urn:uuid:00000000-0000-4000-8000-000000000002"/>
          </entry>
          <entry>
            <reference value="urn:uuid:00000000-0000-4000-8000-000000000009"/>
          </entry>
        </section>
      </Composition>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:00000000-0000-4000-8000-000000000002"/>
    <resource>
      <Patient>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="Patient_null"> </a><p class="res-header-id"><b>Genererad berättande text: Patient </b></p><p style="border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;">Signe Syntetisk  (inget angivet kön), Födelsedatum: 1970-01-01 ( http://electronichealth.se/identifier/personnummer#19700101-1234)</p><hr/></div>
        </text>
        <identifier>
          <system value="http://electronichealth.se/identifier/personnummer"/>
          <value value="19700101-1234"/>
        </identifier>
        <name>
          <family value="Syntetisk"/>
          <given value="Signe"/>
        </name>
        <birthDate value="1970-01-01"/>
      </Patient>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:00000000-0000-4000-8000-000000000003"/>
    <resource>
      <Practitioner>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="Practitioner_null"> </a><p class="res-header-id"><b>Genererad berättande text: Practitioner </b></p><p><b>identifier</b>: <code>urn:oid:1.2.752.29.4.19</code>/stubbe-1A2B</p><p><b>name</b>: Lena Läkare </p></div>
        </text>
        <identifier>
          <system value="urn:oid:1.2.752.29.4.19"/>
          <value value="stubbe-1A2B"/>
        </identifier>
        <name>
          <family value="Läkare"/>
          <given value="Lena"/>
        </name>
      </Practitioner>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:00000000-0000-4000-8000-000000000005"/>
    <resource>
      <PractitionerRole>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="PractitionerRole_null"> </a><p class="res-header-id"><b>Genererad berättande text: PractitionerRole </b></p><p><b>identifier</b>: <code>https://fhir.aiidera.se/stubbe/hsa</code>/stubbe-U7Q2</p><p><b>practitioner</b>: <a href="Bundle-exempel-journalhandling.html#urn-uuid-00000000-0000-4000-8000-000000000003">Practitioner Lena Läkare </a></p><p><b>organization</b>: <a href="Bundle-exempel-journalhandling.html#urn-uuid-00000000-0000-4000-8000-000000000006">Organization Vibblaby Husläkarmottagning</a></p><p><b>code</b>: <span title="Koder:{https://fhir.aiidera.se/CodeSystem/aiidera-yrkeskategori lakare}">Läkare</span></p></div>
        </text>
        <identifier>
          <system value="https://fhir.aiidera.se/stubbe/hsa"/>
          <value value="stubbe-U7Q2"/>
        </identifier>
        <practitioner>
          <reference value="urn:uuid:00000000-0000-4000-8000-000000000003"/>
        </practitioner>
        <organization>
          <reference value="urn:uuid:00000000-0000-4000-8000-000000000006"/>
        </organization>
        <code>
          <coding>
            <system value="https://fhir.aiidera.se/CodeSystem/aiidera-yrkeskategori"/>
            <code value="lakare"/>
            <display value="Läkare"/>
          </coding>
        </code>
      </PractitionerRole>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:00000000-0000-4000-8000-000000000006"/>
    <resource>
      <Organization>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="Organization_null"> </a><p class="res-header-id"><b>Genererad berättande text: Organization </b></p><p><b>identifier</b>: <code>urn:oid:1.2.752.29.4.19</code>/SE2321000016-12XZ</p><p><b>name</b>: Vibblaby Husläkarmottagning</p><p><b>partOf</b>: <a href="Bundle-exempel-journalhandling.html#urn-uuid-00000000-0000-4000-8000-000000000007">Organization Vibblaby Husläkarmottagning AB</a></p></div>
        </text>
        <identifier>
          <system value="urn:oid:1.2.752.29.4.19"/>
          <value value="SE2321000016-12XZ"/>
        </identifier>
        <name value="Vibblaby Husläkarmottagning"/>
        <partOf>
          <reference value="urn:uuid:00000000-0000-4000-8000-000000000007"/>
        </partOf>
      </Organization>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:00000000-0000-4000-8000-000000000007"/>
    <resource>
      <Organization>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="Organization_null"> </a><p class="res-header-id"><b>Genererad berättande text: Organization </b></p><p><b>identifier</b>: <code>urn:oid:1.2.752.29.4.19</code>/SE2321000016-FKJ1, <code>urn:oid:2.5.4.97</code>/5565792115</p><p><b>name</b>: Vibblaby Husläkarmottagning AB</p></div>
        </text>
        <identifier>
          <system value="urn:oid:1.2.752.29.4.19"/>
          <value value="SE2321000016-FKJ1"/>
        </identifier>
        <identifier>
          <system value="urn:oid:2.5.4.97"/>
          <value value="5565792115"/>
        </identifier>
        <name value="Vibblaby Husläkarmottagning AB"/>
      </Organization>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:00000000-0000-4000-8000-000000000004"/>
    <resource>
      <Encounter>
        <meta>
          <profile value="https://fhir.aiidera.se/StructureDefinition/AiideraVardkontakt|0.22.0"/>
        </meta>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="Encounter_null"> </a><p class="res-header-id"><b>Genererad berättande text: Encounter </b></p><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px"/><p style="margin-bottom: 0px">Profil: <a href="StructureDefinition-AiideraVardkontakt.html">Aiidera vårdkontakt</a> version: 0.22.0</p></div><p><b>status</b>: Finished</p><p><b>class</b>: <a href="http://terminology.hl7.org/7.5.0/CodeSystem-v3-ActCode.html#v3-ActCode-AMB">ActCode: AMB</a> (ambulatory)</p><p><b>type</b>: <span title="Koder:{https://fhir.aiidera.se/CodeSystem/aiidera-kontakttyp-koder mottagningsbesok}">Mottagningsbesök</span></p><p><b>subject</b>: <a href="Bundle-exempel-journalhandling.html#urn-uuid-00000000-0000-4000-8000-000000000002">Signe Syntetisk  (inget angivet kön), Födelsedatum: 1970-01-01 ( http://electronichealth.se/identifier/personnummer#19700101-1234)</a></p><blockquote><p><b>participant</b></p><p><b>individual</b>: patient</p></blockquote><blockquote><p><b>participant</b></p><p><b>type</b>: <span title="Koder:{http://terminology.hl7.org/CodeSystem/v3-ParticipationType PART}">Participation</span></p><p><b>individual</b>: <a href="Bundle-exempel-journalhandling.html#urn-uuid-00000000-0000-4000-8000-000000000009">RelatedPerson: relationship = vårdnadshavare</a></p></blockquote></div>
        </text>
        <status value="finished"/>
        <class>
          <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
          <code value="AMB"/>
        </class>
        <type>
          <coding>
            <system value="https://fhir.aiidera.se/CodeSystem/aiidera-kontakttyp-koder"/>
            <code value="mottagningsbesok"/>
          </coding>
          <text value="Mottagningsbesök"/>
        </type>
        <subject>
          <reference value="urn:uuid:00000000-0000-4000-8000-000000000002"/>
        </subject>
        <participant>
          <individual>
            <extension url="http://hl7.org/fhir/StructureDefinition/alternate-reference">
              <valueReference>
                <reference value="urn:uuid:00000000-0000-4000-8000-000000000002"/>
              </valueReference>
            </extension>
            <display value="patient"/>
          </individual>
        </participant>
        <participant>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v3-ParticipationType"/>
              <code value="PART"/>
            </coding>
          </type>
          <individual>
            <reference value="urn:uuid:00000000-0000-4000-8000-000000000009"/>
          </individual>
        </participant>
      </Encounter>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:00000000-0000-4000-8000-000000000009"/>
    <resource>
      <RelatedPerson>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="RelatedPerson_null"> </a><p class="res-header-id"><b>Genererad berättande text: RelatedPerson </b></p><p><b>patient</b>: <a href="Bundle-exempel-journalhandling.html#urn-uuid-00000000-0000-4000-8000-000000000002">Signe Syntetisk  (inget angivet kön), Födelsedatum: 1970-01-01 ( http://electronichealth.se/identifier/personnummer#19700101-1234)</a></p><p><b>relationship</b>: <span title="Koder:{http://snomed.info/sct 60101000052104}">vårdnadshavare</span></p></div>
        </text>
        <patient>
          <reference value="urn:uuid:00000000-0000-4000-8000-000000000002"/>
        </patient>
        <relationship>
          <coding>
            <system value="http://snomed.info/sct"/>
            <version value="http://snomed.info/sct/45991000052106/version/20260531"/>
            <code value="60101000052104"/>
            <display value="vårdnadshavare"/>
          </coding>
        </relationship>
      </RelatedPerson>
    </resource>
  </entry>
</Bundle>