<Bundle xmlns="http://hl7.org/fhir">
  <id value="example-digidot-two-visit-care" />
  <type value="collection" />
  <entry>
    <fullUrl value="https://example.org/fhir/Patient/planning-patient" />
    <resource>
      <Patient>
        <id value="planning-patient" />
        <meta>
          <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-Patient" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>Jonas Moen, born 9 January 2010. Synthetic test patient from NHN SyntPop, supplied for this example.</p>
          </div>
        </text>
        <identifier>
          <system value="urn:oid:2.16.578.1.12.4.1.4.1" />
          <value value="09661078143" />
        </identifier>
        <identifier>
          <system value="urn:digidot:example:planning:patient" />
          <value value="planning-patient" />
        </identifier>
        <active value="true" />
        <name>
          <family value="Moen" />
          <given value="Jonas" />
        </name>
        <birthDate value="2010-01-09" />
      </Patient>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/Practitioner/planning-practitioner" />
    <resource>
      <Practitioner>
        <id value="planning-practitioner" />
        <meta>
          <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>Robin Taylor, dentist at Central Dental Clinic in the public dental service of Fylkeskommune.</p>
          </div>
        </text>
        <identifier>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
              <code value="PRN" />
              <display value="Provider number" />
            </coding>
            <text value="HPR number (synthetic example)" />
          </type>
          <system value="urn:oid:2.16.578.1.12.4.1.4.4" />
          <value value="1234567" />
        </identifier>
        <identifier>
          <system value="urn:digidot:example:planning:practitioner" />
          <value value="planning-practitioner" />
        </identifier>
        <active value="true" />
        <name>
          <family value="Taylor" />
          <given value="Robin" />
        </name>
        <qualification>
          <code>
            <text value="Dentist" />
          </code>
        </qualification>
      </Practitioner>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/PractitionerRole/planning-practitioner-role" />
    <resource>
      <PractitionerRole>
        <id value="planning-practitioner-role" />
        <meta>
          <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-PractitionerRole" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>Robin Taylor provides dental care for Fylkeskommune at Central Dental Clinic from 1 January 2026. This optional assignment is reused by both bookings and visits. Clinical findings, procedures and journal notes still identify Robin directly through Practitioner.</p>
          </div>
        </text>
        <identifier>
          <system value="urn:digidot:example:planning:practitioner-role" />
          <value value="planning-practitioner-role" />
        </identifier>
        <active value="true" />
        <period>
          <start value="2026-01-01" />
        </period>
        <practitioner>
          <reference value="Practitioner/planning-practitioner" />
          <type value="Practitioner" />
        </practitioner>
        <organization>
          <reference value="Organization/planning-county" />
          <type value="Organization" />
        </organization>
        <code>
          <text value="Dentist in the county public dental service" />
        </code>
        <location>
          <reference value="Location/planning-location" />
          <type value="Location" />
        </location>
      </PractitionerRole>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/Organization/planning-county" />
    <resource>
      <Organization>
        <id value="planning-county" />
        <meta>
          <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-Organization" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>County municipality responsible for the public dental service.</p>
          </div>
        </text>
        <identifier>
          <system value="urn:oid:2.16.578.1.12.4.1.4.101" />
          <value value="999999999" />
        </identifier>
        <identifier>
          <system value="urn:digidot:example:planning:organization" />
          <value value="planning-county" />
        </identifier>
        <active value="true" />
        <type>
          <text value="County municipality" />
        </type>
        <name value="Fylkeskommune" />
      </Organization>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/Location/planning-location" />
    <resource>
      <Location>
        <id value="planning-location" />
        <meta>
          <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-Location" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>Central Dental Clinic, the physical site for both visits. The street address is fictional.</p>
          </div>
        </text>
        <identifier>
          <system value="urn:digidot:example:planning:location" />
          <value value="planning-location" />
        </identifier>
        <status value="active" />
        <name value="Central Dental Clinic" />
        <description value="Physical dental clinic site used for both visits. The street address is fictional." />
        <mode value="instance" />
        <address>
          <use value="work" />
          <type value="physical" />
          <text value="Eksempelveien 12, 7010 TRONDHEIM, Norway" />
          <line value="Eksempelveien 12" />
          <city value="TRONDHEIM" />
          <postalCode value="7010" />
          <country value="NO" />
        </address>
        <managingOrganization>
          <reference value="Organization/planning-county" />
          <type value="Organization" />
        </managingOrganization>
      </Location>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/EpisodeOfCare/general-care" />
    <resource>
      <EpisodeOfCare>
        <id value="general-care" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-EpisodeOfCare-no|0.6.5" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>General dental care. Responsibility started 1 September 2026 and remains active.</p>
          </div>
        </text>
        <identifier>
          <system value="urn:digidot:example:planning:episodeofcare" />
          <value value="general-care" />
        </identifier>
        <status value="active" />
        <type>
          <coding>
            <system value="https://novari.no/fhir/digidot/CodeSystem/digidot-episode-of-care-type" />
            <code value="general-dental-care" />
          </coding>
        </type>
        <patient>
          <reference value="Patient/planning-patient" />
          <type value="Patient" />
        </patient>
        <managingOrganization>
          <reference value="Organization/planning-county" />
          <type value="Organization" />
        </managingOrganization>
        <period>
          <start value="2026-09-01" />
        </period>
        <careManager>
          <reference value="Practitioner/planning-practitioner" />
          <type value="Practitioner" />
        </careManager>
      </EpisodeOfCare>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/ServiceRequest/annual-recall" />
    <resource>
      <ServiceRequest>
        <id value="annual-recall" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-ServiceRequest-no|0.6.8" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>Annual dental recall. First due 16 September 2026; interval 12 calendar months. The ongoing plan remains active after this examination.</p>
          </div>
        </text>
        <identifier>
          <system value="urn:digidot:example:planning:servicerequest" />
          <value value="annual-recall" />
        </identifier>
        <status value="active" />
        <intent value="plan" />
        <category>
          <coding>
            <system value="https://novari.no/fhir/digidot/CodeSystem/digidot-service-request-category" />
            <code value="dental-recall" />
          </coding>
        </category>
        <subject>
          <reference value="Patient/planning-patient" />
          <type value="Patient" />
        </subject>
        <occurrenceTiming>
          <repeat>
            <boundsPeriod>
              <start value="2026-09-16" />
            </boundsPeriod>
            <period value="12" />
            <periodUnit value="mo" />
          </repeat>
        </occurrenceTiming>
        <authoredOn value="2026-09-01" />
        <requester>
          <reference value="Practitioner/planning-practitioner" />
          <type value="Practitioner" />
        </requester>
        <performer>
          <reference value="Organization/planning-county" />
          <type value="Organization" />
        </performer>
        <supportingInfo>
          <reference value="EpisodeOfCare/general-care" />
          <type value="EpisodeOfCare" />
        </supportingInfo>
      </ServiceRequest>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/Appointment/recall-booking" />
    <resource>
      <Appointment>
        <id value="recall-booking" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Appointment-no|0.6.6" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>Annual dental examination, 16 September 2026, 09:00–09:30. Robin Taylor, Central Dental Clinic.</p>
          </div>
        </text>
        <identifier>
          <system value="urn:digidot:example:planning:appointment" />
          <value value="recall-booking" />
        </identifier>
        <status value="fulfilled" />
        <serviceCategory>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/service-category" />
            <code value="10" />
            <display value="Dental" />
          </coding>
        </serviceCategory>
        <appointmentType>
          <text value="Routine booking" />
        </appointmentType>
        <description value="Annual dental examination" />
        <supportingInformation>
          <reference value="EpisodeOfCare/general-care" />
          <type value="EpisodeOfCare" />
        </supportingInformation>
        <start value="2026-09-16T09:00:00+02:00" />
        <end value="2026-09-16T09:30:00+02:00" />
        <minutesDuration value="30" />
        <comment value="Allow time to confirm the next appointment at reception." />
        <basedOn>
          <reference value="ServiceRequest/annual-recall" />
          <type value="ServiceRequest" />
        </basedOn>
        <participant>
          <actor>
            <reference value="Patient/planning-patient" />
            <type value="Patient" />
          </actor>
          <status value="accepted" />
        </participant>
        <participant>
          <actor>
            <reference value="PractitionerRole/planning-practitioner-role" />
            <type value="PractitionerRole" />
          </actor>
          <status value="accepted" />
        </participant>
        <participant>
          <actor>
            <reference value="Location/planning-location" />
            <type value="Location" />
          </actor>
          <status value="accepted" />
        </participant>
      </Appointment>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/Encounter/recall-contact" />
    <resource>
      <Encounter>
        <id value="recall-contact" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no|0.6.9" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>Recall examination. Caries identified on the occlusal surface of tooth 46. Periodontal pocket depth at tooth 25 was 4 mm at the distal surface. Probing at tooth 15 was deferred because of local discomfort.</p>
          </div>
        </text>
        <extension url="https://novari.no/fhir/digidot/StructureDefinition/digidot-Helsegruppe-no">
          <valueCodeableConcept>
            <coding>
              <system value="https://novari.no/fhir/digidot/CodeSystem/digidot-helsegruppe" />
              <version value="0.2.0" />
              <code value="A2" />
              <display value="Barn og unge 3–18 år" />
            </coding>
          </valueCodeableConcept>
        </extension>
        <identifier>
          <system value="urn:digidot:example:planning:encounter" />
          <value value="recall-contact" />
        </identifier>
        <status value="finished" />
        <class>
          <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode" />
          <code value="AMB" />
        </class>
        <subject>
          <reference value="Patient/planning-patient" />
          <type value="Patient" />
        </subject>
        <episodeOfCare>
          <reference value="EpisodeOfCare/general-care" />
          <type value="EpisodeOfCare" />
        </episodeOfCare>
        <basedOn>
          <reference value="ServiceRequest/annual-recall" />
          <type value="ServiceRequest" />
        </basedOn>
        <participant>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v3-ParticipationType" />
              <code value="PPRF" />
            </coding>
          </type>
          <individual>
            <reference value="PractitionerRole/planning-practitioner-role" />
            <type value="PractitionerRole" />
          </individual>
        </participant>
        <appointment>
          <reference value="Appointment/recall-booking" />
          <type value="Appointment" />
        </appointment>
        <period>
          <start value="2026-09-16T09:03:00+02:00" />
          <end value="2026-09-16T09:28:00+02:00" />
        </period>
        <location>
          <location>
            <reference value="Location/planning-location" />
            <type value="Location" />
          </location>
        </location>
        <serviceProvider>
          <reference value="Organization/planning-county" />
          <type value="Organization" />
        </serviceProvider>
      </Encounter>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/Composition/examination-note" />
    <resource>
      <Composition>
        <id value="examination-note" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-DentalContactNote-no|0.4.8" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>Journal note - recall examination for Jonas Moen, 16 September 2026. Author: Robin Taylor. Note status: final.</p>
          </div>
        </text>
        <identifier>
          <system value="urn:digidot:example:planning:dental-contact-note" />
          <value value="examination-note" />
        </identifier>
        <status value="final" />
        <type>
          <coding>
            <system value="urn:oid:2.16.578.1.12.4.1.1.9602" />
            <code value="B02-2" />
            <display value="Journalnotat" />
          </coding>
        </type>
        <subject>
          <reference value="Patient/planning-patient" />
          <type value="Patient" />
        </subject>
        <encounter>
          <reference value="Encounter/recall-contact" />
          <type value="Encounter" />
        </encounter>
        <date value="2026-09-16T09:35:00+02:00" />
        <author>
          <reference value="Practitioner/planning-practitioner" />
          <type value="Practitioner" />
          <display value="Robin Taylor" />
        </author>
        <title value="Journal note - recall examination" />
        <custodian>
          <reference value="Organization/planning-county" />
          <type value="Organization" />
        </custodian>
        <section>
          <title value="Journal note" />
          <text>
            <status value="additional" />
            <div xmlns="http://www.w3.org/1999/xhtml">
              <p>Routine recall examination completed on 16 September 2026. Caries was identified on the occlusal surface of tooth 46. Periodontal probing at tooth 25, distal surface, gave a pocket depth of 4 mm. Probing at tooth 15 was deferred because of local discomfort; no result was recorded.</p>
              <p>A composite restoration of tooth 46 was requested, and the treatment visit was booked for 23 September 2026. Deferred probing at tooth 15 is planned for that visit. The annual recall plan remains active.</p>
            </div>
          </text>
          <entry>
            <reference value="Condition/caries-finding" />
            <type value="Condition" />
          </entry>
          <entry>
            <reference value="Observation/example-digidot-observation-periodontal-pocket-depth" />
            <type value="Observation" />
          </entry>
          <entry>
            <reference value="Observation/example-digidot-observation-result-unavailable" />
            <type value="Observation" />
          </entry>
          <entry>
            <reference value="ServiceRequest/restoration-request" />
            <type value="ServiceRequest" />
          </entry>
        </section>
      </Composition>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/Condition/caries-finding" />
    <resource>
      <Condition>
        <id value="caries-finding" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Condition-no|0.6.8" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>Dental caries on the occlusal surface of tooth 46, identified at the recall examination and treated with a composite restoration at the second visit. The lesion is now recorded as resolved.</p>
          </div>
        </text>
        <clinicalStatus>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/condition-clinical" />
            <code value="resolved" />
          </coding>
        </clinicalStatus>
        <verificationStatus>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/condition-ver-status" />
            <code value="confirmed" />
          </coding>
        </verificationStatus>
        <category>
          <coding>
            <system value="https://novari.no/fhir/digidot/CodeSystem/digidot-condition-category" />
            <code value="dental-finding" />
          </coding>
        </category>
        <code>
          <coding id="SCTextended">
            <system value="http://snomed.info/sct" />
            <version value="http://snomed.info/sct/51000202101/version/20260715" />
            <code value="80967001:{363698007=866005003}{363698007=83473006}" />
            <display value="Dental caries on the occlusal surface of tooth 46" />
          </coding>
          <text value="Dental caries, tooth 46, occlusal surface" />
        </code>
        <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="866005003" />
                  <display value="Structure of permanent mandibular right first molar tooth" />
                </coding>
                <text value="Tooth 46 (ISO 3950)" />
              </valueCodeableConcept>
            </extension>
            <extension url="locationQualifier">
              <valueCodeableConcept>
                <coding>
                  <system value="http://snomed.info/sct" />
                  <version value="http://snomed.info/sct/51000202101/version/20260715" />
                  <code value="710098004" />
                  <display value="Occlusal (qualifier value)" />
                </coding>
                <text value="Occlusal surface" />
              </valueCodeableConcept>
            </extension>
          </extension>
        </bodySite>
        <subject>
          <reference value="Patient/planning-patient" />
          <type value="Patient" />
        </subject>
        <encounter>
          <reference value="Encounter/recall-contact" />
          <type value="Encounter" />
        </encounter>
        <onsetDateTime value="2026-09-16" />
        <abatementDateTime value="2026-09-23" />
        <recorder>
          <reference value="Practitioner/planning-practitioner" />
          <type value="Practitioner" />
        </recorder>
      </Condition>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/ServiceRequest/restoration-request" />
    <resource>
      <ServiceRequest>
        <id value="restoration-request" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-ServiceRequest-no|0.6.8" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>Composite restoration requested after caries was found at the recall examination. Tooth 46, occlusal surface. The request was fulfilled at the second visit.</p>
          </div>
        </text>
        <status value="completed" />
        <intent value="order" />
        <category>
          <coding>
            <system value="https://novari.no/fhir/digidot/CodeSystem/digidot-service-request-category" />
            <code value="dental-treatment" />
          </coding>
        </category>
        <code>
          <coding id="SCTextended">
            <system value="http://snomed.info/sct" />
            <version value="http://snomed.info/sct/51000202101/version/20260715" />
            <code value="129125009:{408730004=397943006,408731000=410512000,408732007=410604004,363589002=(234789004:{363704007=866005003}{363704007=83473006})}" />
            <display value="Planned composite restoration of tooth 46, occlusal surface" />
          </coding>
          <text value="Planned composite restoration, tooth 46, occlusal surface" />
        </code>
        <subject>
          <reference value="Patient/planning-patient" />
          <type value="Patient" />
        </subject>
        <encounter>
          <reference value="Encounter/recall-contact" />
          <type value="Encounter" />
        </encounter>
        <occurrenceDateTime value="2026-09-23" />
        <authoredOn value="2026-09-16" />
        <requester>
          <reference value="Practitioner/planning-practitioner" />
          <type value="Practitioner" />
        </requester>
        <performer>
          <reference value="Organization/planning-county" />
          <type value="Organization" />
        </performer>
        <reasonReference>
          <reference value="Condition/caries-finding" />
          <type value="Condition" />
        </reasonReference>
        <supportingInfo>
          <reference value="EpisodeOfCare/general-care" />
          <type value="EpisodeOfCare" />
        </supportingInfo>
        <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="866005003" />
                  <display value="Structure of permanent mandibular right first molar tooth" />
                </coding>
                <text value="Tooth 46 (ISO 3950)" />
              </valueCodeableConcept>
            </extension>
            <extension url="locationQualifier">
              <valueCodeableConcept>
                <coding>
                  <system value="http://snomed.info/sct" />
                  <version value="http://snomed.info/sct/51000202101/version/20260715" />
                  <code value="710098004" />
                  <display value="Occlusal (qualifier value)" />
                </coding>
                <text value="Occlusal surface" />
              </valueCodeableConcept>
            </extension>
          </extension>
        </bodySite>
      </ServiceRequest>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/Appointment/restoration-booking" />
    <resource>
      <Appointment>
        <id value="restoration-booking" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Appointment-no|0.6.6" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>Booked visit for composite restoration of tooth 46 and completion of periodontal probing. 23 September, 09:00–09:40, Central Dental Clinic.</p>
          </div>
        </text>
        <status value="fulfilled" />
        <serviceCategory>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/service-category" />
            <code value="10" />
            <display value="Dental" />
          </coding>
        </serviceCategory>
        <description value="Composite restoration, tooth 46, and completion of periodontal probing" />
        <supportingInformation>
          <reference value="EpisodeOfCare/general-care" />
          <type value="EpisodeOfCare" />
        </supportingInformation>
        <start value="2026-09-23T09:00:00+02:00" />
        <end value="2026-09-23T09:40:00+02:00" />
        <minutesDuration value="40" />
        <basedOn>
          <reference value="ServiceRequest/restoration-request" />
          <type value="ServiceRequest" />
        </basedOn>
        <participant>
          <actor>
            <reference value="Patient/planning-patient" />
            <type value="Patient" />
          </actor>
          <status value="accepted" />
        </participant>
        <participant>
          <actor>
            <reference value="PractitionerRole/planning-practitioner-role" />
            <type value="PractitionerRole" />
          </actor>
          <status value="accepted" />
        </participant>
        <participant>
          <actor>
            <reference value="Location/planning-location" />
            <type value="Location" />
          </actor>
          <status value="accepted" />
        </participant>
      </Appointment>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/Encounter/restoration-contact" />
    <resource>
      <Encounter>
        <id value="restoration-contact" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no|0.6.9" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>Composite restoration of tooth 46 completed. Deferred probing at tooth 15 completed with a pocket depth of 3 mm. Both visits belong to the same ongoing care responsibility.</p>
          </div>
        </text>
        <extension url="https://novari.no/fhir/digidot/StructureDefinition/digidot-Helsegruppe-no">
          <valueCodeableConcept>
            <coding>
              <system value="https://novari.no/fhir/digidot/CodeSystem/digidot-helsegruppe" />
              <version value="0.2.0" />
              <code value="A2" />
              <display value="Barn og unge 3–18 år" />
            </coding>
          </valueCodeableConcept>
        </extension>
        <status value="finished" />
        <class>
          <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode" />
          <code value="AMB" />
        </class>
        <subject>
          <reference value="Patient/planning-patient" />
          <type value="Patient" />
        </subject>
        <episodeOfCare>
          <reference value="EpisodeOfCare/general-care" />
          <type value="EpisodeOfCare" />
        </episodeOfCare>
        <basedOn>
          <reference value="ServiceRequest/restoration-request" />
          <type value="ServiceRequest" />
        </basedOn>
        <participant>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v3-ParticipationType" />
              <code value="PPRF" />
            </coding>
          </type>
          <individual>
            <reference value="PractitionerRole/planning-practitioner-role" />
            <type value="PractitionerRole" />
          </individual>
        </participant>
        <appointment>
          <reference value="Appointment/restoration-booking" />
          <type value="Appointment" />
        </appointment>
        <period>
          <start value="2026-09-23T09:02:00+02:00" />
          <end value="2026-09-23T09:36:00+02:00" />
        </period>
        <reasonReference>
          <reference value="Condition/caries-finding" />
          <type value="Condition" />
        </reasonReference>
        <location>
          <location>
            <reference value="Location/planning-location" />
            <type value="Location" />
          </location>
        </location>
        <serviceProvider>
          <reference value="Organization/planning-county" />
          <type value="Organization" />
        </serviceProvider>
      </Encounter>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/Composition/treatment-note" />
    <resource>
      <Composition>
        <id value="treatment-note" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-DentalContactNote-no|0.4.8" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>Journal note - restoration and follow-up for Jonas Moen, 23 September 2026. Author: Robin Taylor. Note status: final.</p>
          </div>
        </text>
        <identifier>
          <system value="urn:digidot:example:planning:dental-contact-note" />
          <value value="treatment-note" />
        </identifier>
        <status value="final" />
        <type>
          <coding>
            <system value="urn:oid:2.16.578.1.12.4.1.1.9602" />
            <code value="B02-2" />
            <display value="Journalnotat" />
          </coding>
        </type>
        <subject>
          <reference value="Patient/planning-patient" />
          <type value="Patient" />
        </subject>
        <encounter>
          <reference value="Encounter/restoration-contact" />
          <type value="Encounter" />
        </encounter>
        <date value="2026-09-23T09:45:00+02:00" />
        <author>
          <reference value="Practitioner/planning-practitioner" />
          <type value="Practitioner" />
          <display value="Robin Taylor" />
        </author>
        <title value="Journal note - restoration and follow-up" />
        <custodian>
          <reference value="Organization/planning-county" />
          <type value="Organization" />
        </custodian>
        <section>
          <title value="Journal note" />
          <text>
            <status value="additional" />
            <div xmlns="http://www.w3.org/1999/xhtml">
              <p>Composite restoration of the occlusal surface of tooth 46 was completed on 23 September 2026. The caries finding is now recorded as resolved, and the treatment request is completed.</p>
              <p>The deferred periodontal probing at tooth 15 was completed, with a pocket depth of 3 mm. The annual recall plan remains active after this treatment visit.</p>
            </div>
          </text>
          <entry>
            <reference value="Procedure/composite-restoration" />
            <type value="Procedure" />
          </entry>
          <entry>
            <reference value="Condition/caries-finding" />
            <type value="Condition" />
          </entry>
          <entry>
            <reference value="Observation/pocket-depth-15-follow-up" />
            <type value="Observation" />
          </entry>
          <entry>
            <reference value="ServiceRequest/restoration-request" />
            <type value="ServiceRequest" />
          </entry>
        </section>
      </Composition>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/Procedure/composite-restoration" />
    <resource>
      <Procedure>
        <id value="composite-restoration" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Procedure-no|0.6.10" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>Composite restoration completed on the occlusal surface of tooth 46. Recorded against the treatment request and the second clinical contact.</p>
          </div>
        </text>
        <basedOn>
          <reference value="ServiceRequest/restoration-request" />
          <type value="ServiceRequest" />
        </basedOn>
        <status value="completed" />
        <category>
          <coding>
            <system value="https://novari.no/fhir/digidot/CodeSystem/digidot-procedure-category" />
            <code value="dental-procedure" />
          </coding>
        </category>
        <code>
          <coding id="SCTextended">
            <system value="http://snomed.info/sct" />
            <version value="http://snomed.info/sct/51000202101/version/20260715" />
            <code value="234789004:{363704007=866005003}{363704007=83473006}" />
            <display value="Composite restoration of tooth 46, occlusal surface" />
          </coding>
          <text value="Composite restoration, tooth 46, occlusal surface" />
        </code>
        <subject>
          <reference value="Patient/planning-patient" />
          <type value="Patient" />
        </subject>
        <encounter>
          <reference value="Encounter/restoration-contact" />
          <type value="Encounter" />
        </encounter>
        <performedDateTime value="2026-09-23T09:20:00+02:00" />
        <recorder>
          <reference value="Practitioner/planning-practitioner" />
          <type value="Practitioner" />
        </recorder>
        <performer>
          <actor>
            <reference value="Practitioner/planning-practitioner" />
            <type value="Practitioner" />
          </actor>
        </performer>
        <reasonReference>
          <reference value="Condition/caries-finding" />
          <type value="Condition" />
        </reasonReference>
        <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="866005003" />
                  <display value="Structure of permanent mandibular right first molar tooth" />
                </coding>
                <text value="Tooth 46 (ISO 3950)" />
              </valueCodeableConcept>
            </extension>
            <extension url="locationQualifier">
              <valueCodeableConcept>
                <coding>
                  <system value="http://snomed.info/sct" />
                  <version value="http://snomed.info/sct/51000202101/version/20260715" />
                  <code value="710098004" />
                  <display value="Occlusal (qualifier value)" />
                </coding>
                <text value="Occlusal surface" />
              </valueCodeableConcept>
            </extension>
          </extension>
        </bodySite>
      </Procedure>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/Observation/example-digidot-observation-periodontal-pocket-depth" />
    <resource>
      <Observation>
        <id value="example-digidot-observation-periodontal-pocket-depth" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no|0.6.9" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>Periodontal pocket depth at tooth 25, distal surface: 4 mm, measured by periodontal probing during the recall examination.</p>
          </div>
        </text>
        <status value="final" />
        <category>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/observation-category" />
            <code value="exam" />
            <display value="Exam" />
          </coding>
        </category>
        <code>
          <coding id="SCTpre">
            <system value="http://snomed.info/sct" />
            <version value="http://snomed.info/sct/51000202101/version/20260715" />
            <code value="286546002" />
            <display value="Depth of periodontal pocket" />
          </coding>
          <coding id="SCTextended">
            <system value="http://snomed.info/sct" />
            <version value="http://snomed.info/sct/51000202101/version/20260715" />
            <code value="286546002:{704327008=(23226009+90933009)}" />
          </coding>
          <text value="Periodontal pocket depth, tooth 25, distal surface" />
        </code>
        <subject>
          <reference value="Patient/planning-patient" />
          <type value="Patient" />
        </subject>
        <encounter>
          <reference value="Encounter/recall-contact" />
          <type value="Encounter" />
        </encounter>
        <effectiveDateTime value="2026-09-16T09:15:00+02:00" />
        <performer>
          <reference value="Practitioner/planning-practitioner" />
          <type value="Practitioner" />
        </performer>
        <valueQuantity>
          <value value="4" />
          <unit value="mm" />
          <system value="http://unitsofmeasure.org" />
          <code value="mm" />
        </valueQuantity>
        <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="23226009" />
                  <display value="Structure of permanent maxillary left second premolar tooth" />
                </coding>
                <text value="Tooth 25 (ISO 3950)" />
              </valueCodeableConcept>
            </extension>
            <extension url="locationQualifier">
              <valueCodeableConcept>
                <coding>
                  <system value="http://snomed.info/sct" />
                  <version value="http://snomed.info/sct/51000202101/version/20260715" />
                  <code value="46053002" />
                  <display value="Distal (qualifier value)" />
                </coding>
              </valueCodeableConcept>
            </extension>
            <extension url="description">
              <valueString value="Distal surface of tooth 25" />
            </extension>
          </extension>
        </bodySite>
        <method>
          <coding>
            <system value="https://novari.no/fhir/digidot/CodeSystem/digidot-observation-method" />
            <code value="periodontal-probing" />
            <display value="Periodontal probing" />
          </coding>
        </method>
      </Observation>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/Observation/example-digidot-observation-result-unavailable" />
    <resource>
      <Observation>
        <id value="example-digidot-observation-result-unavailable" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no|0.6.9" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>No periodontal pocket depth result for tooth 15 at the recall examination. Probing was deferred because of local discomfort; no numeric result is recorded.</p>
          </div>
        </text>
        <status value="final" />
        <category>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/observation-category" />
            <code value="exam" />
            <display value="Exam" />
          </coding>
        </category>
        <code>
          <coding id="SCTpre">
            <system value="http://snomed.info/sct" />
            <version value="http://snomed.info/sct/51000202101/version/20260715" />
            <code value="286546002" />
            <display value="Depth of periodontal pocket" />
          </coding>
          <coding id="SCTextended">
            <system value="http://snomed.info/sct" />
            <version value="http://snomed.info/sct/51000202101/version/20260715" />
            <code value="286546002:{704327008=36492000}" />
          </coding>
          <text value="Periodontal pocket depth, tooth 15" />
        </code>
        <subject>
          <reference value="Patient/planning-patient" />
          <type value="Patient" />
        </subject>
        <encounter>
          <reference value="Encounter/recall-contact" />
          <type value="Encounter" />
        </encounter>
        <effectiveDateTime value="2026-09-16T09:18:00+02:00" />
        <performer>
          <reference value="Practitioner/planning-practitioner" />
          <type value="Practitioner" />
        </performer>
        <dataAbsentReason>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/data-absent-reason" />
            <code value="not-performed" />
            <display value="Not Performed" />
          </coding>
        </dataAbsentReason>
        <note>
          <text value="Probing at tooth 15 was deferred because of local discomfort. Complete the assessment at the next visit." />
        </note>
        <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="36492000" />
                  <display value="Structure of permanent maxillary right second premolar tooth" />
                </coding>
                <text value="ISO 15" />
              </valueCodeableConcept>
            </extension>
          </extension>
        </bodySite>
        <method>
          <coding>
            <system value="https://novari.no/fhir/digidot/CodeSystem/digidot-observation-method" />
            <code value="periodontal-probing" />
            <display value="Periodontal probing" />
          </coding>
        </method>
      </Observation>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/Observation/pocket-depth-15-follow-up" />
    <resource>
      <Observation>
        <id value="pocket-depth-15-follow-up" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no|0.6.9" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>Deferred periodontal probing at tooth 15 completed during the second visit. Pocket depth: 3 mm. This is a new result; the earlier unavailable result is retained.</p>
          </div>
        </text>
        <status value="final" />
        <category>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/observation-category" />
            <code value="exam" />
            <display value="Exam" />
          </coding>
        </category>
        <code>
          <coding id="SCTpre">
            <system value="http://snomed.info/sct" />
            <version value="http://snomed.info/sct/51000202101/version/20260715" />
            <code value="286546002" />
            <display value="Depth of periodontal pocket" />
          </coding>
          <coding id="SCTextended">
            <system value="http://snomed.info/sct" />
            <version value="http://snomed.info/sct/51000202101/version/20260715" />
            <code value="286546002:{704327008=36492000}" />
          </coding>
          <text value="Periodontal pocket depth, tooth 15" />
        </code>
        <subject>
          <reference value="Patient/planning-patient" />
          <type value="Patient" />
        </subject>
        <encounter>
          <reference value="Encounter/restoration-contact" />
          <type value="Encounter" />
        </encounter>
        <effectiveDateTime value="2026-09-23T09:30:00+02:00" />
        <performer>
          <reference value="Practitioner/planning-practitioner" />
          <type value="Practitioner" />
        </performer>
        <valueQuantity>
          <value value="3" />
          <unit value="mm" />
          <system value="http://unitsofmeasure.org" />
          <code value="mm" />
        </valueQuantity>
        <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="36492000" />
                  <display value="Structure of permanent maxillary right second premolar tooth" />
                </coding>
                <text value="ISO 15" />
              </valueCodeableConcept>
            </extension>
          </extension>
        </bodySite>
        <method>
          <coding>
            <system value="https://novari.no/fhir/digidot/CodeSystem/digidot-observation-method" />
            <code value="periodontal-probing" />
            <display value="Periodontal probing" />
          </coding>
        </method>
      </Observation>
    </resource>
  </entry>
</Bundle>