{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2018-03-06T09:17:58.014+00:00"
  },
  "url": "http://trilliumbridge.eu/fhir/StructureDefinition/deviceusestatement-uv-trillium2",
  "version": "0.04",
  "name": "DeviceUseStatement-uv-trillium2",
  "status": "draft",
  "date": "2017-11-27T14:37:27.645+00:00",
  "publisher": "Trillium II",
  "contact": [
    {
      "name": "François Macary - PHAST"
    }
  ],
  "description": "This profile represents the contraints applied to the DeviceUseStatement resource by the Trillium II project, which specifies an international patient summary based on the FHIR standard STU3. An instance of DeviceUseStatement represents one statement about the patient's current devices.",
  "purpose": "In the Trillium II international patient summary, the DeviceUseStatement resource is an item of the list of current medical devices used by or implanted on the patient. This resource captures a statement about one medical device currently used or implanted.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "DeviceUseStatement",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DeviceUseStatement",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DeviceUseStatement.modifierExtension",
        "path": "DeviceUseStatement.modifierExtension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "DeviceUseStatement.modifierExtension:unknownOrNone",
        "path": "DeviceUseStatement.modifierExtension",
        "sliceName": "unknownOrNone",
        "short": "Extensions that cannot be ignored",
        "definition": "Optional Extension Element usable in the DeviceUseStatement resource. This element carries a codeable concept meaning \"no device or implant\" or a codeable concept meaning \"patient's devices/implants unknown\"",
        "type": [
          {
            "code": "Extension",
            "profile": "http://trilliumbridge.eu/fhir/StructureDefinition/unkownornodevice-uv-trillium2"
          }
        ]
      },
      {
        "id": "DeviceUseStatement.identifier.use",
        "path": "DeviceUseStatement.identifier.use",
        "max": "0"
      },
      {
        "id": "DeviceUseStatement.identifier.type",
        "path": "DeviceUseStatement.identifier.type",
        "short": "Type of identifier Serial Number",
        "min": 1
      },
      {
        "id": "DeviceUseStatement.identifier.type.coding.code",
        "path": "DeviceUseStatement.identifier.type.coding.code",
        "fixedCode": "SNO"
      },
      {
        "id": "DeviceUseStatement.identifier.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "DeviceUseStatement.identifier.type.text",
        "max": "0"
      },
      {
        "id": "DeviceUseStatement.identifier.value",
        "path": "DeviceUseStatement.identifier.value",
        "definition": "The only identifier admitted is the serial number of the device",
        "min": 1
      },
      {
        "id": "DeviceUseStatement.status",
        "path": "DeviceUseStatement.status",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "DeviceUseStatementStatus"
            }
          ],
          "strength": "required",
          "valueSetUri": "http://trilliumbridge.eu/fhir/ValueSet/device-statement-status-uv-trillium2"
        }
      },
      {
        "id": "DeviceUseStatement.subject",
        "path": "DeviceUseStatement.subject",
        "definition": "The patient using the device.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "DeviceUseStatement.whenUsed",
        "path": "DeviceUseStatement.whenUsed",
        "min": 1
      },
      {
        "id": "DeviceUseStatement.timing[x]",
        "path": "DeviceUseStatement.timing[x]",
        "max": "0"
      },
      {
        "id": "DeviceUseStatement.recordedOn",
        "path": "DeviceUseStatement.recordedOn",
        "min": 1
      },
      {
        "id": "DeviceUseStatement.device",
        "path": "DeviceUseStatement.device",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://trilliumbridge.eu/fhir/StructureDefinition/device-uv-trillium2"
          }
        ]
      },
      {
        "id": "DeviceUseStatement.device.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "DeviceUseStatement.device.display",
        "comment": "There are 3 situations in which there is no Device resource to be referenced. In these cases \"display\" is the only element present. The elements \"reference\" and \"identifier\" are omitted\". These 3 situations are:\r\na) The only information available about the device is a textual designation.\r\nb) The patient does not use any device. In this case \"display\" contains \"no device or implant\"\r\nc) The information about patient's device is not available. In this case \"display\" contains \"patient devices unknown\"\r\nCases b) and c) are inforced by populating the extension element \"unknownOrNone\" with a codeable concept having the corresponding meaning."
      },
      {
        "id": "DeviceUseStatement.indication.coding",
        "path": "DeviceUseStatement.indication.coding",
        "binding": {
          "strength": "example",
          "valueSetUri": "http://trilliumbridge.eu/fhir/ValueSet/reason-for-use"
        }
      },
      {
        "id": "DeviceUseStatement.bodySite.coding",
        "path": "DeviceUseStatement.bodySite.coding",
        "binding": {
          "strength": "example",
          "valueSetUri": "http://hl7.org/fhir/ValueSet/body-site"
        }
      }
    ]
  }
}