<Bundle xmlns="http://hl7.org/fhir">
  <id value="example-digidot-transaction-update-encounter" />
  <meta>
    <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no|0.2.0" />
    <tag>
      <display value="Draft DENT example: update the complete existing Encounter after reading its stored version 2. The ifMatch value is a resource version, not a profile version." />
    </tag>
  </meta>
  <type value="transaction" />
  <entry>
    <fullUrl value="https://dent.example.org/fhir/Encounter/bundle-example-encounter-001" />
    <resource>
      <Encounter>
        <id value="bundle-example-encounter-001" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no|0.6.10" />
        </meta>
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>Synthetic contact with end time corrected to 09:45.</p>
          </div>
        </text>
        <identifier>
          <system value="https://ehr.example.org/identifiers/Encounter" />
          <value value="bundle-example-encounter-001" />
        </identifier>
        <status value="finished" />
        <class>
          <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode" />
          <code value="AMB" />
        </class>
        <subject>
          <reference value="https://mpi.example.org/fhir/Patient/example-patient" />
          <type value="Patient" />
        </subject>
        <participant>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v3-ParticipationType" />
              <code value="PPRF" />
            </coding>
          </type>
          <individual>
            <reference value="https://dent.example.org/fhir/Practitioner/example-dentist" />
            <type value="Practitioner" />
          </individual>
        </participant>
        <period>
          <start value="2026-11-19T09:00:00+01:00" />
          <end value="2026-11-19T09:45:00+01:00" />
        </period>
        <location>
          <location>
            <reference value="https://dent.example.org/fhir/Location/example-clinic" />
          </location>
        </location>
        <serviceProvider>
          <reference value="https://dent.example.org/fhir/Organization/example-county" />
        </serviceProvider>
      </Encounter>
    </resource>
    <request>
      <method value="PUT" />
      <url value="Encounter/bundle-example-encounter-001" />
      <ifMatch value="W/&quot;2&quot;" />
    </request>
  </entry>
</Bundle>