M
mhmaid
need your help please
first I will till you what is my work.
I am working in a govermental office
I recieve and account patients treatment invoices from varios hospitals , in
many countries.
for some countries , invoices will come to me thru another gov. office. and
in this case , they will pay the invoices , then send to me along with the
cash payment voucher , to pay amount due to them.
ok , now , one letter(batch) I receive may contain the following
1.covering letter ( as a batch)
2.cash payment voucher ( may contain many invoices for many patients)
3.one invoice may be for many visits for the same patient.
4.our system is to add a new record for each visit, as sometimes patient is
sent to diff country , diff Doctor etc.
currently , I have four tables to do this.
table 1:I enter cpv No , date , amount,Exchange rate, currency.
table 2 : I enter Invoice number, date, issuer, amount, Discount
table 3 : I enter caseid , Exp rpt amt ,
table 4 : expensecategoryid, datefrom,dateto,expenseitemamount.
one record in table one may contain many records in table 2
same thing to the rest of tables.
is this the correct way.
any ideas.
offcourse i have the main table wich is "Patients" will hold
name,dob,hospital,etc.
first I will till you what is my work.
I am working in a govermental office
I recieve and account patients treatment invoices from varios hospitals , in
many countries.
for some countries , invoices will come to me thru another gov. office. and
in this case , they will pay the invoices , then send to me along with the
cash payment voucher , to pay amount due to them.
ok , now , one letter(batch) I receive may contain the following
1.covering letter ( as a batch)
2.cash payment voucher ( may contain many invoices for many patients)
3.one invoice may be for many visits for the same patient.
4.our system is to add a new record for each visit, as sometimes patient is
sent to diff country , diff Doctor etc.
currently , I have four tables to do this.
table 1:I enter cpv No , date , amount,Exchange rate, currency.
table 2 : I enter Invoice number, date, issuer, amount, Discount
table 3 : I enter caseid , Exp rpt amt ,
table 4 : expensecategoryid, datefrom,dateto,expenseitemamount.
one record in table one may contain many records in table 2
same thing to the rest of tables.
is this the correct way.
any ideas.
offcourse i have the main table wich is "Patients" will hold
name,dob,hospital,etc.