{
  "resourceType": "StructureDefinition",
  "id": "Device-uv-ips",
  "meta": {
    "lastUpdated": "2018-02-14T10:49:41.487+00:00"
  },
  "url": "http://hl7.org/fhir/uv/ips/StructureDefinition/Device-uv-ips",
  "version": "0.2",
  "name": "DeviceUvIps",
  "title": "Device (IPS)",
  "status": "active",
  "experimental": false,
  "date": "2018-02-14",
  "publisher": "HL7 International",
  "description": "This profile represents the constraints applied to the Device resource by the International Patient Summary (IPS) FHIR Implementation Guide, based on FHIR R4. A device used by or implanted on the patient is described in the patient summary as an instance of a Device resource constrained by this profile.",
  "purpose": "This profile constrains the representation of a medical device used by or impanted on the patient, in the context of the international patient summary as specified by the IPS project of HL7 International.",
  "kind": "resource",
  "abstract": false,
  "type": "Device",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Device",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Device",
        "path": "Device",
        "comment": "This profile applies the rules defined by HL7 International for representing the UDI in the FHIR standard, by the document \"Medical Devices and Unique Device Identification (UDI) Pattern, Release 1\"",
        "mustSupport": true
      },
      {
        "id": "Device.meta",
        "path": "Device.meta",
        "mustSupport": false
      },
      {
        "id": "Device.meta.profile",
        "path": "Device.meta.profile",
        "fixedCanonical": "http://hl7.org/fhir/uv/ips/StructureDefinition/Device-uv-ips",
        "mustSupport": false
      },
      {
        "id": "Device.type",
        "path": "Device.type",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "description": "Discriminated by the bound value set",
          "rules": "open"
        },
        "short": "Type of device.\r\nPreferably valued by using SNOMED CT.\r\nThe absence of information, or of devices relevant for purpose of this IPS, shall be explicitly stated by using the codes included in the absent-or-unknown-devices-uv-ips value set.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "preferred",
          "description": "The type of device",
          "valueSetUnknownType_StructureDefinition.differential.element[3].binding": "http://hl7.org/fhir/uv/ips/ValueSet/medical-devices-uv-ips"
        }
      },
      {
        "id": "Device.type:absentOrUnknownDevice",
        "path": "Device.type",
        "sliceName": "absentOrUnknownDevice",
        "definition": "Slice to be valued in case of no information or known absence of relevant devices for the purpose of this IPS",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "absentOrUnknownDevice"
            }
          ],
          "strength": "required",
          "description": "Absent problem or unknown device",
          "valueSetUnknownType_StructureDefinition.differential.element[4].binding": "http://hl7.org/fhir/uv/ips/ValueSet/absent-or-unknown-devices-uv-ips"
        }
      },
      {
        "id": "Device.patient",
        "path": "Device.patient",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/uv/ips/StructureDefinition/Patient-uv-ips"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Device.patient.reference",
        "path": "Device.patient.reference",
        "min": 1,
        "mustSupport": true
      }
    ]
  }
}