{
  "resourceType" : "Bundle",
  "id" : "referral-requester-chain-example",
  "type" : "collection",
  "entry" : [{
    "fullUrl" : "https://example.invalid/fhir/Account/referral-account",
    "resource" : {
      "resourceType" : "Account",
      "id" : "referral-account",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Account_referral-account\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Account referral-account</b></p><a name=\"referral-account\"> </a><a name=\"hcreferral-account\"> </a><p><b>status</b>: Active</p><p><b>owner</b>: Identifier: <code>https://example.invalid/organization</code>/tenant-example</p></div>"
      },
      "status" : "active",
      "owner" : {
        "identifier" : {
          "system" : "https://example.invalid/organization",
          "value" : "tenant-example"
        }
      }
    }
  },
  {
    "fullUrl" : "https://example.invalid/fhir/Encounter/referral-encounter",
    "resource" : {
      "resourceType" : "Encounter",
      "id" : "referral-encounter",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Encounter_referral-encounter\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Encounter referral-encounter</b></p><a name=\"referral-encounter\"> </a><a name=\"hcreferral-encounter\"> </a><p><b>status</b>: Planned</p><p><b>class</b>: <a href=\"http://terminology.hl7.org/7.5.0/CodeSystem-v3-ActCode.html#v3-ActCode-AMB\">ActCode: AMB</a> (ambulatory)</p><p><b>subject</b>: Identifier: <code>https://example.invalid/patient</code>/example</p><p><b>account</b>: <a href=\"Bundle-referral-requester-chain-example.html#Account_referral-account\">Account: status = active</a></p></div>"
      },
      "status" : "planned",
      "class" : {
        "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code" : "AMB"
      },
      "subject" : {
        "identifier" : {
          "system" : "https://example.invalid/patient",
          "value" : "example"
        }
      },
      "account" : [{
        "reference" : "Account/referral-account"
      }]
    }
  },
  {
    "fullUrl" : "https://example.invalid/fhir/Organization/referring-organization",
    "resource" : {
      "resourceType" : "Organization",
      "id" : "referring-organization",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Organization_referring-organization\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Organization referring-organization</b></p><a name=\"referring-organization\"> </a><a name=\"hcreferring-organization\"> </a><p><b>identifier</b>: <code>https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR</code>/999999999</p><p><b>name</b>: Synthetic referring practice</p></div>"
      },
      "identifier" : [{
        "system" : "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR",
        "value" : "999999999"
      }],
      "name" : "Synthetic referring practice"
    }
  },
  {
    "fullUrl" : "https://example.invalid/fhir/Practitioner/referring-practitioner",
    "resource" : {
      "resourceType" : "Practitioner",
      "id" : "referring-practitioner",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Practitioner_referring-practitioner\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Practitioner referring-practitioner</b></p><a name=\"referring-practitioner\"> </a><a name=\"hcreferring-practitioner\"> </a><p><b>identifier</b>: <code>https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR</code>/999999999</p></div>"
      },
      "identifier" : [{
        "system" : "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR",
        "value" : "999999999"
      }]
    }
  },
  {
    "fullUrl" : "https://example.invalid/fhir/PractitionerRole/referring-role",
    "resource" : {
      "resourceType" : "PractitionerRole",
      "id" : "referring-role",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"PractitionerRole_referring-role\"> </a><p class=\"res-header-id\"><b>Generated Narrative: PractitionerRole referring-role</b></p><a name=\"referring-role\"> </a><a name=\"hcreferring-role\"> </a><p><b>practitioner</b>: <a href=\"Bundle-referral-requester-chain-example.html#Practitioner_referring-practitioner\">Practitioner: identifier = https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR#999999999</a></p><p><b>organization</b>: <a href=\"Bundle-referral-requester-chain-example.html#Organization_referring-organization\">Organization Synthetic referring practice</a></p></div>"
      },
      "practitioner" : {
        "reference" : "Practitioner/referring-practitioner"
      },
      "organization" : {
        "reference" : "Organization/referring-organization"
      }
    }
  },
  {
    "fullUrl" : "https://example.invalid/fhir/ServiceRequest/referral-request",
    "resource" : {
      "resourceType" : "ServiceRequest",
      "id" : "referral-request",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"ServiceRequest_referral-request\"> </a><p class=\"res-header-id\"><b>Generated Narrative: ServiceRequest referral-request</b></p><a name=\"referral-request\"> </a><a name=\"hcreferral-request\"> </a><p><b>status</b>: Active</p><p><b>intent</b>: Order</p><p><b>category</b>: <span title=\"Codes:{https://fhir.cognovis.de/billing/CodeSystem/referral-route appointment-service}\">appointment-service</span></p><p><b>subject</b>: Identifier: <code>https://example.invalid/patient</code>/example</p><p><b>encounter</b>: <a href=\"Bundle-referral-requester-chain-example.html#Encounter_referral-encounter\">Encounter: status = planned; class = ambulatory (ActCode#AMB)</a></p><p><b>occurrence</b>: 2026-09-22 09:30:00+0200</p><p><b>requester</b>: <a href=\"Bundle-referral-requester-chain-example.html#PractitionerRole_referring-role\">PractitionerRole</a></p></div>"
      },
      "status" : "active",
      "intent" : "order",
      "category" : [{
        "coding" : [{
          "system" : "https://fhir.cognovis.de/billing/CodeSystem/referral-route",
          "code" : "appointment-service"
        }]
      }],
      "subject" : {
        "identifier" : {
          "system" : "https://example.invalid/patient",
          "value" : "example"
        }
      },
      "encounter" : {
        "reference" : "Encounter/referral-encounter"
      },
      "occurrenceDateTime" : "2026-09-22T09:30:00+02:00",
      "requester" : {
        "reference" : "PractitionerRole/referring-role"
      }
    }
  }]
}