<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="vkp-encounterDevice-v090" />
  <url value="http://ehelse.no/fhir/StructureDefinition/vkp-encounterDevice-v090" />
  <version value="0.9.0" />
  <name value="VkpEncounterDevice" />
  <status value="draft" />
  <date value="2019-11-28" />
  <description value="Simple extension for representing device identifier" />
  <fhirVersion value="4.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="element" />
    <expression value="Encounter" />
  </context>
  <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:identifier">
      <path value="Extension.extension" />
      <sliceName value="identifier" />
      <short value="A unique identifier of the device." />
      <definition value="A unique identifier of the device." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Extension.extension:identifier.url">
      <path value="Extension.extension.url" />
      <fixedUri value="identifier" />
    </element>
    <element id="Extension.extension:identifier.value[x]">
      <path value="Extension.extension.value[x]" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Extension.extension:displayName">
      <path value="Extension.extension" />
      <sliceName value="displayName" />
      <short value="A human readable name of the device" />
      <definition value="A human readable name of the device" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Extension.extension:displayName.url">
      <path value="Extension.extension.url" />
      <fixedUri value="displayName" />
    </element>
    <element id="Extension.extension:displayName.value[x]">
      <path value="Extension.extension.value[x]" />
      <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." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Extension.extension:type.url">
      <path value="Extension.extension.url" />
      <fixedUri value="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:location">
      <path value="Extension.extension" />
      <sliceName value="location" />
      <short value="Location of the device" />
      <definition value="The location of the device, e.g. living room." />
    </element>
    <element id="Extension.extension:location.url">
      <path value="Extension.extension.url" />
      <fixedUri value="location" />
    </element>
    <element id="Extension.extension:location.value[x]">
      <path value="Extension.extension.value[x]" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://ehelse.no/fhir/StructureDefinition/vkp-encounterDevice-v090" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>