{
  "resourceType": "StructureDefinition",
  "id": "vkp-medicationDispenseDevice-v090",
  "url": "http://ehelse.no/fhir/StructureDefinition/VkpMedicationDispenseDevice-v090",
  "version": "0.9.0",
  "name": "VkpMedicationDispenseDevice",
  "status": "draft",
  "description": "x",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "MedicationDispense"
    }
  ],
  "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:identifier",
        "path": "Extension.extension",
        "sliceName": "identifier",
        "short": "A unique identifier of the device.",
        "definition": "A unique identifier of the device.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:identifier.url",
        "path": "Extension.extension.url",
        "fixedUri": "identifier"
      },
      {
        "id": "Extension.extension:identifier.value[x]",
        "path": "Extension.extension.value[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Extension.extension:displayName",
        "path": "Extension.extension",
        "sliceName": "displayName",
        "short": "A human readable name of the device",
        "definition": "A human readable name of the device",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:displayName.url",
        "path": "Extension.extension.url",
        "fixedUri": "displayName"
      },
      {
        "id": "Extension.extension:displayName.value[x]",
        "path": "Extension.extension.value[x]",
        "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. Pill dispenser",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:type.url",
        "path": "Extension.extension.url",
        "fixedUri": "type"
      },
      {
        "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:location",
        "path": "Extension.extension",
        "sliceName": "location",
        "short": "Location of the device",
        "definition": "The location of the device, e.g. living room."
      },
      {
        "id": "Extension.extension:location.url",
        "path": "Extension.extension.url",
        "fixedUri": "location"
      },
      {
        "id": "Extension.extension:location.value[x]",
        "path": "Extension.extension.value[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://ehelse.no/fhir/StructureDefinition/VkpMedicationDispenseDevice-v090"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "max": "0"
      }
    ]
  }
}