{
  "resourceType": "StructureDefinition",
  "id": "test-digidot-Device-no",
  "url": "http://novari.no/fhir/digidot/StructureDefinition/test-digidot-Device-no",
  "version": "0.1.0-test",
  "name": "TestDigidotDeviceNo",
  "title": "TEST DigiDot Device (NO)",
  "status": "draft",
  "date": "2026-05-22",
  "publisher": "Novari AS - DigiDOT",
  "description": "TEST comparison draft. Not for production use. DigiDOT profile for dental devices that need to be represented as resources, such as implants, prostheses and orthodontic appliances.",
  "purpose": "Use this profile only for dental devices that need their own resource representation, such as implants, prostheses or orthodontic appliances. Routine instruments normally stay outside the shared patient information layer.",
  "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."
      },
      {
        "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": "Use Device.type for the clinically relevant type of dental device. Prefer agreed SNOMED CT device concepts when available. The temporary DigiDOT test value set can be used while terminology bindings are clarified.",
        "min": 0,
        "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": "http://novari.no/fhir/digidot/ValueSet/test-digidot-device-type"
        }
      },
      {
        "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"
            ]
          }
        ]
      },
      {
        "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": [
              "http://novari.no/fhir/digidot/StructureDefinition/test-digidot-Device-no",
              "http://hl7.org/fhir/StructureDefinition/Device"
            ]
          }
        ]
      }
    ]
  }
}