{
  "resourceType": "StructureDefinition",
  "id": "HiisDeviceDataRecorderDefinition",
  "url": "https://fhir.bfarm.de/StructureDefinition/HiisDeviceDataRecorderDefinition",
  "version": "3.1.0-TEST",
  "name": "HiisDeviceDataRecorderDefinition",
  "title": "HiisDeviceDataRecorderDefinition",
  "status": "draft",
  "description": "Definition of an interface (DeviceDataRecorder) for a medical aid or implant in the HIIS catalog.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "DeviceDefinition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DeviceDefinition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DeviceDefinition",
        "path": "DeviceDefinition",
        "short": "Medical Aid Interface",
        "definition": "Represents an interface for medical aids or implants for data recording.",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension",
        "path": "DeviceDefinition.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:endpoint",
        "path": "DeviceDefinition.extension",
        "sliceName": "endpoint",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.bfarm.de/StructureDefinition/HiisDeviceDataRecorderEndpointLink"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:link",
        "path": "DeviceDefinition.extension",
        "sliceName": "link",
        "short": "Supported Medical Aids",
        "definition": "Reference to supported medical aids or implants (HiisPersonalHealthDeviceDefinition).",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDefinition.link"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:link.extension",
        "path": "DeviceDefinition.extension.extension",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:link.extension:relation",
        "path": "DeviceDefinition.extension.extension",
        "sliceName": "relation",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:link.extension:relation.extension",
        "path": "DeviceDefinition.extension.extension.extension",
        "max": "0"
      },
      {
        "id": "DeviceDefinition.extension:link.extension:relation.value[x]",
        "path": "DeviceDefinition.extension.extension.value[x]",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.bfarm.de/ValueSet/HiisDeviceDefinitionRelationType"
        }
      },
      {
        "id": "DeviceDefinition.extension:link.extension:relatedDevice",
        "path": "DeviceDefinition.extension.extension",
        "sliceName": "relatedDevice",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:link.extension:relatedDevice.extension",
        "path": "DeviceDefinition.extension.extension.extension",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:link.extension:relatedDevice.extension:reference",
        "path": "DeviceDefinition.extension.extension.extension",
        "sliceName": "reference",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:link.extension:relatedDevice.extension:reference.extension",
        "path": "DeviceDefinition.extension.extension.extension.extension",
        "max": "0"
      },
      {
        "id": "DeviceDefinition.extension:link.extension:relatedDevice.extension:reference.value[x]",
        "path": "DeviceDefinition.extension.extension.extension.value[x]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.bfarm.de/StructureDefinition/HiisPersonalHealthDeviceDefinition"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:link.extension:relatedDevice.value[x]",
        "path": "DeviceDefinition.extension.extension.value[x]",
        "max": "0"
      },
      {
        "id": "DeviceDefinition.extension:link.value[x]",
        "path": "DeviceDefinition.extension.value[x]",
        "max": "0"
      },
      {
        "id": "DeviceDefinition.extension:mivSet",
        "path": "DeviceDefinition.extension",
        "sliceName": "mivSet",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.bfarm.de/StructureDefinition/HiisDeviceDefinitionMivSet"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.identifier",
        "path": "DeviceDefinition.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "short": "Identifiers",
        "definition": "Contains characteristics for unique identification of the medical aid interface.",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.identifier:hiisId",
        "path": "DeviceDefinition.identifier",
        "sliceName": "hiisId",
        "short": "HIIS ID",
        "definition": "The unique HIIS ID from the HIIS catalog.",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.identifier:hiisId.system",
        "path": "DeviceDefinition.identifier.system",
        "min": 1,
        "fixedUri": "https://fhir.bfarm.de/Identifier/HiisId",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.identifier:hiisId.value",
        "path": "DeviceDefinition.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.manufacturer[x]",
        "path": "DeviceDefinition.manufacturer[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.manufacturer[x]:manufacturerReference",
        "path": "DeviceDefinition.manufacturer[x]",
        "sliceName": "manufacturerReference",
        "short": "Manufacturer",
        "definition": "The reference to the manufacturer of the medical aid interface.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.bfarm.de/StructureDefinition/HiisManufacturer"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.manufacturer[x]:manufacturerReference.reference",
        "path": "DeviceDefinition.manufacturer[x].reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.manufacturer[x]:manufacturerReference.display",
        "path": "DeviceDefinition.manufacturer[x].display",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.deviceName",
        "path": "DeviceDefinition.deviceName",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "open"
        },
        "short": "Device Name",
        "definition": "The name designation of the medical aid interface.",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.deviceName:userFriendlyName",
        "path": "DeviceDefinition.deviceName",
        "sliceName": "userFriendlyName",
        "short": "Interface Name",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.deviceName:userFriendlyName.name",
        "path": "DeviceDefinition.deviceName.name",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.deviceName:userFriendlyName.type",
        "path": "DeviceDefinition.deviceName.type",
        "fixedCode": "user-friendly-name"
      },
      {
        "id": "DeviceDefinition.version",
        "path": "DeviceDefinition.version",
        "short": "Version",
        "definition": "The version of the interface.",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.version.value",
        "path": "DeviceDefinition.version.value",
        "short": "Interface Version",
        "min": 1,
        "mustSupport": true
      }
    ]
  }
}