Skip to content

Invoice Document Terms ​

A hospital invoice creates no ledger entry on its own. Every account it touches — the patient's receivable, the insurer's receivable, the revenue, the discounts, the taxes, the doctor's share — is named on its document term, and an invoice saved under a term with empty sides is saved, priced and printed without a single ledger line. When support is asked "why did this lab invoice not reach the patient's account?", the answer is almost always on this page.

Sixteen invoice and return types share one Effect tab. This page explains that tab once, then what each family of invoice adds to it. Terms are edited in Basic → Settings → Document Term: open the term whose Document Type is the invoice you are configuring. The documents that make up a stay — admission, accommodation, exit, closing invoice, feeding, surgery package — have their own, much shorter terms, on Stay and Operations Document Terms.

How an HMS invoice turns into an entry ​

Every priced line on a hospital invoice carries a price block: the price, two discounts, the patient's share and the insurer's share, Tax 1 and Tax 2 each split between the two, the cost and up to three subsidiary shares (see Invoicing & Billing). When the invoice is saved, each line is recorded in the ledger pair by pair from the Effect group:

  • A pair is recorded only when both sides are filled. Patient Value Debit without Patient Value Credit records nothing for the patient's share — there is no warning, the value simply never reaches the ledger.
  • Every main line, every supplies line and every services line is recorded, unless the term's Do Not Add Supplies To Invoice or Do Not Add Services To Invoice keeps that grid out.
  • The Check Invoice and the Attendant Invoice are priced in their header, not line by line, so they record one set of values per invoice — the patient's share, the insurer's share, the discounts and taxes of the header price block.
  • Each side is an ordinary account side — a fixed account or one taken from a source on the document — described on Accounting Effects Configuration. HMS adds its own sources: Patient, Doctor, Medical Insurance Company and Medical Specialty from the invoice header, and the line's own Laboratory Test Type, Radiology Type, Surgery Type, Physical Therapy Type, Medical Service, Pharmacy or Blood Bank. A side sourced from one of these is recorded on that record's account, which is how a lab test type or a pharmacy gets its own revenue account.

Patient or doctor?

When the invoice's Medical Document Category has Use Doctor Instead Of Patient In Accounting Effects ticked, every side whose source is Patient is recorded on the doctor's account instead. This is the switch behind doctor revenue-sharing arrangements — see Medical Master Files.

The Effect group — the sides ​

PairField idsWhat it records, per line
Patient Value Debit / CredittermConfig.patientValueDebit / termConfig.patientValueCreditThe patient's share of the price.
Insurance Value Debit / CredittermConfig.insuranceValueDebit / termConfig.insuranceValueCreditThe insurer's share.
Discount1 Debit / CredittermConfig.discount1Debit / termConfig.discount1CreditThe Discount 1 value.
Discount2 Debit / CredittermConfig.discount2Debit / termConfig.discount2CreditThe Discount 2 value.
Tax1 Patient Debit / CredittermConfig.tax1PatientDebit / termConfig.tax1PatientCreditThe patient's part of Tax 1.
Tax2 Patient Debit / CredittermConfig.tax2PatientDebit / termConfig.tax2PatientCreditThe patient's part of Tax 2.
Tax1 Insurance Debit / CredittermConfig.tax1InsuranceDebit / termConfig.tax1InsuranceCreditThe insurer's part of Tax 1.
Tax2 Insurance Debit / CredittermConfig.tax2InsuranceDebit / termConfig.tax2InsuranceCreditThe insurer's part of Tax 2.
Debit Cost / Credit CosttermConfig.costDebit / termConfig.costCreditThe line's cost value, from the medical cost list.
Subsidiary Debit / CredittermConfig.subsidiaryDebit / termConfig.subsidiaryCreditThe first subsidiary share — typically the doctor's or an outside lab's share of the revenue.
Subsidiary 1 Debit / Credit, Subsidiary 2 Debit / CredittermConfig.subsidiary1Debit … termConfig.subsidiary2CreditThe second and third subsidiary shares.

