<?xml version="1.0" encoding="UTF-8"?>

<Bundle xmlns="http://hl7.org/fhir">
  <id value="billing-workflow-tasks-example"/>
  <type value="collection"/>
  <entry>
    <fullUrl value="https://example.invalid/fhir/Account/private-review-account"/>
    <resource>
      <Account>
        <id value="private-review-account"/>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="Account_private-review-account"> </a><p class="res-header-id"><b>Generated Narrative: Account private-review-account</b></p><a name="private-review-account"> </a><a name="hcprivate-review-account"> </a><p><b>identifier</b>: <code>https://example.invalid/account</code>/private-review-account</p><p><b>status</b>: Active</p></div>
        </text>
        <identifier>
          <system value="https://example.invalid/account"/>
          <value value="private-review-account"/>
        </identifier>
        <status value="active"/>
      </Account>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.invalid/fhir/Account/private-review-unknown"/>
    <resource>
      <Account>
        <id value="private-review-unknown"/>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="Account_private-review-unknown"> </a><p class="res-header-id"><b>Generated Narrative: Account private-review-unknown</b></p><a name="private-review-unknown"> </a><a name="hcprivate-review-unknown"> </a><p><b>identifier</b>: <code>https://example.invalid/account</code>/private-review-unknown</p><p><b>status</b>: Active</p></div>
        </text>
        <identifier>
          <system value="https://example.invalid/account"/>
          <value value="private-review-unknown"/>
        </identifier>
        <status value="active"/>
      </Account>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.invalid/fhir/Task/private-review-reviewed"/>
    <resource>
      <Task>
        <id value="private-review-reviewed"/>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="Task_private-review-reviewed"> </a><p class="res-header-id"><b>Generated Narrative: Task private-review-reviewed</b></p><a name="private-review-reviewed"> </a><a name="hcprivate-review-reviewed"> </a><p><b>status</b>: Completed</p><p><b>businessStatus</b>: <span title="Codes:{https://fhir.cognovis.de/billing/CodeSystem/billing-workflow-state reviewed}">Reviewed</span></p><p><b>intent</b>: order</p><p><b>code</b>: <span title="Codes:{https://fhir.cognovis.de/billing/CodeSystem/billing-lifecycle-activity private-review-decision}">Private review decision</span></p><p><b>focus</b>: <a href="Bundle-billing-workflow-tasks-example.html#Account_private-review-account">Account: identifier = https://example.invalid/account#private-review-account; status = active</a></p><p><b>executionPeriod</b>: ?? --&gt; 2026-08-01 10:00:00+0200</p></div>
        </text>
        <status value="completed"/>
        <businessStatus>
          <coding>
            <system value="https://fhir.cognovis.de/billing/CodeSystem/billing-workflow-state"/>
            <code value="reviewed"/>
          </coding>
        </businessStatus>
        <intent value="order"/>
        <code>
          <coding>
            <system value="https://fhir.cognovis.de/billing/CodeSystem/billing-lifecycle-activity"/>
            <code value="private-review-decision"/>
          </coding>
        </code>
        <focus>
          <reference value="Account/private-review-account"/>
        </focus>
        <executionPeriod>
          <end value="2026-08-01T10:00:00+02:00"/>
        </executionPeriod>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.invalid/fhir/Task/private-review-cleared"/>
    <resource>
      <Task>
        <id value="private-review-cleared"/>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="Task_private-review-cleared"> </a><p class="res-header-id"><b>Generated Narrative: Task private-review-cleared</b></p><a name="private-review-cleared"> </a><a name="hcprivate-review-cleared"> </a><p><b>status</b>: Completed</p><p><b>businessStatus</b>: <span title="Codes:{https://fhir.cognovis.de/billing/CodeSystem/billing-workflow-state review-cleared}">Review cleared</span></p><p><b>intent</b>: order</p><p><b>code</b>: <span title="Codes:{https://fhir.cognovis.de/billing/CodeSystem/billing-lifecycle-activity private-review-decision}">Private review decision</span></p><p><b>focus</b>: <a href="Bundle-billing-workflow-tasks-example.html#Account_private-review-account">Account: identifier = https://example.invalid/account#private-review-account; status = active</a></p><p><b>executionPeriod</b>: ?? --&gt; 2026-08-02 11:00:00+0200</p></div>
        </text>
        <status value="completed"/>
        <businessStatus>
          <coding>
            <system value="https://fhir.cognovis.de/billing/CodeSystem/billing-workflow-state"/>
            <code value="review-cleared"/>
          </coding>
        </businessStatus>
        <intent value="order"/>
        <code>
          <coding>
            <system value="https://fhir.cognovis.de/billing/CodeSystem/billing-lifecycle-activity"/>
            <code value="private-review-decision"/>
          </coding>
        </code>
        <focus>
          <reference value="Account/private-review-account"/>
        </focus>
        <executionPeriod>
          <end value="2026-08-02T11:00:00+02:00"/>
        </executionPeriod>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.invalid/fhir/Claim/outbound-claim"/>
    <resource>
      <Claim>
        <id value="outbound-claim"/>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="Claim_outbound-claim"> </a><p class="res-header-id"><b>Generated Narrative: Claim outbound-claim</b></p><a name="outbound-claim"> </a><a name="hcoutbound-claim"> </a><p><b>status</b>: Active</p><p><b>type</b>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/claim-type professional}">Professional</span></p><p><b>use</b>: Claim</p><p><b>patient</b>: Identifier: <code>https://example.invalid/patient</code>/example</p><p><b>created</b>: 2026-09-01</p><p><b>provider</b>: Identifier: <code>https://example.invalid/organization</code>/example</p><p><b>priority</b>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/processpriority normal}">Normal</span></p><h3>Insurances</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Sequence</b></td><td><b>Focal</b></td><td><b>Coverage</b></td></tr><tr><td style="display: none">*</td><td>1</td><td>true</td><td>Identifier: <code>https://example.invalid/coverage</code>/example</td></tr></table><h3>Items</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Sequence</b></td><td><b>ProductOrService</b></td></tr><tr><td style="display: none">*</td><td>1</td><td><span title="Codes:">Synthetic service</span></td></tr></table></div>
        </text>
        <status value="active"/>
        <type>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/claim-type"/>
            <code value="professional"/>
          </coding>
        </type>
        <use value="claim"/>
        <patient>
          <identifier>
            <system value="https://example.invalid/patient"/>
            <value value="example"/>
          </identifier>
        </patient>
        <created value="2026-09-01"/>
        <provider>
          <identifier>
            <system value="https://example.invalid/organization"/>
            <value value="example"/>
          </identifier>
        </provider>
        <priority>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/processpriority"/>
            <code value="normal"/>
          </coding>
        </priority>
        <insurance>
          <sequence value="1"/>
          <focal value="true"/>
          <coverage>
            <identifier>
              <system value="https://example.invalid/coverage"/>
              <value value="example"/>
            </identifier>
          </coverage>
        </insurance>
        <item>
          <sequence value="1"/>
          <productOrService>
            <text value="Synthetic service"/>
          </productOrService>
        </item>
      </Claim>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.invalid/fhir/Task/outbound-invoice-book-state"/>
    <resource>
      <Task>
        <id value="outbound-invoice-book-state"/>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="Task_outbound-invoice-book-state"> </a><p class="res-header-id"><b>Generated Narrative: Task outbound-invoice-book-state</b></p><a name="outbound-invoice-book-state"> </a><a name="hcoutbound-invoice-book-state"> </a><p><b>status</b>: In Progress</p><p><b>businessStatus</b>: <span title="Codes:">source-rab-status</span></p><p><b>intent</b>: order</p><p><b>code</b>: <span title="Codes:{https://fhir.cognovis.de/billing/CodeSystem/billing-lifecycle-activity outbound-invoice-book}">Outbound invoice-book processing</span></p><p><b>focus</b>: <a href="Bundle-billing-workflow-tasks-example.html#Claim_outbound-claim">Claim: status = active; type = Professional; use = claim; created = 2026-09-01; priority = Normal</a></p></div>
        </text>
        <status value="in-progress"/>
        <businessStatus>
          <text value="source-rab-status"/>
        </businessStatus>
        <intent value="order"/>
        <code>
          <coding>
            <system value="https://fhir.cognovis.de/billing/CodeSystem/billing-lifecycle-activity"/>
            <code value="outbound-invoice-book"/>
          </coding>
        </code>
        <focus>
          <reference value="Claim/outbound-claim"/>
        </focus>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.invalid/fhir/Task/private-release-state"/>
    <resource>
      <Task>
        <id value="private-release-state"/>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="Task_private-release-state"> </a><p class="res-header-id"><b>Generated Narrative: Task private-release-state</b></p><a name="private-release-state"> </a><a name="hcprivate-release-state"> </a><p><b>status</b>: In Progress</p><p><b>businessStatus</b>: <span title="Codes:">source-private-release-status</span></p><p><b>intent</b>: order</p><p><b>code</b>: <span title="Codes:{https://fhir.cognovis.de/billing/CodeSystem/billing-lifecycle-activity private-release}">Private billing release</span></p><p><b>focus</b>: <a href="Bundle-billing-workflow-tasks-example.html#Account_private-review-account">Account: identifier = https://example.invalid/account#private-review-account; status = active</a></p></div>
        </text>
        <status value="in-progress"/>
        <businessStatus>
          <text value="source-private-release-status"/>
        </businessStatus>
        <intent value="order"/>
        <code>
          <coding>
            <system value="https://fhir.cognovis.de/billing/CodeSystem/billing-lifecycle-activity"/>
            <code value="private-release"/>
          </coding>
        </code>
        <focus>
          <reference value="Account/private-review-account"/>
        </focus>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.invalid/fhir/ChargeItem/review-line"/>
    <resource>
      <ChargeItem>
        <id value="review-line"/>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="ChargeItem_review-line"> </a><p class="res-header-id"><b>Generated Narrative: ChargeItem review-line</b></p><a name="review-line"> </a><a name="hcreview-line"> </a><p><b>status</b>: Billable</p><p><b>code</b>: <span title="Codes:">Synthetic review line</span></p><p><b>subject</b>: Identifier: <code>https://example.invalid/patient</code>/example</p><p><b>account</b>: <a href="Bundle-billing-workflow-tasks-example.html#Account_private-review-account">Account: identifier = https://example.invalid/account#private-review-account; status = active</a></p></div>
        </text>
        <status value="billable"/>
        <code>
          <text value="Synthetic review line"/>
        </code>
        <subject>
          <identifier>
            <system value="https://example.invalid/patient"/>
            <value value="example"/>
          </identifier>
        </subject>
        <account>
          <reference value="Account/private-review-account"/>
        </account>
      </ChargeItem>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.invalid/fhir/Task/billing-line-review-state"/>
    <resource>
      <Task>
        <id value="billing-line-review-state"/>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="Task_billing-line-review-state"> </a><p class="res-header-id"><b>Generated Narrative: Task billing-line-review-state</b></p><a name="billing-line-review-state"> </a><a name="hcbilling-line-review-state"> </a><p><b>status</b>: In Progress</p><p><b>businessStatus</b>: <span title="Codes:">source-review-status</span></p><p><b>intent</b>: order</p><p><b>code</b>: <span title="Codes:{https://fhir.cognovis.de/billing/CodeSystem/billing-lifecycle-activity billing-line-review}">Billing line review</span></p><p><b>focus</b>: <a href="Bundle-billing-workflow-tasks-example.html#ChargeItem_review-line">ChargeItem </a></p></div>
        </text>
        <status value="in-progress"/>
        <businessStatus>
          <text value="source-review-status"/>
        </businessStatus>
        <intent value="order"/>
        <code>
          <coding>
            <system value="https://fhir.cognovis.de/billing/CodeSystem/billing-lifecycle-activity"/>
            <code value="billing-line-review"/>
          </coding>
        </code>
        <focus>
          <reference value="ChargeItem/review-line"/>
        </focus>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.invalid/fhir/ServiceRequest/referral-request"/>
    <resource>
      <ServiceRequest>
        <id value="referral-request"/>
        <text>
          <status value="generated"/><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>subject</b>: Identifier: <code>https://example.invalid/patient</code>/example</p><p><b>occurrence</b>: 2026-09-22 09:30:00+0200</p></div>
        </text>
        <status value="active"/>
        <intent value="order"/>
        <subject>
          <identifier>
            <system value="https://example.invalid/patient"/>
            <value value="example"/>
          </identifier>
        </subject>
        <occurrenceDateTime value="2026-09-22T09:30:00+02:00"/>
      </ServiceRequest>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.invalid/fhir/Task/referral-brokerage-contact"/>
    <resource>
      <Task>
        <id value="referral-brokerage-contact"/>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="Task_referral-brokerage-contact"> </a><p class="res-header-id"><b>Generated Narrative: Task referral-brokerage-contact</b></p><a name="referral-brokerage-contact"> </a><a name="hcreferral-brokerage-contact"> </a><p><b>basedOn</b>: <a href="Bundle-billing-workflow-tasks-example.html#ServiceRequest_referral-request">ServiceRequest: status = active; intent = order; occurrence[x] = 2026-09-22 09:30:00+0200</a></p><p><b>status</b>: Completed</p><p><b>intent</b>: order</p><p><b>code</b>: <span title="Codes:{https://fhir.cognovis.de/billing/CodeSystem/billing-lifecycle-activity referral-brokerage-contact}">Referral brokerage contact</span></p><p><b>focus</b>: <a href="Bundle-billing-workflow-tasks-example.html#Account_private-review-account">Account: identifier = https://example.invalid/account#private-review-account; status = active</a></p><p><b>executionPeriod</b>: 2026-09-10 --&gt; (ongoing)</p></div>
        </text>
        <basedOn>
          <reference value="ServiceRequest/referral-request"/>
        </basedOn>
        <status value="completed"/>
        <intent value="order"/>
        <code>
          <coding>
            <system value="https://fhir.cognovis.de/billing/CodeSystem/billing-lifecycle-activity"/>
            <code value="referral-brokerage-contact"/>
          </coding>
        </code>
        <focus>
          <reference value="Account/private-review-account"/>
        </focus>
        <executionPeriod>
          <start value="2026-09-10"/>
        </executionPeriod>
      </Task>
    </resource>
  </entry>
</Bundle>