{
  "resourceType": "Bundle",
  "id": "example-digidot-transaction-update-encounter",
  "meta": {
    "profile": [
      "https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no|0.2.0"
    ],
    "tag": [
      {
        "display": "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."
      }
    ]
  },
  "type": "transaction",
  "entry": [
    {
      "fullUrl": "https://dent.example.org/fhir/Encounter/bundle-example-encounter-001",
      "resource": {
        "resourceType": "Encounter",
        "meta": {
          "profile": [
            "https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no|0.6.10"
          ]
        },
        "status": "finished",
        "class": {
          "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
          "code": "AMB"
        },
        "subject": {
          "reference": "https://mpi.example.org/fhir/Patient/example-patient",
          "type": "Patient"
        },
        "participant": [
          {
            "type": [
              {
                "coding": [
                  {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                    "code": "PPRF"
                  }
                ]
              }
            ],
            "individual": {
              "reference": "https://dent.example.org/fhir/Practitioner/example-dentist",
              "type": "Practitioner"
            }
          }
        ],
        "period": {
          "start": "2026-11-19T08:00:00+00:00",
          "end": "2026-11-19T08:45:00+00:00"
        },
        "location": [
          {
            "location": {
              "reference": "https://dent.example.org/fhir/Location/example-clinic"
            }
          }
        ],
        "serviceProvider": {
          "reference": "https://dent.example.org/fhir/Organization/example-county"
        },
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Synthetic contact with end time corrected to 09:45.</p></div>"
        },
        "identifier": [
          {
            "system": "https://ehr.example.org/identifiers/Encounter",
            "value": "bundle-example-encounter-001"
          }
        ],
        "id": "bundle-example-encounter-001"
      },
      "request": {
        "method": "PUT",
        "url": "Encounter/bundle-example-encounter-001",
        "ifMatch": "W/\"2\""
      }
    }
  ]
}