{
  "resourceType": "Bundle",
  "id": "example-digidot-transaction-create-encounter",
  "meta": {
    "profile": [
      "https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no|0.2.0"
    ],
    "tag": [
      {
        "display": "Draft DENT example: create one Encounter. The referenced MPI Patient, practitioner, organisation and location must already be available. Addresses and identifiers are synthetic."
      }
    ]
  },
  "type": "transaction",
  "entry": [
    {
      "fullUrl": "urn:uuid:11111111-1111-4111-8111-111111111111",
      "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:40: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 completed dental contact, 19 November 2026, 09:00 to 09:40.</p></div>"
        },
        "identifier": [
          {
            "system": "https://ehr.example.org/identifiers/Encounter",
            "value": "bundle-example-encounter-001"
          }
        ]
      },
      "request": {
        "method": "POST",
        "url": "Encounter"
      }
    }
  ]
}