invoice_lines table
The invoice_lines table in the Hospital Management System Database Schema schema has 8 columns, keyed by id, with 2 foreign keys to invoices and encounter_procedures.
description and code are copied from the catalog at issue time, not joined live.
Columns (8)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| invoice_id | uuid | not null, references invoices.id | |
| encounter_procedure_id | uuid | references encounter_procedures.id | |
| description | varchar(255) | not null | |
| code | varchar(20) | ||
| quantity | integer | not null | |
| unit_price_cents | integer | not null | |
| amount_cents | integer | not null |
Indexes (1)
(invoice_id)
Relationships
invoice_lines.invoice_idreferencesinvoices.idinvoice_lines.encounter_procedure_idreferencesencounter_procedures.id