Other Cost Debit / Credit also sits in this group, but only the surgery invoice uses it — it is the "other" fee component of an operation (see below). On every other invoice it records nothing.

A typical cash-and-insurance setup: Patient Value debits the patient (source Patient) and credits a revenue account; Insurance Value debits the insurer (source Medical Insurance Company) and credits the same revenue; the two tax pairs debit the patient or insurer and credit the output-tax account. The discount pairs debit a discounts-allowed account and credit revenue when revenue should show the gross price; the cost pair debits the cost of the service and credits what is owed for it; the subsidiary pairs debit an expense and credit the party who earns the share, usually the doctor.

Overhead lines are recorded through their own item

The estimated or actual overhead carried on an invoice's overhead grid is not recorded by the term. Each Overhead Item names its own estimated-value and actual-value sides, and the invoice uses the actual ones once an Actual Overhead Calculation has given it an actual value.

The Effect tab of the Lab Test Invoice term

The Effect group — the options ​

OptionField idWhat it does
Do Not Add Supplies To InvoicetermConfig.doNotAddSuppliesToInvoiceThe supplies grid is left out of the invoice total and out of the entry. The supplies are still issued from stock.
Do Not Add Services To InvoicetermConfig.doNotAddServicesToInvoiceThe same for the services grid.
Tax PlantermConfig.taxPlanThe tax plan used for a line whose service, type or room names no tax plan of its own. The plan's Tax 1 and Tax 2 percents are read for the invoice's legal entity and value date.
TaxabletermConfig.taxableWhether the plan's taxes apply to this invoice type at all. It starts unticked: until you tick it, every save sets Tax 1 and Tax 2 to zero on the lines, whatever tax plan the line's service or type names.
Editable TaxestermConfig.editableTaxesTaxes are no longer recalculated from the tax plan on save, so a tax typed on a line is kept.
Update Prices With SavetermConfig.updatePricesWithSaveEvery save looks every line's price up again from the insurance approval and the price lists. Prices typed by hand are overwritten — unless the invoice's Allow Changing Main Prices, Allow Changing Services Prices or Allow Changing Supplies Prices is ticked for that grid.
Prevent Save Without SuppliestermConfig.preventSaveWithoutSuppliesRefuses to save an invoice whose supplies grid is empty.
Prevent Save Without ServicestermConfig.preventSaveWithoutServicesRefuses to save an invoice whose services grid is empty.
Allow Repeating Surgery Type In Invoice LinetermConfig.allowRepeatingSurgeryTypeInInvoiceLineSurgery invoice only: two operation lines may name the same surgery type.

One more rule sits outside the term: when the invoice's Medical Document Category has Not Taxable Tax 1 or Not Taxable Tax 2 ticked, that tax is set to zero on every recalculated line, even on a taxable term. This is how one category of patients — a charity case, a staff member — is billed without tax on the same term as everyone else.

The three Allow Changing … Prices switches are on each invoice, not on the term. On a saved invoice they are ticked from the More menu (Allow Changing Main Prices, Allow Changing Services Prices, Allow Changing Supplies Prices), which is how a price agreed at the desk survives Update Prices With Save.

Origin Document Effect — issuing the supplies of a service invoice ​

Service invoices carry a supplies grid filled from the Medical Supplies tab of the service or type being billed. The Origin Document Effect group («تأثيرات المستند المنشأ») turns that grid into a stock document:

FieldField idWhat it does
Origin Issue Document TypetermConfig.issueDocTypeStock Issue issues the supplies on save; Stock Issue Request raises a request for the store instead. Empty: nothing is generated.
Stock Issue Book / Stock Issue TermtermConfig.issueForHMSInvoiceBook / termConfig.issueForHMSInvoiceTermThe book and term of the generated document. Both are needed.

The generated document issues from the invoice's own warehouse and points back to the invoice. It stays in step with the supplies grid: every save of the invoice rewrites its lines, emptying the grid deletes it, and cancelling or deleting the invoice deletes it too.

