{
  "resourceType": "StructureDefinition",
  "id": "HiisPersonalHealthDeviceDefinition",
  "url": "https://fhir.bfarm.de/StructureDefinition/HiisPersonalHealthDeviceDefinition",
  "version": "3.1.0-TEST",
  "name": "HiisPersonalHealthDeviceDefinition",
  "title": "HiisPersonalHealthDeviceDefinition",
  "status": "draft",
  "description": "Definition of a personal health 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",
        "definition": "Represents a personal health medical aid or implant.",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension",
        "path": "DeviceDefinition.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "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.extension:regulatoryIdentifier",
        "path": "DeviceDefinition.extension",
        "sliceName": "regulatoryIdentifier",
        "short": "EUDAMED",
        "definition": "The EUDAMED registration number of the medical device.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDefinition.regulatoryIdentifier"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:regulatoryIdentifier.extension",
        "path": "DeviceDefinition.extension.extension",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:regulatoryIdentifier.extension:type",
        "path": "DeviceDefinition.extension.extension",
        "sliceName": "type",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:regulatoryIdentifier.extension:type.extension",
        "path": "DeviceDefinition.extension.extension.extension",
        "max": "0"
      },
      {
        "id": "DeviceDefinition.extension:regulatoryIdentifier.extension:type.value[x]",
        "path": "DeviceDefinition.extension.extension.value[x]",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:regulatoryIdentifier.extension:deviceIdentifier",
        "path": "DeviceDefinition.extension.extension",
        "sliceName": "deviceIdentifier",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:regulatoryIdentifier.extension:deviceIdentifier.extension",
        "path": "DeviceDefinition.extension.extension.extension",
        "max": "0"
      },
      {
        "id": "DeviceDefinition.extension:regulatoryIdentifier.extension:deviceIdentifier.value[x]",
        "path": "DeviceDefinition.extension.extension.value[x]",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:regulatoryIdentifier.extension:issuer",
        "path": "DeviceDefinition.extension.extension",
        "sliceName": "issuer",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:regulatoryIdentifier.extension:issuer.extension",
        "path": "DeviceDefinition.extension.extension.extension",
        "max": "0"
      },
      {
        "id": "DeviceDefinition.extension:regulatoryIdentifier.extension:issuer.value[x]",
        "path": "DeviceDefinition.extension.extension.value[x]",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:regulatoryIdentifier.extension:jurisdiction",
        "path": "DeviceDefinition.extension.extension",
        "sliceName": "jurisdiction",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:regulatoryIdentifier.extension:jurisdiction.extension",
        "path": "DeviceDefinition.extension.extension.extension",
        "max": "0"
      },
      {
        "id": "DeviceDefinition.extension:regulatoryIdentifier.extension:jurisdiction.value[x]",
        "path": "DeviceDefinition.extension.extension.value[x]",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.extension:regulatoryIdentifier.value[x]",
        "path": "DeviceDefinition.extension.value[x]",
        "max": "0"
      },
      {
        "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.",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.identifier:hmnr",
        "path": "DeviceDefinition.identifier",
        "sliceName": "hmnr",
        "short": "Medical Aid Directory Number",
        "definition": "The number of the medical aid in the medical aid directory.",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.identifier:hmnr.system",
        "path": "DeviceDefinition.identifier.system",
        "min": 1,
        "fixedUri": "http://fhir.de/sid/gkv/hmnr",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.identifier:hmnr.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.",
        "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.",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.deviceName:userFriendlyName",
        "path": "DeviceDefinition.deviceName",
        "sliceName": "userFriendlyName",
        "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.modelNumber",
        "path": "DeviceDefinition.modelNumber",
        "short": "Model Number",
        "definition": "The model number of the medical aid.",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.type",
        "path": "DeviceDefinition.type",
        "short": "Device Type",
        "definition": "The type of the medical aid. Can be given as a SNOMED CT or ISO/IEEE 11073-10101:2020 code.",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.type.coding",
        "path": "DeviceDefinition.type.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.type.coding:iso11073",
        "path": "DeviceDefinition.type.coding",
        "sliceName": "iso11073",
        "short": "ISO/IEEE 11073-10101:2020 Code",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.type.coding:iso11073.system",
        "path": "DeviceDefinition.type.coding.system",
        "min": 1,
        "fixedUri": "urn:iso:std:iso:11073:10101",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.type.coding:iso11073.code",
        "path": "DeviceDefinition.type.coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.type.coding:snomed",
        "path": "DeviceDefinition.type.coding",
        "sliceName": "snomed",
        "short": "SNOMED CT Code",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.type.coding:snomed.system",
        "path": "DeviceDefinition.type.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct",
        "mustSupport": true
      },
      {
        "id": "DeviceDefinition.type.coding:snomed.code",
        "path": "DeviceDefinition.type.coding.code",
        "min": 1,
        "mustSupport": true
      }
    ]
  }
}