<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ohcnwiki.tellmey.fyi/index.php?action=history&amp;feed=atom&amp;title=Concepts%2FInvoice</id>
	<title>Concepts/Invoice - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ohcnwiki.tellmey.fyi/index.php?action=history&amp;feed=atom&amp;title=Concepts%2FInvoice"/>
	<link rel="alternate" type="text/html" href="https://ohcnwiki.tellmey.fyi/index.php?title=Concepts/Invoice&amp;action=history"/>
	<updated>2026-07-06T05:19:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.4</generator>
	<entry>
		<id>https://ohcnwiki.tellmey.fyi/index.php?title=Concepts/Invoice&amp;diff=434&amp;oldid=prev</id>
		<title>Admin: Automated edit (via update-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://ohcnwiki.tellmey.fyi/index.php?title=Concepts/Invoice&amp;diff=434&amp;oldid=prev"/>
		<updated>2026-07-06T04:09:55Z</updated>

		<summary type="html">&lt;p&gt;Automated edit (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:39, 6 July 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 76:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 76:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Roles are granted through a user&#039;s facility and organization memberships, and permissions cascade down the organization tree, so access at a parent organization carries to the facilities beneath it.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Roles are granted through a user&#039;s facility and organization memberships, and permissions cascade down the organization tree, so access at a parent organization carries to the facilities beneath it.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Navbox billing}}&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Related}}&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Related}}&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Wiki: ohcnwiki.tellmey.fyi&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://ohcnwiki.tellmey.fyi/index.php?title=Concepts/Invoice&amp;diff=89&amp;oldid=prev</id>
		<title>Admin: OHC identity seed</title>
		<link rel="alternate" type="text/html" href="https://ohcnwiki.tellmey.fyi/index.php?title=Concepts/Invoice&amp;diff=89&amp;oldid=prev"/>
		<updated>2026-07-04T22:43:03Z</updated>

		<summary type="html">&lt;p&gt;OHC identity seed&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Doc header&lt;br /&gt;
|type=concept&lt;br /&gt;
|domain=billing&lt;br /&gt;
|title=Invoice&lt;br /&gt;
|order=4&lt;br /&gt;
|introduced=3.0&lt;br /&gt;
|concept=Concepts/Patient&lt;br /&gt;
|reference=References/Payment Reconciliation&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
An &amp;#039;&amp;#039;&amp;#039;invoice&amp;#039;&amp;#039;&amp;#039; is the bill Care produces for a patient: it gathers the charges raised on an account into a single, numbered statement of what is owed. It is the moment billing becomes official — the point where running charges are frozen into a document the patient or payer can be asked to settle.&lt;br /&gt;
&lt;br /&gt;
== What it represents ==&lt;br /&gt;
&lt;br /&gt;
In Care&amp;#039;s FHIR-aligned model, an invoice maps to the &amp;#039;&amp;#039;&amp;#039;Invoice&amp;#039;&amp;#039;&amp;#039; resource. It pulls together three things: the &amp;#039;&amp;#039;&amp;#039;charge items&amp;#039;&amp;#039;&amp;#039; being billed (each a service, medication, or product the patient received), the &amp;#039;&amp;#039;&amp;#039;money&amp;#039;&amp;#039;&amp;#039; they add up to (net and gross totals, built from base amounts, surcharges, discounts, and taxes), and the &amp;#039;&amp;#039;&amp;#039;account&amp;#039;&amp;#039;&amp;#039; it settles. The patient is inherited from that account, never set by hand.&lt;br /&gt;
&lt;br /&gt;
The key distinction is that an invoice is not a payment. It states what is owed; the act of paying it down — and any credit notes against it — lives in [[References/Payment Reconciliation|payment reconciliation]]. One account can produce several invoices over time as new charges accumulate, and the invoice&amp;#039;s detail view reports what has been paid against each so you can always see the remaining balance.&lt;br /&gt;
&lt;br /&gt;
== How it connects ==&lt;br /&gt;
&lt;br /&gt;
An invoice sits at the meeting point of several billing primitives:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[References/Account]]&amp;#039;&amp;#039;&amp;#039; — every invoice settles exactly one account, and takes its patient from there.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[References/Charge Item|Charge items]]&amp;#039;&amp;#039;&amp;#039; — the line items. A charge item is each individual billable thing; the invoice is the envelope that totals them up.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[References/Charge Item Definition|Charge item definitions]]&amp;#039;&amp;#039;&amp;#039; — the priced catalogue entries charge items are built from, used when Care generates a refund invoice automatically.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[References/Payment Reconciliation|Payment reconciliation]]&amp;#039;&amp;#039;&amp;#039; — the payments and credit notes recorded against the invoice once it is issued.&lt;br /&gt;
&lt;br /&gt;
== Lifecycle ==&lt;br /&gt;
&lt;br /&gt;
An invoice moves through a small set of statuses, and a crucial thing happens partway through. While an invoice is still a &amp;lt;code&amp;gt;draft&amp;lt;/code&amp;gt; it shows the live charges — edit a charge item and the invoice follows. The instant it is &amp;#039;&amp;#039;&amp;#039;issued&amp;#039;&amp;#039;&amp;#039;, Care takes a frozen snapshot of those line items and computes the totals once. From then on the invoice shows that snapshot, not the live charges. This is deliberate: a bill the patient was handed must not silently change if someone later edits an underlying charge.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;draft → issued → balanced&lt;br /&gt;
  └────────────→ cancelled / entered_in_error&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;draft&amp;#039;&amp;#039;&amp;#039; — being assembled; charges and totals are still live and editable&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;issued&amp;#039;&amp;#039;&amp;#039; — finalised and presented to the patient or payer; line items and totals are now snapshotted&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;balanced&amp;#039;&amp;#039;&amp;#039; — fully settled, with payments matching what was owed&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;cancelled&amp;#039;&amp;#039;&amp;#039; — voided after issue; no longer collectible&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;entered_in_error&amp;#039;&amp;#039;&amp;#039; — recorded by mistake and retracted&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;cancelled&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;entered_in_error&amp;lt;/code&amp;gt; are the two terminal void states. Drive these transitions through the billing workflow rather than editing records directly, since each one also adjusts the linked charge items and the account.&lt;br /&gt;
&lt;br /&gt;
== Refunds ==&lt;br /&gt;
&lt;br /&gt;
A normal invoice has positive totals. When goods are returned or a charge is reversed, Care creates a separate &amp;#039;&amp;#039;&amp;#039;refund invoice&amp;#039;&amp;#039;&amp;#039; with negative totals. These are flagged as refunds, and Care refuses to save a negative-total invoice that is not marked as one — a guardrail that keeps refunds from being mistaken for ordinary bills.&lt;br /&gt;
&lt;br /&gt;
== Locking ==&lt;br /&gt;
&lt;br /&gt;
An issued invoice can be &amp;#039;&amp;#039;&amp;#039;locked&amp;#039;&amp;#039;&amp;#039; to freeze it against any further edits — useful once a bill has been formally closed out or handed to an external system. Locking is a privileged action, separate from everyday read and write access.&lt;br /&gt;
&lt;br /&gt;
== Permissions ==&lt;br /&gt;
&lt;br /&gt;
Access to invoices is governed by facility-scoped permissions:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Permission&lt;br /&gt;
! Description&lt;br /&gt;
! System Roles&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;can_write_invoice&amp;lt;/code&amp;gt;&lt;br /&gt;
| Create and update invoices, including attaching or removing charge items and issuing or balancing them. Also gates cancelling an invoice within the free-cancel window.&lt;br /&gt;
| Facility Admin, Admin, Staff, Doctor, Nurse, Pharmacist&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;can_read_invoice&amp;lt;/code&amp;gt;&lt;br /&gt;
| List and retrieve invoices, their line items, totals, and reconciliation history.&lt;br /&gt;
| Facility Admin, Administrator, Admin, Staff, Doctor, Nurse, Volunteer, Pharmacist&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;can_destroy_invoice&amp;lt;/code&amp;gt;&lt;br /&gt;
| Cancel an invoice after the free-cancel window has elapsed.&lt;br /&gt;
| Facility Admin, Admin&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;can_manage_locked_invoice&amp;lt;/code&amp;gt;&lt;br /&gt;
| Lock and unlock invoices, and retrieve a locked invoice.&lt;br /&gt;
| Facility Admin, Admin&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Roles are granted through a user&amp;#039;s facility and organization memberships, and permissions cascade down the organization tree, so access at a parent organization carries to the facilities beneath it.&lt;br /&gt;
&lt;br /&gt;
{{Related}}&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>