The pharmacy-family invoices below do not use this group — they move stock through their Generation tab. The full story is on Pharmacy, Supplies & Blood Bank.

What each invoice family adds ​

Check, attendant, lab, radiology, physical therapy, services and supervision invoices ​

These seven terms are the Effect tab plus a Tax Authority («مصلحة الضرائب») tab. On the Check Invoice, Attendant Invoice and Supervision Invoice terms that tab's single field, Tax Authority Item termConfig.taxAuthorityItem, is the item every line is reported under when the invoice is sent to the tax authority. Lab, radiology, physical therapy and services invoices need no such item: each line is reported under the tax-authority item of its own test type, radiology type, therapy type or medical service, and each supplies line under its own item.

Accommodation invoice ​

The accommodation invoice records the accommodation price of each of its day lines through the Effect group. The medical-supervision part of the same lines is billed separately, by a Supervision Invoice the accommodation invoice can create for you. The group Generated Supervision Invoice («فاتورة الإشراف الطبي المنشأة») sets that up:

FieldField idWhat it does
Auto Generate Supervision InvoicetermConfig.autoGenSupervisionInvoiceOn save, create (or rebuild) one Supervision Invoice holding a line per day of each accommodation line. Rooms ticked Do Not Create Room Supervision Invoice are skipped.
Supervision Invoice Book / Supervision Invoice TermtermConfig.supervisionInvoiceBook / termConfig.supervisionInvoiceTermThe book and term of the generated Supervision Invoice — whose own term then creates its entry.
Tax Authority ItemtermConfig.taxAuthorityItemThe item the accommodation invoice's lines are reported under to the tax authority.

The generated Supervision Invoice carries the accommodation invoice's admission, patient, doctor, insurer, endurance percentages and medical document category, and is priced again when it is built. Each later save of the accommodation invoice rebuilds its lines. How the stay is split into accommodation invoices in the first place is decided on the Accommodation term — see Stay and Operations Document Terms.

The Generated Supervision Invoice group of the Accommodation Invoice term

Surgery invoice ​

The surgery term puts its own group, Price Components Costs («تكاليف أسعار العمليات»), under the Effect group. An operation's price is made of components — open surgery, surgeon fees, surgeon assistant, anaesthesia and other — each with a cost for the standard hours and an extra cost for additional time, and each component has its own pair:

PairWhat it records
Open Surgery Cost, Surgeon Fees Cost, Surgeon Assistant Cost, Anesthesia Fees Cost, Other Cost (Debit / Credit)The cost of that component for the standard hours.
Open Surgery Addition Time Cost, Surgeon Fees Addition Time Cost, Surgeon Assist Addition Time Cost, Anesthesia Fees Addition Time Cost, Other Addition Time Cost (Debit / Credit)The extra cost of that component for hours beyond the standard.

These component pairs are recorded in addition to the Effect group's pairs, line by line, for every operation line that carries price components.

The same group holds the two rules that limit surgery invoices per admission. Both look only at surgery invoices already saved on the same admission:

  • Do Not Create More Than One Invoice On The Same Admission refuses a second surgery invoice on an admission that already has one.
  • Do Not Create More Than One Invoice for The Same Surgery Type On The Same Admission allows several invoices, but refuses one whose operation line repeats a surgery type already invoiced on that admission.

Some options appear twice on this screen (the supplies/services switches, Other Cost, and the Origin Document Effect group); both copies are the same field. When the invoice is sent to the tax authority, each operation line is reported under the tax-authority item of its surgery type, and each services or supplies line under its own service or item. How the components are priced is on The Surgery Lifecycle.

The Effect tab of the Surgery Invoice term with its Price Components Costs group

Pharmacy, supplies, service-and-supply and blood bank invoices, and the three returns ​

