<Bundle xmlns="http://hl7.org/fhir">
  <id value="example-digidot-device-implant-placement" />
  <type value="collection" />
  <entry>
    <fullUrl value="https://novari.no/fhir/digidot/example/Patient/pas-12678606446" />
    <resource>
      <Patient>
        <id value="pas-12678606446" />
        <meta>
          <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-Patient" />
        </meta>
        <identifier>
          <system value="https://novari.no/fhir/digidot/sid/test-patient-id" />
          <value value="pas-12678606446" />
        </identifier>
        <name>
          <family value="Testpasient" />
          <given value="Implantat" />
        </name>
        <gender value="female" />
        <birthDate value="1986-07-15" />
      </Patient>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://novari.no/fhir/digidot/example/Device/device-implant-26" />
    <resource>
      <Device>
        <id value="device-implant-26" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Device-no" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">Dental implant associated with tooth 26. Test example only.</div>
        </text>
        <identifier>
          <system value="https://novari.no/fhir/digidot/sid/test-device-id" />
          <value value="implant-26-2026-001" />
        </identifier>
        <status value="active" />
        <manufacturer value="Example Dental Devices" />
        <lotNumber value="LOT-2026-05" />
        <serialNumber value="SN-26-001" />
        <deviceName>
          <name value="Dental implant 26" />
          <type value="user-friendly-name" />
        </deviceName>
        <type>
          <coding>
            <system value="https://novari.no/fhir/digidot/CodeSystem/digidot-device-type" />
            <code value="dental-implant" />
            <display value="Dental implant" />
          </coding>
          <text value="Dental implant" />
        </type>
        <patient>
          <reference value="Patient/pas-12678606446" />
        </patient>
        <note>
          <text value="Test example only. Final dental implant terminology should be mapped to SNOMED CT when agreed." />
        </note>
      </Device>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://novari.no/fhir/digidot/example/Device/device-surgical-guide-26" />
    <resource>
      <Device>
        <id value="device-surgical-guide-26" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Device-no" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">Patient-specific surgical guide used during implant placement at tooth 26. Test example only.</div>
        </text>
        <identifier>
          <system value="https://novari.no/fhir/digidot/sid/test-device-id" />
          <value value="surgical-guide-26-2026-001" />
        </identifier>
        <status value="active" />
        <manufacturer value="Example Dental Devices" />
        <deviceName>
          <name value="Patient-specific surgical guide for tooth 26" />
          <type value="user-friendly-name" />
        </deviceName>
        <type>
          <coding>
            <system value="https://novari.no/fhir/digidot/CodeSystem/digidot-device-type" />
            <code value="dental-device-other" />
            <display value="Other dental device" />
          </coding>
          <text value="Patient-specific surgical guide" />
        </type>
        <patient>
          <reference value="Patient/pas-12678606446" />
        </patient>
        <note>
          <text value="Test example only. The device is used during the procedure but is not the device manipulated by it." />
        </note>
      </Device>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://novari.no/fhir/digidot/example/Encounter/enc-implant-placement-2026-05-20" />
    <resource>
      <Encounter>
        <id value="enc-implant-placement-2026-05-20" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no" />
        </meta>
        <identifier>
          <system value="https://novari.no/fhir/digidot/NamingSystem/encounter-id" />
          <value value="enc-implant-placement-2026-05-20" />
        </identifier>
        <status value="finished" />
        <class>
          <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode" />
          <code value="AMB" />
        </class>
        <subject>
          <reference value="Patient/pas-12678606446" />
        </subject>
        <participant>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v3-ParticipationType" />
              <code value="PPRF" />
            </coding>
          </type>
          <individual>
            <reference value="urn:uuid:6d47d85c-45d2-552b-8c20-304ef398ff81" />
            <type value="Practitioner" />
          </individual>
        </participant>
        <period>
          <start value="2026-05-20T09:00:00+02:00" />
          <end value="2026-05-20T10:00:00+02:00" />
        </period>
        <location>
          <location>
            <reference value="Location/loc-demo" />
          </location>
        </location>
        <serviceProvider>
          <reference value="Organization/org-demo" />
        </serviceProvider>
      </Encounter>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://novari.no/fhir/digidot/example/Procedure/procedure-implant-placement-26" />
    <resource>
      <Procedure>
        <id value="procedure-implant-placement-26" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Procedure-no" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">Completed dental implant placement at tooth 26. The implant is the focal device; a patient-specific surgical guide is recorded as a device used during the procedure.</div>
        </text>
        <status value="completed" />
        <category>
          <coding>
            <system value="https://novari.no/fhir/digidot/CodeSystem/digidot-procedure-category" />
            <code value="dental-procedure" />
            <display value="Dental procedure" />
          </coding>
          <text value="Dental procedure" />
        </category>
        <code>
          <coding id="SCTpre">
            <system value="http://snomed.info/sct" />
            <version value="http://snomed.info/sct/51000202101/version/20260715" />
            <code value="1156981009" />
            <display value="Implantation of dental endosseous implant" />
          </coding>
          <coding id="SCTpost">
            <system value="http://snomed.info/sct" />
            <version value="http://snomed.info/sct/51000202101/version/20260715" />
            <code value="1156981009:{363704007=865988009}" />
          </coding>
          <text value="Dental implant placement at tooth 26" />
        </code>
        <subject>
          <reference value="Patient/pas-12678606446" />
        </subject>
        <encounter>
          <reference value="Encounter/enc-implant-placement-2026-05-20" />
        </encounter>
        <performedDateTime value="2026-05-20" />
        <bodySite>
          <extension url="https://novari.no/fhir/digidot/StructureDefinition/digidot-ehds-body-structure">
            <extension url="location">
              <valueCodeableConcept>
                <coding>
                  <system value="http://snomed.info/sct" />
                  <version value="http://snomed.info/sct/51000202101/version/20260715" />
                  <code value="865988009" />
                  <display value="Structure of permanent maxillary left first molar tooth" />
                </coding>
                <text value="ISO 26" />
              </valueCodeableConcept>
            </extension>
          </extension>
        </bodySite>
        <focalDevice>
          <manipulated>
            <reference value="https://novari.no/fhir/digidot/example/Device/device-implant-26" />
          </manipulated>
        </focalDevice>
        <usedReference>
          <reference value="https://novari.no/fhir/digidot/example/Device/device-surgical-guide-26" />
        </usedReference>
      </Procedure>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:6d47d85c-45d2-552b-8c20-304ef398ff81" />
    <resource>
      <Practitioner>
        <id value="demo-practitioner-e4985c27da0e" />
        <meta>
          <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner" />
        </meta>
        <identifier>
          <system value="urn:oid:2.16.578.1.12.4.1.4.4" />
          <value value="9144889" />
        </identifier>
        <active value="true" />
      </Practitioner>
    </resource>
  </entry>
</Bundle>