{
  "resourceType": "StructureDefinition",
  "id": "digidot-Device-no",
  "url": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Device-no",
  "version": "0.1.0-test",
  "name": "DigidotDeviceNo",
  "title": "DigiDot Device (NO)",
  "status": "draft",
  "date": "2026-08-28",
  "publisher": "Novari AS - DigiDOT",
  "description": "Draft DigiDOT profile for an optional, identifiable dental device that must be retained and referenced as its own FHIR resource. It supports patient-associated devices such as implants, prostheses and orthodontic appliances, and clinically or traceability-relevant dental equipment when the source records a concrete device instance.",
  "purpose": "Use this profile only when a concrete device needs its own identity and relationship in the shared record. A patient-associated device references the patient. Equipment used by a clinic may instead reference its owner and/or location. Do not create a Device merely to repeat a generic device type that is already represented in procedure coding.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Device",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Device",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Device",
        "path": "Device",
        "constraint": [
          {
            "key": "dev-type-recommended",
            "severity": "warning",
            "human": "DigiDOT dental devices should include Device.type when the device is clinically relevant.",
            "expression": "type.exists()"
          },
          {
            "key": "dev-context-recommended",
            "severity": "warning",
            "human": "DigiDOT dental devices should normally reference a patient, owner or location so the device context is clear.",
            "expression": "patient.exists() or owner.exists() or location.exists()"
          }
        ]
      },
      {
        "id": "Device.identifier",
        "path": "Device.identifier",
        "short": "Device identifier when available.",
        "definition": "Use Device.identifier for local device identifiers or supplier identifiers when they are available. Do not invent identifiers for generic device categories that do not need longitudinal tracking.",
        "mustSupport": true
      },
      {
        "id": "Device.udiCarrier",
        "path": "Device.udiCarrier",
        "short": "Unique Device Identifier carrier when available."
      },
      {
        "id": "Device.status",
        "path": "Device.status",
        "short": "FHIR device availability status."
      },
      {
        "id": "Device.manufacturer",
        "path": "Device.manufacturer",
        "short": "Manufacturer."
      },
      {
        "id": "Device.lotNumber",
        "path": "Device.lotNumber",
        "short": "Lot or batch number."
      },
      {
        "id": "Device.serialNumber",
        "path": "Device.serialNumber",
        "short": "Serial number."
      },
      {
        "id": "Device.deviceName",
        "path": "Device.deviceName",
        "short": "Name used for the device."
      },
      {
        "id": "Device.type",
        "path": "Device.type",
        "short": "Dental device type.",
        "definition": "Record the clinically relevant type of the represented device. Prefer an agreed SNOMED CT device concept when available. The DigiDOT Device Type ValueSet is a draft, extensible starting point while the final terminology binding is agreed.",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "extensible",
          "description": "Dental device categories. Use these categories when they cover the intended device; use a more precise SNOMED CT device concept when available.",
          "valueSet": "https://novari.no/fhir/digidot/ValueSet/digidot-device-type"
        },
        "mustSupport": true
      },
      {
        "id": "Device.patient",
        "path": "Device.patient",
        "short": "Patient associated with the device.",
        "definition": "Use Device.patient for patient-associated dental devices, such as an implant, prosthesis or orthodontic appliance that belongs to one patient.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-Patient",
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Device.owner",
        "path": "Device.owner",
        "short": "Owning organization.",
        "definition": "Use Device.owner when the device is owned by a clinic, county or other organization rather than being patient-associated.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-Organization",
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ]
      },
      {
        "id": "Device.location",
        "path": "Device.location",
        "short": "Device location.",
        "definition": "Use Device.location for clinic-owned devices or devices whose current physical location is relevant.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-Location",
              "http://hl7.org/fhir/StructureDefinition/Location"
            ]
          }
        ]
      },
      {
        "id": "Device.note",
        "path": "Device.note",
        "short": "Clinical or administrative note."
      },
      {
        "id": "Device.parent",
        "path": "Device.parent",
        "short": "Parent device.",
        "definition": "Use Device.parent only when a device is a component of another represented device.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Device-no",
              "http://hl7.org/fhir/StructureDefinition/Device"
            ]
          }
        ]
      }
    ]
  }
}