{
  "resourceType": "Bundle",
  "id": "example-digidot-imaging-context",
  "type": "collection",
  "timestamp": "2026-07-31T08:20:00+00:00",
  "entry": [
    {
      "fullUrl": "https://novari.no/fhir/digidot/example/Patient/pas-imaging-demo",
      "resource": {
        "resourceType": "Patient",
        "id": "pas-imaging-demo",
        "meta": {
          "profile": [
            "http://hl7.no/fhir/StructureDefinition/no-basis-Patient"
          ],
          "source": "https://www.nhn.no/tjenester/persontjenesten"
        },
        "identifier": [
          {
            "system": "urn:oid:2.16.578.1.12.4.1.4.1",
            "value": "01019012345"
          }
        ],
        "name": [
          {
            "family": "Testpasient",
            "given": [
              "Digi"
            ]
          }
        ],
        "gender": "female",
        "birthDate": "1990-01-01"
      }
    },
    {
      "fullUrl": "https://novari.no/fhir/digidot/example/Organization/org-imaging-clinic",
      "resource": {
        "resourceType": "Organization",
        "id": "org-imaging-clinic",
        "meta": {
          "profile": [
            "http://hl7.no/fhir/StructureDefinition/no-basis-Organization"
          ]
        },
        "name": "DigiDOT test dental clinic"
      }
    },
    {
      "fullUrl": "https://novari.no/fhir/digidot/example/Location/loc-imaging-room",
      "resource": {
        "resourceType": "Location",
        "id": "loc-imaging-room",
        "meta": {
          "profile": [
            "http://hl7.no/fhir/StructureDefinition/no-basis-Location"
          ]
        },
        "status": "active",
        "name": "Dental imaging room",
        "managingOrganization": {
          "reference": "Organization/org-imaging-clinic"
        }
      }
    },
    {
      "fullUrl": "https://novari.no/fhir/digidot/example/Encounter/enc-imaging-demo",
      "resource": {
        "resourceType": "Encounter",
        "id": "enc-imaging-demo",
        "meta": {
          "profile": [
            "https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no"
          ]
        },
        "identifier": [
          {
            "system": "urn:novari:encounter",
            "value": "enc-imaging-demo"
          }
        ],
        "status": "finished",
        "class": {
          "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
          "code": "AMB"
        },
        "type": [
          {
            "text": "Routine dental consultation"
          }
        ],
        "subject": {
          "reference": "Patient/pas-imaging-demo"
        },
        "participant": [
          {
            "type": [
              {
                "coding": [
                  {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                    "code": "PPRF",
                    "display": "primary performer"
                  }
                ]
              }
            ],
            "individual": {
              "type": "Practitioner",
              "display": "Example dentist identified by HPR",
              "reference": "urn:uuid:6d47d85c-45d2-552b-8c20-304ef398ff81"
            }
          }
        ],
        "period": {
          "start": "2026-07-31T06:30:00+00:00",
          "end": "2026-07-31T07:10:00+00:00"
        },
        "location": [
          {
            "location": {
              "reference": "Location/loc-imaging-room"
            }
          }
        ],
        "serviceProvider": {
          "reference": "Organization/org-imaging-clinic"
        }
      }
    },
    {
      "fullUrl": "https://novari.no/fhir/digidot/example/ServiceRequest/sr-opg-imaging",
      "resource": {
        "resourceType": "ServiceRequest",
        "id": "sr-opg-imaging",
        "meta": {
          "profile": [
            "https://novari.no/fhir/digidot/StructureDefinition/digidot-ServiceRequest-no"
          ]
        },
        "status": "completed",
        "intent": "order",
        "code": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "version": "http://snomed.info/sct/51000202101/version/20260715",
              "code": "129125009:{408730004=397943006,408731000=410512000,408732007=410604004,363589002=(363679005)}"
            }
          ]
        },
        "subject": {
          "reference": "Patient/pas-imaging-demo"
        },
        "encounter": {
          "reference": "Encounter/enc-imaging-demo"
        },
        "authoredOn": "2026-07-31",
        "locationReference": [
          {
            "reference": "Location/loc-imaging-room"
          }
        ],
        "category": [
          {
            "coding": [
              {
                "system": "https://novari.no/fhir/digidot/CodeSystem/digidot-service-request-category",
                "code": "dental-diagnostic",
                "display": "Dental diagnostic service"
              }
            ],
            "text": "Dental diagnostic imaging request"
          }
        ],
        "identifier": [
          {
            "system": "urn:novari:example:service-request",
            "value": "sr-opg-imaging"
          }
        ]
      }
    },
    {
      "fullUrl": "https://novari.no/fhir/digidot/example/ImagingStudy/imgstudy-opg-20260731",
      "resource": {
        "resourceType": "ImagingStudy",
        "id": "imgstudy-opg-20260731",
        "meta": {
          "source": "https://pacs.example.no/dicomweb"
        },
        "identifier": [
          {
            "system": "urn:dicom:uid",
            "value": "urn:oid:1.2.826.0.1.3680043.10.999.2026073101"
          }
        ],
        "status": "available",
        "modality": [
          {
            "system": "http://dicom.nema.org/resources/ontology/DCM",
            "code": "PX",
            "display": "Panoramic X-Ray"
          }
        ],
        "subject": {
          "reference": "Patient/pas-imaging-demo"
        },
        "encounter": {
          "reference": "Encounter/enc-imaging-demo"
        },
        "started": "2026-07-31T06:45:00+00:00",
        "numberOfSeries": 1,
        "numberOfInstances": 1,
        "series": [
          {
            "uid": "1.2.826.0.1.3680043.10.999.2026073101.1",
            "number": 1,
            "modality": {
              "system": "http://dicom.nema.org/resources/ontology/DCM",
              "code": "PX",
              "display": "Panoramic X-Ray"
            },
            "description": "Dental panoramic radiograph",
            "numberOfInstances": 1,
            "started": "2026-07-31T06:45:00+00:00",
            "instance": [
              {
                "uid": "1.2.826.0.1.3680043.10.999.2026073101.1.1",
                "sopClass": {
                  "system": "urn:ietf:rfc:3986",
                  "code": "urn:oid:1.2.840.10008.5.1.4.1.1.1.1",
                  "display": "Digital X-Ray Image Storage - For Presentation"
                },
                "number": 1,
                "title": "OPG image"
              }
            ]
          }
        ]
      }
    },
    {
      "fullUrl": "https://novari.no/fhir/digidot/example/Observation/obs-opg-caries-36",
      "resource": {
        "resourceType": "Observation",
        "id": "obs-opg-caries-36",
        "meta": {
          "profile": [
            "https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no"
          ],
          "tag": [
            {
              "system": "https://novari.no/fhir/digidot/CodeSystem/example-status",
              "code": "historical",
              "display": "Historical local Observation coding; not conformant to the current SNOMED-only DigiDOT Observation profile."
            }
          ]
        },
        "status": "final",
        "code": {
          "coding": [
            {
              "system": "https://novari.no/fhir/digidot/CodeSystem/digidot-observation-codes",
              "code": "dental-radiographic-assessment",
              "display": "Dental radiographic assessment",
              "id": "primary"
            },
            {
              "system": "https://novari.no/fhir/digidot/CodeSystem/digidot-observation-codes",
              "code": "dental-radiographic-assessment",
              "display": "Dental radiographic assessment",
              "id": "SCTpost"
            }
          ],
          "text": "Radiographic finding tooth 36"
        },
        "subject": {
          "reference": "Patient/pas-imaging-demo"
        },
        "encounter": {
          "reference": "Encounter/enc-imaging-demo"
        },
        "effectiveDateTime": "2026-07-31T06:50:00+00:00",
        "valueCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "version": "http://snomed.info/sct/51000202101/version/20260715",
              "code": "80967001",
              "display": "Dental caries"
            }
          ],
          "text": "Radiographic signs compatible with dental caries"
        },
        "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": "866006002",
                        "display": "Structure of permanent mandibular left first molar tooth"
                      }
                    ],
                    "text": "ISO 36"
                  }
                }
              ]
            }
          ]
        },
        "method": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "363679005",
              "display": "Imaging"
            }
          ]
        }
      }
    },
    {
      "fullUrl": "https://novari.no/fhir/digidot/example/DiagnosticReport/dr-opg-20260731",
      "resource": {
        "resourceType": "DiagnosticReport",
        "id": "dr-opg-20260731",
        "status": "final",
        "code": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "18748-4",
              "display": "Diagnostic imaging study"
            }
          ],
          "text": "Dental OPG report"
        },
        "subject": {
          "reference": "Patient/pas-imaging-demo"
        },
        "encounter": {
          "reference": "Encounter/enc-imaging-demo"
        },
        "effectiveDateTime": "2026-07-31T06:50:00+00:00",
        "issued": "2026-07-31T07:00:00+00:00",
        "result": [
          {
            "reference": "Observation/obs-opg-caries-36"
          }
        ],
        "imagingStudy": [
          {
            "reference": "ImagingStudy/imgstudy-opg-20260731"
          }
        ],
        "conclusion": "Radiographic finding supports restorative treatment planning for tooth 36."
      }
    },
    {
      "fullUrl": "https://novari.no/fhir/digidot/example/DocumentReference/docref-opg-report",
      "resource": {
        "resourceType": "DocumentReference",
        "id": "docref-opg-report",
        "status": "current",
        "type": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "18748-4",
              "display": "Diagnostic imaging study"
            }
          ],
          "text": "Dental OPG report document"
        },
        "subject": {
          "reference": "Patient/pas-imaging-demo"
        },
        "date": "2026-07-31T07:00:00+00:00",
        "author": [
          {
            "reference": "Organization/org-imaging-clinic"
          }
        ],
        "content": [
          {
            "attachment": {
              "contentType": "application/pdf",
              "url": "https://pacs.example.no/dicomweb/studies/1.2.826.0.1.3680043.10.999.2026073101/report.pdf",
              "title": "OPG report 2026-07-31"
            }
          }
        ],
        "context": {
          "encounter": [
            {
              "reference": "Encounter/enc-imaging-demo"
            }
          ],
          "related": [
            {
              "reference": "DiagnosticReport/dr-opg-20260731"
            },
            {
              "reference": "ImagingStudy/imgstudy-opg-20260731"
            }
          ]
        }
      }
    },
    {
      "fullUrl": "https://novari.no/fhir/digidot/example/Provenance/prov-imaging-metadata",
      "resource": {
        "resourceType": "Provenance",
        "id": "prov-imaging-metadata",
        "target": [
          {
            "reference": "ImagingStudy/imgstudy-opg-20260731"
          },
          {
            "reference": "DocumentReference/docref-opg-report"
          },
          {
            "reference": "DiagnosticReport/dr-opg-20260731"
          }
        ],
        "recorded": "2026-07-31T07:05:00+00:00",
        "agent": [
          {
            "type": {
              "text": "PACS/DICOMweb metadata import"
            },
            "who": {
              "display": "DigiDOT imaging integration"
            }
          }
        ],
        "entity": [
          {
            "role": "source",
            "what": {
              "display": "External PACS/DICOMweb archive"
            }
          }
        ]
      }
    },
    {
      "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
      }
    }
  ],
  "meta": {
    "tag": [
      {
        "system": "https://novari.no/fhir/digidot/CodeSystem/example-status",
        "code": "historical",
        "display": "Historical illustration: contains local Observation codes not accepted by the current profile. Not a current validation or import example; clinical mappings remain to be agreed."
      }
    ]
  }
}