{
  "resourceType": "StructureDefinition",
  "id": "vkp-encounterDevice-v06",
  "url": "http://ehelse.no/fhir/StructureDefinition/vkp-encounterDevice-v06",
  "version": "0.6",
  "name": "vkp-encounterDevice-v06",
  "status": "draft",
  "date": "2019-02-06",
  "description": "Simple extension for representing device identifier",
  "fhirVersion": "3.0.1",
  "kind": "complex-type",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "Encounter.classHistory"
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "logical reference to the device",
        "definition": "The device used in the patient encounter. For example, a particular camera device\r\n\r\nVKP-norway: Should be a logical reference containing the IMEI/serial number of the device. display value should contain the name of the device type. Could also contain a displayname of the device"
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Extension.extension:deviceIdentifier",
        "path": "Extension.extension",
        "sliceName": "deviceIdentifier",
        "short": "logical reference to the device",
        "definition": "The device used in the patient encounter. For example, a particular camera device\r\n\r\nVKP-norway: Should be a logical reference containing the IMEI/serial number of the device. display value should contain the name of the device type."
      },
      {
        "id": "Extension.extension:deviceIdentifier.url",
        "path": "Extension.extension.url",
        "fixedUri": "deviceIdentifier"
      },
      {
        "id": "Extension.extension:deviceIdentifier.value[x]:valueIdentifier",
        "path": "Extension.extension.valueIdentifier",
        "sliceName": "valueIdentifier",
        "short": "Logical reference to the device",
        "definition": "Logical reference to the device. VKP-norway: Should be a logical reference containing the IMEI/serial number of the device. display value should contain the name of the device type. VKP uses serial numbers decided by the manufacturer of the device",
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "Extension.extension:deviceIdentifier.value[x]:valueIdentifier.system",
        "path": "Extension.extension.valueIdentifier.system",
        "min": 1
      },
      {
        "id": "Extension.extension:deviceIdentifier.value[x]:valueIdentifier.value",
        "path": "Extension.extension.valueIdentifier.value",
        "min": 1
      },
      {
        "id": "Extension.extension:display",
        "path": "Extension.extension",
        "sliceName": "display",
        "short": "displayname of the device",
        "definition": "Plain text narrative that identifies the device"
      },
      {
        "id": "Extension.extension:display.url",
        "path": "Extension.extension.url",
        "fixedUri": "display"
      },
      {
        "id": "Extension.extension:display.value[x]:valueString",
        "path": "Extension.extension.valueString",
        "sliceName": "valueString",
        "short": "displayname of the device",
        "definition": "Plain text narrative that identifies the device",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Extension.extension:type",
        "path": "Extension.extension",
        "sliceName": "type",
        "short": "Generic type of the device",
        "definition": "Generic type of the device, e.g. Trykknapp, Snortrekk, Roommate.",
        "max": "1"
      },
      {
        "id": "Extension.extension:type.url",
        "path": "Extension.extension.url",
        "fixedUri": "type"
      },
      {
        "id": "Extension.extension:type.value[x]:valueString",
        "path": "Extension.extension.valueString",
        "sliceName": "valueString",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Extension.extension:typeName",
        "path": "Extension.extension",
        "sliceName": "typeName",
        "short": "Specific type of the device",
        "definition": "Specific typename/model, specified by the client",
        "max": "1"
      },
      {
        "id": "Extension.extension:typeName.url",
        "path": "Extension.extension.url",
        "fixedUri": "typeName"
      },
      {
        "id": "Extension.extension:typeName.value[x]:valueString",
        "path": "Extension.extension.valueString",
        "sliceName": "valueString",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://ehelse.no/fhir/StructureDefinition/vkp-encounterDevice-v06"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "max": "0"
      }
    ]
  }
}