{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2018-02-14T10:49:41.487+00:00"
  },
  "url": "http://hl7.org/fhir/ips/StructureDefinition/device-uv-ips",
  "version": "0.1",
  "name": "device-uv-ips",
  "title": "Device",
  "status": "draft",
  "experimental": true,
  "date": "2018-02-14",
  "publisher": "HL7 International",
  "contact": [
    {
      "name": "François Macary - PHAST",
      "telecom": [
        {
          "system": "email",
          "value": "francois.macary@phast.fr"
        }
      ]
    }
  ],
  "description": "This profile represents the constraints applied to the Device resource by the International Patient Summary (IPS) FHIR Implementation Guide, based on FHIR STU3. 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.",
  "fhirVersion": "3.0.1",
  "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\""
      },
      {
        "id": "Device.identifier",
        "path": "Device.identifier",
        "max": "1"
      },
      {
        "id": "Device.identifier.use",
        "path": "Device.identifier.use",
        "max": "0"
      },
      {
        "id": "Device.identifier.type",
        "path": "Device.identifier.type",
        "definition": "The type of identifier represents \"serial number\" (SNO)"
      },
      {
        "id": "Device.identifier.type.coding.system",
        "path": "Device.identifier.type.coding.system",
        "max": "0"
      },
      {
        "id": "Device.identifier.type.coding.version",
        "path": "Device.identifier.type.coding.version",
        "max": "0"
      },
      {
        "id": "Device.identifier.type.coding.code",
        "path": "Device.identifier.type.coding.code",
        "fixedCode": "SNO"
      },
      {
        "id": "Device.identifier.type.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Device.identifier.type.coding.display",
        "fixedString": "serial number"
      },
      {
        "id": "Device.identifier.type.coding.userSelected",
        "path": "Device.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Device.identifier.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Device.identifier.type.text",
        "max": "0"
      },
      {
        "id": "Device.identifier.system",
        "path": "Device.identifier.system",
        "max": "0"
      },
      {
        "id": "Device.identifier.value",
        "path": "Device.identifier.value",
        "label": "device serial number",
        "definition": "The serial number of the medical device"
      },
      {
        "id": "Device.identifier.period",
        "path": "Device.identifier.period",
        "max": "0"
      },
      {
        "id": "Device.identifier.assigner",
        "path": "Device.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Device.type",
        "path": "Device.type",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "coding.system"
            }
          ],
          "rules": "open"
        },
        "comment": "The FHIR-defined value set is different from the value set \"IPS Medical Devices\" defined by the IPS CDA IG: http://art-decor.org/art-decor/decor-valuesets--hl7ips-?id=2.16.840.1.113883.11.22.23&effectiveDate=2017-07-19T00:00:00&language=en-US"
      },
      {
        "id": "Device.type.coding",
        "path": "Device.type.coding",
        "type": [
          {
            "code": "Coding",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/coding-uv-ips"
          }
        ]
      },
      {
        "id": "Device.type:absentOrUnknownDevice",
        "path": "Device.type",
        "sliceName": "absentOrUnknownDevice",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "DeviceKind"
            }
          ],
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ips/ValueSet/device-kind"
          }
        }
      },
      {
        "id": "Device.type:device",
        "path": "Device.type",
        "sliceName": "device",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "DeviceKind"
            }
          ],
          "strength": "preferred",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ips/ValueSet/medical-devices-uv-ips"
          }
        }
      },
      {
        "id": "Device.manufactureDate",
        "path": "Device.manufactureDate",
        "definition": "The date and time when the device was manufactured. If hour is present, minutes and seconds should be both set to \"00\""
      },
      {
        "id": "Device.expirationDate",
        "path": "Device.expirationDate",
        "definition": "The date and time beyond which this device is no longer valid or should not be used (if applicable). If hour is present, minutes and seconds should be both set to \"00\"."
      },
      {
        "id": "Device.patient",
        "path": "Device.patient",
        "min": 1
      },
      {
        "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"
      }
    ]
  }
}