I have a general database design question, normally i find my answers with searching - but in this case I really wanted to lay out my specifics.
I have a database that I am putting into development. It has 25 tables, a bunch of queries and a bunch of forms.
It is a database that has major purposes, store patient information and visit details in an electronic chart format. It also generates invoices based the patient's "Plan" and the visit type.
Here is my situation:
The Visits table is my "Main Table" which collects data through a form entry to generate a invoicable claim.
The tables I am concerned with are:
Services
Locations
Plan
All 3 of these tables have a FK field stored in the Visits table.
Example:
ServicesID
LocationsID
PlanID
FKs relate back to their respective table and those records can be referenced through queries to generate invoices and whatnot.
My concern:
Because the value stored in the Visits table is just a FK autonumber, if the foriegn table ever gets changed or updated that number is no longer accurate or meaningful.
Is there something should be doing differently to ensure the integrity of the data ?
Thanks!
Bill
I have a database that I am putting into development. It has 25 tables, a bunch of queries and a bunch of forms.
It is a database that has major purposes, store patient information and visit details in an electronic chart format. It also generates invoices based the patient's "Plan" and the visit type.
Here is my situation:
The Visits table is my "Main Table" which collects data through a form entry to generate a invoicable claim.
The tables I am concerned with are:
Services
Locations
Plan
All 3 of these tables have a FK field stored in the Visits table.
Example:
ServicesID
LocationsID
PlanID
FKs relate back to their respective table and those records can be referenced through queries to generate invoices and whatnot.
My concern:
Because the value stored in the Visits table is just a FK autonumber, if the foriegn table ever gets changed or updated that number is no longer accurate or meaningful.
Is there something should be doing differently to ensure the integrity of the data ?
Thanks!
Bill