{
  "resourceType": "StructureDefinition",
  "id": "HiisCatalogEntry",
  "url": "https://fhir.bfarm.de/StructureDefinition/HiisCatalogEntry",
  "version": "3.1.0-TEST",
  "name": "HiisCatalogEntry",
  "title": "HiisCatalogEntry",
  "status": "draft",
  "description": "Definition of an entry in the HIIS catalog representing a medical aid, an implant, or an interface for a medical aid or implant.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "CatalogEntry",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CatalogEntry",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "CatalogEntry",
        "path": "CatalogEntry",
        "short": "HIIS Catalog Entry",
        "definition": "Represents an entry in the HIIS catalog.",
        "mustSupport": true
      },
      {
        "id": "CatalogEntry.extension",
        "path": "CatalogEntry.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "CatalogEntry.extension:history",
        "path": "CatalogEntry.extension",
        "sliceName": "history",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.bfarm.de/StructureDefinition/HiisCatalogEntryHistory"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "CatalogEntry.identifier",
        "path": "CatalogEntry.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "short": "Catalog Entry IDs",
        "definition": "Contains values for unique identification of the catalog entry.",
        "mustSupport": true
      },
      {
        "id": "CatalogEntry.identifier:url",
        "path": "CatalogEntry.identifier",
        "sliceName": "url",
        "short": "URL to Catalog Entry",
        "definition": "Contains the URL to the catalog entry in the HIIS catalog.",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "CatalogEntry.identifier:url.system",
        "path": "CatalogEntry.identifier.system",
        "min": 1,
        "fixedUri": "urn:ietf:rfc:3986",
        "mustSupport": true
      },
      {
        "id": "CatalogEntry.identifier:url.value",
        "path": "CatalogEntry.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "CatalogEntry.type",
        "path": "CatalogEntry.type",
        "short": "Entry Type",
        "definition": "The type of the catalog entry (e.g., whether it is a medical aid or a medical aid interface).",
        "mustSupport": true
      },
      {
        "id": "CatalogEntry.type.coding",
        "path": "CatalogEntry.type.coding",
        "type": [
          {
            "code": "Coding",
            "profile": [
              "https://fhir.bfarm.de/StructureDefinition/CodingHiisCatalogEntryType"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "CatalogEntry.orderable",
        "path": "CatalogEntry.orderable",
        "short": "Orderability",
        "definition": "Indicates whether the medical aid or medical aid interface linked to the catalog entry is orderable or prescribable.",
        "mustSupport": true
      },
      {
        "id": "CatalogEntry.referencedItem",
        "path": "CatalogEntry.referencedItem",
        "short": "Medical Aid / Medical Aid Interface",
        "definition": "The reference to the medical aid (HiisPersonalHealthDeviceDefinition) or the medical aid interface (HiisDeviceDataRecorderDefinition).",
        "mustSupport": true
      },
      {
        "id": "CatalogEntry.referencedItem.extension",
        "path": "CatalogEntry.referencedItem.extension",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "CatalogEntry.referencedItem.extension:deviceDefinition",
        "path": "CatalogEntry.referencedItem.extension",
        "sliceName": "deviceDefinition",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.bfarm.de/StructureDefinition/HiisCatalogEntryReferencedItemLink"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "CatalogEntry.status",
        "path": "CatalogEntry.status",
        "short": "Listing Status",
        "definition": "Represents the status of the entry in the directory.",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.bfarm.de/ValueSet/HiisCatalogEntryStatus"
        }
      },
      {
        "id": "CatalogEntry.validityPeriod",
        "path": "CatalogEntry.validityPeriod",
        "short": "Validity Period",
        "definition": "The period during which the catalog entry is or was valid; may include a start date (e.g., inclusion in the directory) and an end date (e.g., removal from the directory).",
        "mustSupport": true
      },
      {
        "id": "CatalogEntry.validityPeriod.start",
        "path": "CatalogEntry.validityPeriod.start",
        "short": "First Day of Validity",
        "definition": "The date of the first inclusion in the directory.",
        "mustSupport": true
      },
      {
        "id": "CatalogEntry.validityPeriod.end",
        "path": "CatalogEntry.validityPeriod.end",
        "short": "Last Day of Validity",
        "definition": "The last day of validity in the directory.",
        "mustSupport": true
      }
    ]
  }
}