Pharmacy Invoice, Pharmacy Return, Medical Supplies Invoice, Supply Return, Service And Supply Invoice, Blood Bank Invoice and Blood Bank Return are inventory documents, so their terms open with the standard supply-chain term tabs — Settings, From Document, quantity tracking, reservation, Dimensions, Generation and the rest, all described under supply chain document terms — and end with the HMS Effect tab above.

Two things differ from the service invoices:

  • The stock document comes from the Generation tab. A Generation Book and Generation Term make the invoice issue its items on a Stock Issue (and the return receive them back on a Stock Receipt), from the invoice's warehouse and locator and on its value date. Every save rewrites that document; emptying the items grid, cancelling or deleting the invoice deletes it. Leave either field empty and no stock moves.
  • A return does not reverse the sides for you. It records the same pairs as the invoice, in the direction its own term gives them, so a return term needs each pair set the other way round from the invoice term — patient value on the credit side where the invoice debits it, and so on.

Of the Effect group, these terms record the patient and insurance values, both discounts, the four tax pairs, the cost and the first subsidiary share. Tax Plan, Taxable, Editable Taxes and Update Prices With Save work as on the service invoices.

On these terms "supplies" means the invoice's items grid — the medicines, supplies or blood units being sold or returned:

  • Do Not Add Supplies To Invoice keeps the items grid out of the invoice totals and out of the entry, while the Generation tab still moves the stock. Do Not Add Services To Invoice does the same for the services grid.
  • Prevent Save Without Supplies refuses an invoice whose items grid is empty, with the message Main lines can not be empty. Prevent Save Without Services refuses one with no services lines.

On the Service And Supply Invoice the two Do Not Add switches change only the totals; both its supplies grid and its services grid are always recorded in the entry.

The Generation tab of the Pharmacy Invoice term

Documents without HMS term options ​

Lab and radiology requests and results, the surgery request and approval, the patient diagnosis and health status, the outpatient reservation, Change Patient Price Plan and Actual Overhead Calculation have no HMS-specific term tab. Their terms carry only the general settings every document has.

Messages you may see ​

These refusals come from the term options on this page. The general invoice refusals (endurance percentages, negative prices) are on Invoicing & Billing.

MessageWhyWhat to do
Services lines can not be empty — «لا يمكنك ترك تفاصيل الخدمات فارغة»The term has Prevent Save Without Services ticked and the invoice's services grid is empty.Add the services, or save under a term without the option.
Supplies lines can not be empty — «لا يمكنك ترك تفاصيل المستلزمات فارغة»The term has Prevent Save Without Supplies ticked and a service or surgery invoice's supplies grid is empty.Add the supplies used, or save under a term without the option.
Main lines can not be empty — «لا يمكنك ترك تفاصيل الرئيسية فارغة»On a pharmacy, supplies, service-and-supply or blood bank invoice or return, the term has Prevent Save Without Supplies ticked and the items grid is empty.Add the items.
Surgery type {0} is repeated — «نوع عملية {0} مكرر»Two operation lines name the same surgery type and the term does not have Allow Repeating Surgery Type In Invoice Line ticked.Merge the two lines, or tick the option if one invoice may bill the same operation twice.
There is an invoice {0} on the admission {1}, you can not create more than one invoice on the same admission — «لا يمكنك إنشاء أكثر من فاتورة على استمارة دخول المريض {1}، حيث يوجد فاتورة {0} على نفس استمارة دخول المريض»The term has Do Not Create More Than One Invoice On The Same Admission ticked and the admission already has a saved surgery invoice.Add the operation to the existing invoice {0}.
There is an invoice {0} on the admission {1} and surgery type {2}, you can not use the same surgery type more than once — «يوجد فاتورة {0} للاستمارة {1} لنوع العملية {2} - لا يمكنك إنشاء أكثر من فاتورة لنفس نوع العملية الجراحية»The term has Do Not Create More Than One Invoice for The Same Surgery Type On The Same Admission ticked and invoice {0} already bills surgery type {2} on this admission.Correct the existing invoice instead of billing the operation again.