{
  "resourceType": "StructureDefinition",
  "id": "profile-device",
  "url": "https://fhir.synapxe.sg/StructureDefinition/profile-device",
  "name": "Device",
  "title": "Device Profile",
  "status": "active",
  "publisher": "Synapxe",
  "description": "This resource represents an instance or a type of a manufactured item that is used in the provision of healthcare without being substantially changed through that activity.",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Device",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Device",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Device",
        "path": "Device",
        "definition": "Carries these NEHR XML elements of putCardiology:\n\n- `content/Composition/section/entry/Procedure/focalDevice`: A device that is implanted, removed or otherwise manipulated as a focal portion of the procedure.\n- `content/Composition/section/entry/Procedure/used/Device`: Device used as part of the procedure."
      },
      {
        "id": "Device.identifier",
        "path": "Device.identifier",
        "definition": "Carries these NEHR XML elements of putCardiology:\n\n- `content/Composition/section/entry/Procedure/focalDevice/manipulatedDevice/identifier`: The unique identifier associated with this device.\n- `content/Composition/section/entry/Procedure/used/Device/identifier`: Unique identifier associated with the device.",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier"
            ]
          }
        ]
      },
      {
        "id": "Device.identifier:deviceIdentifier",
        "path": "Device.identifier",
        "sliceName": "deviceIdentifier",
        "short": "Instance identifier",
        "definition": "Unique instance identifiers assigned to a device by manufacturers other organizations or owners.",
        "comment": "Certain attributes, like serial number and UDI Carrier (the HRF or AIDC barcode string) are not device instance identifiers as they are not consistently able to uniquely identify the instance of a device, thus are not appropriate to be used to value Device.identifier. The barcode string from a barcode present on a device label or package may identify the instance, include names given to the device in local usage, or may identify the type of device. If the identifier identifies the type of device, Device.type element should be used. The identifier is typically valued if the serialNumber or lotNumber is not valued and represents a different type of identifier.  However, it is permissible to still include those identifiers in DeviceDefinition.identifier with the appropriate identifier.type.",
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier-device-id"
            ]
          }
        ]
      },
      {
        "id": "Device.identifier:sequenceNo",
        "path": "Device.identifier",
        "sliceName": "sequenceNo",
        "short": "Instance identifier",
        "definition": "A number that identifies and sequences the device item.",
        "comment": "Certain attributes, like serial number and UDI Carrier (the HRF or AIDC barcode string) are not device instance identifiers as they are not consistently able to uniquely identify the instance of a device, thus are not appropriate to be used to value Device.identifier. The barcode string from a barcode present on a device label or package may identify the instance, include names given to the device in local usage, or may identify the type of device. If the identifier identifies the type of device, Device.type element should be used. The identifier is typically valued if the serialNumber or lotNumber is not valued and represents a different type of identifier.  However, it is permissible to still include those identifiers in DeviceDefinition.identifier with the appropriate identifier.type.",
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier-sequence-no"
            ]
          }
        ]
      },
      {
        "id": "Device.displayName",
        "path": "Device.displayName",
        "max": "0"
      },
      {
        "id": "Device.definition",
        "path": "Device.definition",
        "max": "0"
      },
      {
        "id": "Device.udiCarrier",
        "path": "Device.udiCarrier",
        "max": "1"
      },
      {
        "id": "Device.udiCarrier.id",
        "path": "Device.udiCarrier.id",
        "max": "0"
      },
      {
        "id": "Device.udiCarrier.extension",
        "path": "Device.udiCarrier.extension",
        "max": "0"
      },
      {
        "id": "Device.udiCarrier.modifierExtension",
        "path": "Device.udiCarrier.modifierExtension",
        "max": "0"
      },
      {
        "id": "Device.availabilityStatus",
        "path": "Device.availabilityStatus",
        "max": "0"
      },
      {
        "id": "Device.biologicalSourceEvent",
        "path": "Device.biologicalSourceEvent",
        "max": "0"
      },
      {
        "id": "Device.manufacturer",
        "path": "Device.manufacturer",
        "definition": "Name of the manufacturer."
      },
      {
        "id": "Device.manufactureDate",
        "path": "Device.manufactureDate",
        "definition": "Carries these NEHR XML elements of putCardiology:\n\n- `content/Composition/section/entry/Procedure/focalDevice/manipulatedDevice/manufactureDate`: The date and time when the device was manufactured.\n- `content/Composition/section/entry/Procedure/used/Device/manufactureDate`: Date and time the device was manufactured."
      },
      {
        "id": "Device.expirationDate",
        "path": "Device.expirationDate",
        "definition": "Carries these NEHR XML elements of putCardiology:\n\n- `content/Composition/section/entry/Procedure/focalDevice/manipulatedDevice/expiry`: The date and time beyond which this device is no longer valid or should not be used.\n- `content/Composition/section/entry/Procedure/used/Device/expiry`: Date and time beyond which the device should no longer be used."
      },
      {
        "id": "Device.name",
        "path": "Device.name",
        "max": "0"
      },
      {
        "id": "Device.modelNumber",
        "path": "Device.modelNumber",
        "definition": "Carries these NEHR XML elements of putCardiology:\n\n- `content/Composition/section/entry/Procedure/focalDevice/manipulatedDevice/model`: Model identifier assigned by the manufacturer to identify the product type.\n- `content/Composition/section/entry/Procedure/used/Device/model`: Manufacturer model identifier of the device."
      },
      {
        "id": "Device.partNumber",
        "path": "Device.partNumber",
        "max": "0"
      },
      {
        "id": "Device.category",
        "path": "Device.category",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.synapxe.sg/ValueSet/device-category"
        }
      },
      {
        "id": "Device.category.coding.system",
        "path": "Device.category.coding.system",
        "patternUri": "http://hl7.org/fhir/device-category"
      },
      {
        "id": "Device.type",
        "path": "Device.type",
        "definition": "Carries these NEHR XML elements of putCardiology:\n\n- `content/Composition/section/entry/Procedure/focalDevice/manipulatedDevice/type`: The type of the device. Code or identifier used to identify a kind of device.\n- `content/Composition/section/entry/Procedure/used/Device/type`: The type of the device.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.synapxe.sg/ValueSet/device-type"
        }
      },
      {
        "id": "Device.version",
        "path": "Device.version",
        "max": "1"
      },
      {
        "id": "Device.version.id",
        "path": "Device.version.id",
        "max": "0"
      },
      {
        "id": "Device.version.extension",
        "path": "Device.version.extension",
        "max": "0"
      },
      {
        "id": "Device.version.modifierExtension",
        "path": "Device.version.modifierExtension",
        "max": "0"
      },
      {
        "id": "Device.version.type",
        "path": "Device.version.type",
        "max": "0"
      },
      {
        "id": "Device.version.component",
        "path": "Device.version.component",
        "max": "0"
      },
      {
        "id": "Device.version.installDate",
        "path": "Device.version.installDate",
        "max": "0"
      },
      {
        "id": "Device.version.value",
        "path": "Device.version.value",
        "definition": "Carries these NEHR XML elements of putCardiology:\n\n- `content/Composition/section/entry/Procedure/focalDevice/manipulatedDevice/version`: Version of the device if the device has multiple releases under the same model or contains software or firmware.\n- `content/Composition/section/entry/Procedure/used/Device/version`: Version of the device."
      },
      {
        "id": "Device.conformsTo",
        "path": "Device.conformsTo",
        "max": "0"
      },
      {
        "id": "Device.property",
        "path": "Device.property",
        "max": "0"
      },
      {
        "id": "Device.mode",
        "path": "Device.mode",
        "max": "0"
      },
      {
        "id": "Device.cycle",
        "path": "Device.cycle",
        "max": "0"
      },
      {
        "id": "Device.duration",
        "path": "Device.duration",
        "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.endpoint",
        "path": "Device.endpoint",
        "max": "0"
      },
      {
        "id": "Device.gateway",
        "path": "Device.gateway",
        "max": "0"
      },
      {
        "id": "Device.note",
        "path": "Device.note",
        "max": "1",
        "type": [
          {
            "code": "Annotation",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-annotation"
            ]
          }
        ]
      },
      {
        "id": "Device.note.text",
        "path": "Device.note.text",
        "definition": "Carries these NEHR XML elements of putCardiology:\n\n- `content/Composition/section/entry/Procedure/focalDevice/manipulatedDevice/note/text`: The text of the annotation.\n- `content/Composition/section/entry/Procedure/used/Device/note/text`: Annotation text describing the device."
      },
      {
        "id": "Device.safety",
        "path": "Device.safety",
        "max": "0"
      },
      {
        "id": "Device.parent",
        "path": "Device.parent",
        "max": "0"
      }
    ]
  }
}