{
  "resourceType" : "Bundle",
  "id" : "exempel-journalhandling",
  "meta" : {
    "profile" : ["https://fhir.aiidera.se/StructureDefinition/AiideraJournalDocument|0.22.0"]
  },
  "identifier" : {
    "system" : "https://id.aiidera.se/document",
    "value" : "00000000-0000-4000-8000-000000000008"
  },
  "type" : "document",
  "timestamp" : "2026-08-09T10:00:00+02:00",
  "entry" : [{
    "fullUrl" : "urn:uuid:00000000-0000-4000-8000-000000000001",
    "resource" : {
      "resourceType" : "Composition",
      "meta" : {
        "profile" : ["https://fhir.aiidera.se/StructureDefinition/AiideraJournalComposition|0.22.0"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<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>"
      },
      "identifier" : {
        "system" : "https://id.aiidera.se/document",
        "value" : "00000000-0000-4000-8000-000000000008"
      },
      "status" : "final",
      "type" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "version" : "2.82",
          "code" : "34109-9"
        }]
      },
      "category" : [{
        "text" : "Mottagningsbesök"
      }],
      "subject" : {
        "reference" : "urn:uuid:00000000-0000-4000-8000-000000000002"
      },
      "encounter" : {
        "reference" : "urn:uuid:00000000-0000-4000-8000-000000000004"
      },
      "date" : "2026-08-09T10:00:00+02:00",
      "author" : [{
        "reference" : "urn:uuid:00000000-0000-4000-8000-000000000005"
      }],
      "title" : "Mottagningsbesök",
      "section" : [{
        "title" : "Status",
        "code" : {
          "coding" : [{
            "system" : "http://snomed.info/sct",
            "version" : "http://snomed.info/sct/45991000052106/version/20260531",
            "code" : "425044008"
          }],
          "text" : "Status"
        },
        "text" : {
          "status" : "additional",
          "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">Patienten mår väl. Blodtrycket kontrollerat och stabilt sedan förra besöket.</div>"
        }
      },
      {
        "title" : "Deltagare",
        "code" : {
          "text" : "Deltagare"
        },
        "text" : {
          "status" : "additional",
          "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">patient<br/>vårdnadshavare</div>"
        },
        "entry" : [{
          "reference" : "urn:uuid:00000000-0000-4000-8000-000000000002"
        },
        {
          "reference" : "urn:uuid:00000000-0000-4000-8000-000000000009"
        }]
      }]
    }
  },
  {
    "fullUrl" : "urn:uuid:00000000-0000-4000-8000-000000000002",
    "resource" : {
      "resourceType" : "Patient",
      "text" : {
        "status" : "generated",
        "div" : "<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>"
      },
      "identifier" : [{
        "system" : "http://electronichealth.se/identifier/personnummer",
        "value" : "19700101-1234"
      }],
      "name" : [{
        "family" : "Syntetisk",
        "given" : ["Signe"]
      }],
      "birthDate" : "1970-01-01"
    }
  },
  {
    "fullUrl" : "urn:uuid:00000000-0000-4000-8000-000000000003",
    "resource" : {
      "resourceType" : "Practitioner",
      "text" : {
        "status" : "generated",
        "div" : "<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>"
      },
      "identifier" : [{
        "system" : "urn:oid:1.2.752.29.4.19",
        "value" : "stubbe-1A2B"
      }],
      "name" : [{
        "family" : "Läkare",
        "given" : ["Lena"]
      }]
    }
  },
  {
    "fullUrl" : "urn:uuid:00000000-0000-4000-8000-000000000005",
    "resource" : {
      "resourceType" : "PractitionerRole",
      "text" : {
        "status" : "generated",
        "div" : "<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>"
      },
      "identifier" : [{
        "system" : "https://fhir.aiidera.se/stubbe/hsa",
        "value" : "stubbe-U7Q2"
      }],
      "practitioner" : {
        "reference" : "urn:uuid:00000000-0000-4000-8000-000000000003"
      },
      "organization" : {
        "reference" : "urn:uuid:00000000-0000-4000-8000-000000000006"
      },
      "code" : [{
        "coding" : [{
          "system" : "https://fhir.aiidera.se/CodeSystem/aiidera-yrkeskategori",
          "code" : "lakare",
          "display" : "Läkare"
        }]
      }]
    }
  },
  {
    "fullUrl" : "urn:uuid:00000000-0000-4000-8000-000000000006",
    "resource" : {
      "resourceType" : "Organization",
      "text" : {
        "status" : "generated",
        "div" : "<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>"
      },
      "identifier" : [{
        "system" : "urn:oid:1.2.752.29.4.19",
        "value" : "SE2321000016-12XZ"
      }],
      "name" : "Vibblaby Husläkarmottagning",
      "partOf" : {
        "reference" : "urn:uuid:00000000-0000-4000-8000-000000000007"
      }
    }
  },
  {
    "fullUrl" : "urn:uuid:00000000-0000-4000-8000-000000000007",
    "resource" : {
      "resourceType" : "Organization",
      "text" : {
        "status" : "generated",
        "div" : "<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>"
      },
      "identifier" : [{
        "system" : "urn:oid:1.2.752.29.4.19",
        "value" : "SE2321000016-FKJ1"
      },
      {
        "system" : "urn:oid:2.5.4.97",
        "value" : "5565792115"
      }],
      "name" : "Vibblaby Husläkarmottagning AB"
    }
  },
  {
    "fullUrl" : "urn:uuid:00000000-0000-4000-8000-000000000004",
    "resource" : {
      "resourceType" : "Encounter",
      "meta" : {
        "profile" : ["https://fhir.aiidera.se/StructureDefinition/AiideraVardkontakt|0.22.0"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<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>"
      },
      "status" : "finished",
      "class" : {
        "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code" : "AMB"
      },
      "type" : [{
        "coding" : [{
          "system" : "https://fhir.aiidera.se/CodeSystem/aiidera-kontakttyp-koder",
          "code" : "mottagningsbesok"
        }],
        "text" : "Mottagningsbesök"
      }],
      "subject" : {
        "reference" : "urn:uuid:00000000-0000-4000-8000-000000000002"
      },
      "participant" : [{
        "individual" : {
          "extension" : [{
            "url" : "http://hl7.org/fhir/StructureDefinition/alternate-reference",
            "valueReference" : {
              "reference" : "urn:uuid:00000000-0000-4000-8000-000000000002"
            }
          }],
          "display" : "patient"
        }
      },
      {
        "type" : [{
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
            "code" : "PART"
          }]
        }],
        "individual" : {
          "reference" : "urn:uuid:00000000-0000-4000-8000-000000000009"
        }
      }]
    }
  },
  {
    "fullUrl" : "urn:uuid:00000000-0000-4000-8000-000000000009",
    "resource" : {
      "resourceType" : "RelatedPerson",
      "text" : {
        "status" : "generated",
        "div" : "<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>"
      },
      "patient" : {
        "reference" : "urn:uuid:00000000-0000-4000-8000-000000000002"
      },
      "relationship" : [{
        "coding" : [{
          "system" : "http://snomed.info/sct",
          "version" : "http://snomed.info/sct/45991000052106/version/20260531",
          "code" : "60101000052104",
          "display" : "vårdnadshavare"
        }]
      }]
    }
  }]
}