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