1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
-- ==============================================================
-- GNUmed database schema change script
--
-- License: GPL v2 or later
-- Author: Karsten Hilbert
--
-- ==============================================================
-- $Id: v11-bill-bill_item.sql,v 1.3 2009-04-03 09:58:12 ncq Exp $
-- $Revision: 1.3 $
-- --------------------------------------------------------------
\set ON_ERROR_STOP 1
-- --------------------------------------------------------------
create table bill.bill_item (
pk serial primary key,
fk_provider integer
references dem.staff(pk)
on update cascade
on delete restrict,
fk_encounter integer
references clin.encounter(pk)
on update cascade
on delete restrict,
date_to_bill date,
code text,
system text,
description text,
receiver text,
amount_to_bill numeric,
currency text,
locale text,
status text
) inherits (audit.audit_fields);
-- --------------------------------------------------------------
select gm.log_script_insertion('$RCSfile: v11-bill-bill_item.sql,v $', '$Revision: 1.3 $');
-- ==============================================================
-- $Log: v11-bill-bill_item.sql,v $
-- Revision 1.3 2009-04-03 09:58:12 ncq
-- - cleanup
--
-- Revision 1.2 2009/03/16 15:13:38 ncq
-- - columns adjusted
--
-- Revision 1.1 2009/03/10 14:29:05 ncq
-- - new
--
--
|