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