{
  "resourceType": "StructureDefinition",
  "id": "DhdCataractMedicalDeviceProduct",
  "url": "http://dhd.nl/fhir/StructureDefinition/DhdCataractMedicalDeviceProduct",
  "version": "0.2.0",
  "name": "DhdCataractMedicalDeviceProduct",
  "status": "draft",
  "fhirVersion": "3.0.2",
  "kind": "resource",
  "abstract": false,
  "type": "Device",
  "baseDefinition": "http://nictiz.nl/fhir/StructureDefinition/zib-MedicalDeviceProduct",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Device.extension:iolMaterial",
        "path": "Device.extension",
        "sliceName": "iolMaterial",
        "short": "IOL material",
        "definition": "The material of the intraocular lens used during cataract treatment.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://dhd.nl/fhir/StructureDefinition/DhdCataractIolMaterialExtension"
          }
        ]
      },
      {
        "id": "Device.identifier",
        "path": "Device.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type.coding.code"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Device.identifier:serialNumber",
        "path": "Device.identifier",
        "sliceName": "serialNumber",
        "min": 1
      },
      {
        "id": "Device.identifier:gtin",
        "path": "Device.identifier",
        "sliceName": "gtin",
        "short": "Global Trade Item Number",
        "definition": "The 14-digit GS1 Global Trade Item Number that identifies the device type.",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Device.identifier:gtin.type",
        "path": "Device.identifier.type",
        "min": 1
      },
      {
        "id": "Device.identifier:gtin.type.coding",
        "path": "Device.identifier.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Device.identifier:gtin.type.coding.system",
        "path": "Device.identifier.type.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/identifier-type"
      },
      {
        "id": "Device.identifier:gtin.type.coding.code",
        "path": "Device.identifier.type.coding.code",
        "min": 1,
        "fixedCode": "UDI"
      },
      {
        "id": "Device.identifier:gtin.system",
        "path": "Device.identifier.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/NamingSystem/gs1-di"
      },
      {
        "id": "Device.identifier:gtin.value",
        "path": "Device.identifier.value",
        "min": 1,
        "constraint": [
          {
            "key": "gtin-1",
            "severity": "error",
            "human": "GTIN must contain exactly 14 digits",
            "expression": "matches('^[0-9]{14}$')",
            "xpath": "matches(@value, '^[0-9]{14}$')"
          }
        ]
      },
      {
        "id": "Device.type",
        "path": "Device.type",
        "short": "Lens type",
        "definition": "The type of intraocular lens used during cataract treatment.",
        "min": 1,
        "binding": {
          "strength": "required",
          "description": "Lens type from the existing Nictiz ProductTypeCodelijst.",
          "valueSetReference": {
            "reference": "http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.10.1.1--20171231000000",
            "display": "ProductTypeCodelijst"
          }
        }
      }
    ]
  }
}