{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_PS_Device_Implant_EHDSI",
  "version": "1.0.0",
  "name": "KBV_PR_MIO_PS_Device_Implant_EHDSI",
  "status": "draft",
  "publisher": "Kassenärztliche Bundesvereinigung (KBV)",
  "description": "Mit diesem Profil kann ein Implantat aus dem EHDSI ValueSet abgebildet werden.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "udi",
      "uri": "http://fda.gov/UDI",
      "name": "UDI Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Device",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Device",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Device.meta",
        "path": "Device.meta",
        "min": 1
      },
      {
        "id": "Device.meta.versionId",
        "path": "Device.meta.versionId",
        "max": "0"
      },
      {
        "id": "Device.meta.lastUpdated",
        "path": "Device.meta.lastUpdated",
        "max": "0"
      },
      {
        "id": "Device.meta.source",
        "path": "Device.meta.source",
        "max": "0"
      },
      {
        "id": "Device.meta.profile",
        "path": "Device.meta.profile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_PS_Device_Implant_EHDSI|1.0.0"
      },
      {
        "id": "Device.meta.security",
        "path": "Device.meta.security",
        "max": "0"
      },
      {
        "id": "Device.meta.tag",
        "path": "Device.meta.tag",
        "max": "0"
      },
      {
        "id": "Device.implicitRules",
        "path": "Device.implicitRules",
        "max": "0"
      },
      {
        "id": "Device.language",
        "path": "Device.language",
        "max": "0"
      },
      {
        "id": "Device.contained",
        "path": "Device.contained",
        "max": "0"
      },
      {
        "id": "Device.identifier",
        "path": "Device.identifier",
        "max": "1"
      },
      {
        "id": "Device.definition",
        "path": "Device.definition",
        "max": "0"
      },
      {
        "id": "Device.udiCarrier",
        "path": "Device.udiCarrier",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Device.udiCarrier.deviceIdentifier",
        "path": "Device.udiCarrier.deviceIdentifier",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Device.udiCarrier.carrierAIDC",
        "path": "Device.udiCarrier.carrierAIDC",
        "max": "0"
      },
      {
        "id": "Device.udiCarrier.carrierHRF",
        "path": "Device.udiCarrier.carrierHRF",
        "max": "0"
      },
      {
        "id": "Device.status",
        "path": "Device.status",
        "max": "0"
      },
      {
        "id": "Device.statusReason",
        "path": "Device.statusReason",
        "max": "0"
      },
      {
        "id": "Device.distinctIdentifier",
        "path": "Device.distinctIdentifier",
        "mustSupport": true
      },
      {
        "id": "Device.manufacturer",
        "path": "Device.manufacturer",
        "mustSupport": true
      },
      {
        "id": "Device.manufactureDate",
        "path": "Device.manufactureDate",
        "max": "0"
      },
      {
        "id": "Device.expirationDate",
        "path": "Device.expirationDate",
        "max": "0"
      },
      {
        "id": "Device.lotNumber",
        "path": "Device.lotNumber",
        "mustSupport": true
      },
      {
        "id": "Device.serialNumber",
        "path": "Device.serialNumber",
        "mustSupport": true
      },
      {
        "id": "Device.deviceName",
        "path": "Device.deviceName",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Device.deviceName.name",
        "path": "Device.deviceName.name",
        "mustSupport": true
      },
      {
        "id": "Device.modelNumber",
        "path": "Device.modelNumber",
        "mustSupport": true
      },
      {
        "id": "Device.partNumber",
        "path": "Device.partNumber",
        "mustSupport": true
      },
      {
        "id": "Device.type",
        "path": "Device.type",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.kbv.de/ValueSet/KBV_VS_MIO_PS_Medical_Device"
        }
      },
      {
        "id": "Device.type.coding",
        "path": "Device.type.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Device.type.coding.system",
        "path": "Device.type.coding.system",
        "min": 1
      },
      {
        "id": "Device.type.coding.version",
        "path": "Device.type.coding.version",
        "min": 1
      },
      {
        "id": "Device.type.coding.code",
        "path": "Device.type.coding.code",
        "min": 1
      },
      {
        "id": "Device.type.coding.display",
        "path": "Device.type.coding.display",
        "min": 1
      },
      {
        "id": "Device.type.coding.display.extension",
        "path": "Device.type.coding.display.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Device.type.coding.display.extension:anzeigenameType",
        "path": "Device.type.coding.display.extension",
        "sliceName": "anzeigenameType",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Terminology_German"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Device.type.coding.display.extension:anzeigenameType.extension",
        "path": "Device.type.coding.display.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Device.type.coding.display.extension:anzeigenameType.extension:content",
        "path": "Device.type.coding.display.extension.extension",
        "sliceName": "content",
        "mustSupport": true
      },
      {
        "id": "Device.type.coding.display.extension:anzeigenameType.extension:content.value[x]",
        "path": "Device.type.coding.display.extension.extension.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "mustSupport": true
      },
      {
        "id": "Device.type.coding.display.extension:anzeigenameType.extension:content.value[x]:valueString",
        "path": "Device.type.coding.display.extension.extension.valueString",
        "sliceName": "valueString",
        "definition": "In diesem Attribut sollen die entsprechende deutsche Bezeichnung des Loinc oder Snomed-Codes aus der Conceptmap eingetragen werden, also in diesem Fall den Displaynamen des Targetsystems aus https://fhir.kbv.de/ConceptMap/KBV_CM_MIO_PS_Medical_Device_German|1.0.0",
        "mustSupport": true
      },
      {
        "id": "Device.type.coding.userSelected",
        "path": "Device.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Device.type.text",
        "path": "Device.type.text",
        "max": "0"
      },
      {
        "id": "Device.specialization",
        "path": "Device.specialization",
        "max": "0"
      },
      {
        "id": "Device.version",
        "path": "Device.version",
        "max": "0"
      },
      {
        "id": "Device.property",
        "path": "Device.property",
        "max": "0"
      },
      {
        "id": "Device.patient",
        "path": "Device.patient",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_PS_Patient|1.0.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Device.patient.reference",
        "path": "Device.patient.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Device.patient.type",
        "path": "Device.patient.type",
        "max": "0"
      },
      {
        "id": "Device.patient.identifier",
        "path": "Device.patient.identifier",
        "max": "0"
      },
      {
        "id": "Device.patient.display",
        "path": "Device.patient.display",
        "max": "0"
      },
      {
        "id": "Device.owner",
        "path": "Device.owner",
        "max": "0"
      },
      {
        "id": "Device.contact",
        "path": "Device.contact",
        "max": "0"
      },
      {
        "id": "Device.location",
        "path": "Device.location",
        "max": "0"
      },
      {
        "id": "Device.url",
        "path": "Device.url",
        "max": "0"
      },
      {
        "id": "Device.note",
        "path": "Device.note",
        "max": "0"
      },
      {
        "id": "Device.safety",
        "path": "Device.safety",
        "max": "0"
      },
      {
        "id": "Device.parent",
        "path": "Device.parent",
        "max": "0"
      }
    ]
  }
}