<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="vkp-encounterDevice-v06" />
  <url value="http://ehelse.no/fhir/StructureDefinition/vkp-encounterDevice-v06" />
  <version value="0.6" />
  <name value="vkp-encounterDevice-v06" />
  <status value="draft" />
  <date value="2019-02-06" />
  <description value="Simple extension for representing device identifier" />
  <fhirVersion value="3.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <contextType value="resource" />
  <context value="Encounter.classHistory" />
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="logical reference to the device" />
      <definition value="The device used in the patient encounter. For example, a particular camera device&#xD;&#xA;&#xD;&#xA;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. Could also contain a displayname of the device" />
    </element>
    <element id="Extension.extension">
      <path value="Extension.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Extension.extension:deviceIdentifier">
      <path value="Extension.extension" />
      <sliceName value="deviceIdentifier" />
      <short value="logical reference to the device" />
      <definition value="The device used in the patient encounter. For example, a particular camera device&#xD;&#xA;&#xD;&#xA;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." />
    </element>
    <element id="Extension.extension:deviceIdentifier.url">
      <path value="Extension.extension.url" />
      <fixedUri value="deviceIdentifier" />
    </element>
    <element id="Extension.extension:deviceIdentifier.value[x]:valueIdentifier">
      <path value="Extension.extension.valueIdentifier" />
      <sliceName value="valueIdentifier" />
      <short value="Logical reference to the device" />
      <definition value="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 value="Identifier" />
      </type>
    </element>
    <element id="Extension.extension:deviceIdentifier.value[x]:valueIdentifier.system">
      <path value="Extension.extension.valueIdentifier.system" />
      <min value="1" />
    </element>
    <element id="Extension.extension:deviceIdentifier.value[x]:valueIdentifier.value">
      <path value="Extension.extension.valueIdentifier.value" />
      <min value="1" />
    </element>
    <element id="Extension.extension:display">
      <path value="Extension.extension" />
      <sliceName value="display" />
      <short value="displayname of the device" />
      <definition value="Plain text narrative that identifies the device" />
    </element>
    <element id="Extension.extension:display.url">
      <path value="Extension.extension.url" />
      <fixedUri value="display" />
    </element>
    <element id="Extension.extension:display.value[x]:valueString">
      <path value="Extension.extension.valueString" />
      <sliceName value="valueString" />
      <short value="displayname of the device" />
      <definition value="Plain text narrative that identifies the device" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Extension.extension:type">
      <path value="Extension.extension" />
      <sliceName value="type" />
      <short value="Generic type of the device" />
      <definition value="Generic type of the device, e.g. Trykknapp, Snortrekk, Roommate." />
      <max value="1" />
    </element>
    <element id="Extension.extension:type.url">
      <path value="Extension.extension.url" />
      <fixedUri value="type" />
    </element>
    <element id="Extension.extension:type.value[x]:valueString">
      <path value="Extension.extension.valueString" />
      <sliceName value="valueString" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Extension.extension:typeName">
      <path value="Extension.extension" />
      <sliceName value="typeName" />
      <short value="Specific type of the device" />
      <definition value="Specific typename/model, specified by the client" />
      <max value="1" />
    </element>
    <element id="Extension.extension:typeName.url">
      <path value="Extension.extension.url" />
      <fixedUri value="typeName" />
    </element>
    <element id="Extension.extension:typeName.value[x]:valueString">
      <path value="Extension.extension.valueString" />
      <sliceName value="valueString" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://ehelse.no/fhir/StructureDefinition/vkp-encounterDevice-v06" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>