<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="vkp-digital-Encounter-v06" />
  <url value="http://ehelse.no/fhir/StructureDefinition/vkp-digital-Encounter-v06" />
  <version value="0.6" />
  <name value="vkp-digital-Encounter-v06" />
  <status value="draft" />
  <date value="2018-09-07" />
  <description value="The digital (virtual) Encounter is caracterized as an encounter that uses some technological mean to perform the encounter instead of a face-to-face meeting." />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Encounter" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Encounter" />
  <derivation value="constraint" />
  <differential>
    <element id="Encounter">
      <path value="Encounter" />
      <short value="An digital/virtual interaction during which services are provided to the patient" />
      <definition value="The digital (virtual) Encounter is caracterized as an encounter that uses some technological mean to perform the encounter instead of a face-to-face meeting.&#xD;&#xA;&#xD;&#xA;An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient." />
      <comment value="The use-case in question is performing a virtual encounter using a camera device to perform the encounter." />
      <alias value="digitalt tilsyn" />
    </element>
    <element id="Encounter.extension">
      <path value="Encounter.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Encounter.extension:note">
      <path value="Encounter.extension" />
      <sliceName value="note" />
      <short value="A journal note" />
      <definition value="A journal note to document the digital encounter.&#xD;&#xA;Can be XHTML formatted text.&#xD;&#xA;In the VKP project in Norway the note is used for: &#xD;&#xA;Response summary: A text describing the resolution of the digital-Encounter event&#xD;&#xA;&#xD;&#xA;Example:&#xD;&#xA;~~~&#xD;&#xA;{&#xD;&#xA;      &quot;url&quot;:&quot;http://ehelse.no/fhir/StructureDefinition/vkp-annotation-v06&quot;,&#xD;&#xA;      &quot;extension&quot;: [&#xD;&#xA;          {&#xD;&#xA;              &quot;url&quot;:&quot;note&quot;,&#xD;&#xA;             &quot;valueAnnotation&quot;:{&#xD;&#xA;                  &quot;authorReference&quot;:{&#xD;&#xA;                      &quot;identifier&quot;:{&#xD;&#xA;                          &quot;system&quot;:&quot;urn:oid:2.16.578.1.12.4.1.4.1&quot;,&#xD;&#xA;                          &quot;value&quot;:&quot;04056600324&quot;&#xD;&#xA;                     },&#xD;&#xA;                      &quot;display&quot;:&quot;Magnar Koman&quot;&#xD;&#xA;                  },&#xD;&#xA;                  &quot;time&quot;:&quot;2018-06-25T08:00:00.936Z&quot;,&#xD;&#xA;                  &quot;text&quot;:&quot;Selve teksten til journalnotatet.&quot;&#xD;&#xA;              }&#xD;&#xA;          }&#xD;&#xA;      ]&#xD;&#xA;}&#xD;&#xA;~~~" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://ehelse.no/fhir/StructureDefinition/vkp-annotation-v06" />
      </type>
    </element>
    <element id="Encounter.extension:signature">
      <path value="Encounter.extension" />
      <sliceName value="signature" />
      <short value="Signature for the journal note" />
      <definition value="When a journal note is to document the digital encounter in the EHR it needs a string identifying who registered the note. A signature of who registered the information should be present in all events, even when there is no text in the journal note.&#xD;&#xA;&#xD;&#xA;Can be XHTML formatted text.&#xD;&#xA;In the VKP project in Norway the signature is used for: &#xD;&#xA;Signature: Name of author plus a system specific signature identifying the user who submitted the Composition (user name in the system).&#xD;&#xA;&#xD;&#xA;Example:&#xD;&#xA;~~~&#xD;&#xA;{&#xD;&#xA;   &quot;url&quot;:&quot;http://ehelse.no/fhir/StructureDefinition/vkp-annotation-v06&quot;,&#xD;&#xA;      &quot;extension&quot;: [&#xD;&#xA;          {&#xD;&#xA;              &quot;url&quot;:&quot;signature&quot;,&#xD;&#xA;              &quot;valueAnnotation&quot;:{&#xD;&#xA;                 &quot;time&quot;:&quot;2018-06-25T08:00:00.936Z&quot;,&#xD;&#xA;                 &quot;text&quot;:&quot;Magnar Koman (signatur)&quot;&#xD;&#xA;             }&#xD;&#xA;          }&#xD;&#xA;      ]&#xD;&#xA;}&#xD;&#xA;~~~" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://ehelse.no/fhir/StructureDefinition/vkp-annotation-v06" />
      </type>
    </element>
    <element id="Encounter.extension:device">
      <path value="Encounter.extension" />
      <sliceName value="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.&#xD;&#xA;Could also contain a display name of the device" />
      <min value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://ehelse.no/fhir/StructureDefinition/vkp-encounterDevice-v06" />
      </type>
    </element>
    <element id="Encounter.extension:device.extension">
      <path value="Encounter.extension.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Encounter.extension:device.extension:deviceIdentifier">
      <path value="Encounter.extension.extension" />
      <sliceName value="deviceIdentifier" />
      <max value="1" />
    </element>
    <element id="Encounter.extension:device.extension:display">
      <path value="Encounter.extension.extension" />
      <sliceName value="display" />
      <max value="1" />
    </element>
    <element id="Encounter.identifier">
      <path value="Encounter.identifier" />
      <definition value="Unique code or number identifying the Encounter&#xD;&#xA;&#xD;&#xA;VKP project uses UUID. &#xD;&#xA;&#xD;&#xA;Example:&#xD;&#xA;~~~&#xD;&#xA;&quot;identifier&quot;: [&#xD;&#xA;     {&#xD;&#xA;         &quot;system&quot;:&quot;urn:ietf:rfc:3986&quot;,&#xD;&#xA;         &quot;value&quot;:&quot;urn:uuid:a76d9bbf-f293-4fb7-ad4c-2851cac77162&quot;&#xD;&#xA;     }&#xD;&#xA;]&#xD;&#xA;~~~" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.identifier.system">
      <path value="Encounter.identifier.system" />
      <fixedUri value="urn:ietf:rfc:3986" />
    </element>
    <element id="Encounter.identifier.value">
      <path value="Encounter.identifier.value" />
      <definition value="The actual uniqe identifier (UUID)&#xD;&#xA;&#xD;&#xA;The portion of the identifier typically relevant to the user and which is unique within the context of the system." />
    </element>
    <element id="Encounter.class">
      <path value="Encounter.class" />
      <short value="Encounter class for digital Encounter" />
      <definition value="VKP uses a valueset for encounter class for digital Encounter http://ehelse.no/fhir/ValueSet/vkp-encounter-class-v06" />
      <binding>
        <strength value="extensible" />
        <valueSetReference>
          <reference value="http://ehelse.no/fhir/ValueSet/vkp-encounter-class-v06" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Encounter.class.system">
      <path value="Encounter.class.system" />
      <definition value="VKP uses http://ehelse.no/fhir/CodeSystem/vkp-encounter-class-v06&#xD;&#xA;The identification of the code system that defines the meaning of the symbol in the code." />
      <fixedUri value="http://ehelse.no/fhir/CodeSystem/vkp-encounter-class-v06" />
    </element>
    <element id="Encounter.classHistory">
      <path value="Encounter.classHistory" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.classHistory.extension">
      <path value="Encounter.classHistory.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Encounter.classHistory.extension:device">
      <path value="Encounter.classHistory.extension" />
      <sliceName value="device" />
      <definition value="Devices used during the patient encounter. For example, a particular camera device.&#xD;&#xA;&#xD;&#xA;VKP-norway: Should contain a displaynames of the devices" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://ehelse.no/fhir/StructureDefinition/vkp-encounterDevice-v06" />
      </type>
    </element>
    <element id="Encounter.classHistory.extension:device.extension">
      <path value="Encounter.classHistory.extension.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Encounter.classHistory.extension:device.extension:display">
      <path value="Encounter.classHistory.extension.extension" />
      <sliceName value="display" />
      <max value="1" />
    </element>
    <element id="Encounter.classHistory.class">
      <path value="Encounter.classHistory.class" />
      <short value="Encounter class for digital Encounter" />
      <definition value="VKP uses a valueset for encounter class for digital Encounter http://ehelse.no/fhir/ValueSet/vkp-encounter-class-v06" />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSetReference>
          <reference value="http://ehelse.no/fhir/ValueSet/vkp-encounter-class-v06" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Encounter.classHistory.class.system">
      <path value="Encounter.classHistory.class.system" />
      <fixedUri value="http://ehelse.no/fhir/CodeSystem/vkp-encounter-class-v06" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.classHistory.class.code">
      <path value="Encounter.classHistory.class.code" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.classHistory.period">
      <path value="Encounter.classHistory.period" />
      <definition value="Time period for the digital encounter, the system should provide both start and end times.&#xD;&#xA;If the start-time is not known a single end time can be provided as a timestamp for the Encounter.&#xD;&#xA;&#xD;&#xA;Example code: &#xD;&#xA;~~~&#xD;&#xA;&quot;period&quot;:{&#xD;&#xA;   &quot;start&quot;:&quot;2018-06-25T09:56:23.945+02:00&quot;,&#xD;&#xA;   &quot;end&quot;:&quot;2018-06-25T10:01:03.936+02:00&quot;&#xD;&#xA;}&#xD;&#xA;~~~" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.classHistory.period.start">
      <path value="Encounter.classHistory.period.start" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.classHistory.period.end">
      <path value="Encounter.classHistory.period.end" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.type">
      <path value="Encounter.type" />
      <short value="Event type" />
      <definition value="Encounter type &#xD;&#xA;tilsyn|hendelse" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSetReference>
          <reference value="http://ehelse.no/fhir/ValueSet/vkp-encounter-type-v05" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Encounter.subject">
      <path value="Encounter.subject" />
      <short value="The patient or group present at the encounter" />
      <definition value="Reference to the patient that is subject to the encounter, identified by Norwegian national id number (Fødselsnummer or DNR).&#xD;&#xA;&#xD;&#xA;A link to a resource representing the person or the group to whom the medication will be given.&#xD;&#xA;&#xD;&#xA;VKP always references a Patient Resource using a norwegian national id number (Fødslesnummer or DNR) in a logical identifier in the subject.identifier element.&#xD;&#xA;The Name of the patient should be given in the subject.display element.&#xD;&#xA;&#xD;&#xA;Example:&#xD;&#xA;~~~~&#xD;&#xA;&quot;subject&quot;:{&#xD;&#xA;   &quot;identifier&quot;:{&#xD;&#xA;      &quot;system&quot;:&quot;urn:oid:2.16.578.1.12.4.1.4.1&quot;,&#xD;&#xA;      &quot;value&quot;:&quot;05073500186&quot;&#xD;&#xA;     },&#xD;&#xA;     &quot;display&quot;:&quot;Ærlend Sørgård&quot;&#xD;&#xA;}&#xD;&#xA;~~~~" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.no/fhir/StructureDefinition/no-basis-Patient" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://ehelse.no/fhir/StructureDefinition/vkp-Patient-v06" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Encounter.subject.identifier">
      <path value="Encounter.subject.identifier" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.subject.identifier.system">
      <path value="Encounter.subject.identifier.system" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.subject.identifier.value">
      <path value="Encounter.subject.identifier.value" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.subject.display">
      <path value="Encounter.subject.display" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.participant">
      <path value="Encounter.participant" />
      <definition value="Refernce to the individual that participated in the encounter, usually health care provider. Identified using Norwegian national id number (fødselsnummer).&#xD;&#xA;The Name of the participant should be given in the subject.display element.&#xD;&#xA;&#xD;&#xA;Example: &#xD;&#xA;~~~~&#xD;&#xA;&quot;participant&quot;: [&#xD;&#xA;   {&#xD;&#xA;      &quot;individual&quot;:{&#xD;&#xA;         &quot;identifier&quot;:{&#xD;&#xA;            &quot;system&quot;:&quot;urn:oid:2.16.578.1.12.4.1.4.1&quot;,&#xD;&#xA;            &quot;value&quot;:&quot;04056600324&quot;&#xD;&#xA;         },&#xD;&#xA;         &quot;display&quot;:&quot;Magnar Koman&quot;&#xD;&#xA;      }&#xD;&#xA;   }&#xD;&#xA;]&#xD;&#xA;~~~~" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.participant.individual">
      <path value="Encounter.participant.individual" />
      <short value="Refernce to the individual that participated in the encounter" />
      <definition value="Refernce to the individual that participated in the encounter, usually health care provider. Identified using Norwegian national id number (fødselsnummer).&#xD;&#xA;The Name of the participant should be given in the subject.display element." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Encounter.participant.individual.identifier">
      <path value="Encounter.participant.individual.identifier" />
      <definition value="Logical refernce to the individual that participated in the encounter, usually health care provider. Identified using Norwegian national id number (fødselsnummer).&#xD;&#xA;The Name of the participant should be given in the subject.display element.&#xD;&#xA;&#xD;&#xA;An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference." />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.participant.individual.identifier.system">
      <path value="Encounter.participant.individual.identifier.system" />
      <short value="The official name of the FNR namespace" />
      <definition value="The official name of the FNR namespace, identified by its oid value&#xD;&#xA;&#xD;&#xA;Establishes the namespace for the value - that is, a URL that describes a set values that are unique." />
      <fixedUri value="urn:oid:2.16.578.1.12.4.1.4.1" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.participant.individual.identifier.value">
      <path value="Encounter.participant.individual.identifier.value" />
      <short value="The FNR of the individual" />
      <definition value="The FNR value identifying the participant&#xD;&#xA;&#xD;&#xA;The portion of the identifier typically relevant to the user and which is unique within the context of the system." />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.participant.individual.display">
      <path value="Encounter.participant.individual.display" />
      <short value="Tha name of the individual" />
      <definition value="Tha name of the individual&#xD;&#xA;&#xD;&#xA;Plain text narrative that identifies the resource in addition to the resource reference." />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.period">
      <path value="Encounter.period" />
      <short value="The start and end time of the digital encounter" />
      <definition value="Time period for the digital encounter, the system should provide both start and end times.&#xD;&#xA;If the start-time is not known a single end time can be provided as a timestamp for the Encounter.&#xD;&#xA;&#xD;&#xA;Example code: &#xD;&#xA;~~~&#xD;&#xA;&quot;period&quot;:{&#xD;&#xA;   &quot;start&quot;:&quot;2018-06-25T09:56:23.945+02:00&quot;,&#xD;&#xA;   &quot;end&quot;:&quot;2018-06-25T10:01:03.936+02:00&quot;&#xD;&#xA;}&#xD;&#xA;~~~" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.period.start">
      <path value="Encounter.period.start" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.period.end">
      <path value="Encounter.period.end" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.reason">
      <path value="Encounter.reason" />
      <definition value="Reason the encounter takes place, coded according to http://ehelse.no/fhir/ValueSet/vkp-encounter-reason-v05" />
      <max value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="vkp-encounter-reason-v05" />
        <valueSetReference>
          <reference value="http://ehelse.no/fhir/ValueSet/vkp-encounter-reason-v05" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Encounter.location">
      <path value="Encounter.location" />
      <definition value="VKP uses this refererence to name location where the digital-Encounter takes place. Typically includes only location.location.display element with a textual description of the location.&#xD;&#xA;&#xD;&#xA;List of locations where  the patient has been during this encounter." />
      <comment value="Virtual encounters can be recorded in the Encounter by specifying a location reference to a location of type &quot;kind&quot; such as &quot;client's home&quot; and an encounter.class = &quot;virtual&quot;.&#xD;&#xA;&#xD;&#xA;VKP Example:&#xD;&#xA;~~~&#xD;&#xA; &quot;location&quot;: [&#xD;&#xA;        {&#xD;&#xA;            &quot;location&quot;:{&#xD;&#xA;                &quot;display&quot;:&quot;rom24 @ sykehjem&quot;&#xD;&#xA;            }&#xD;&#xA;        }&#xD;&#xA;    ]&#xD;&#xA;~~~" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.location.location">
      <path value="Encounter.location.location" />
      <definition value="A location reference. Only display value is supported by the VKP.&#xD;&#xA;&#xD;&#xA;The location where the encounter takes place." />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.location.location.display">
      <path value="Encounter.location.location.display" />
      <definition value="The Display value for the location. In vkp the format is usually &quot;[room or room-number] @ [location name]&quot;.&#xD;&#xA;&#xD;&#xA;Plain text narrative that identifies the resource in addition to the resource reference." />
      <example>
        <label value="display" />
        <valueString value="&quot;rom24 @ sykehjem&quot;" />
      </example>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>