- Local time
- Today, 02:50
- Joined
- Jan 23, 2006
- Messages
- 15,582
Hi,
Thanks for the table scheme. It appears to be fine . I need to add another table which shows different type of scans offered and their charges. So it will be\;
Table scan.
SCanid
SCan name
Scan charges.
SCannotes
Now the table you mentioned as scan will become scanorder.
Table Scanorder
Scanorderid PK
Patientid FK
Doctorid FK
Scanid FK
SCanorderdate
Scandiscount
SCantotalcharges (AFter discout) Need to store the value of discount in seperate field.
SCanpaymentrecieved
SCanordernotes
Moreover I need to add a seperate patient ID in patient table that has a different format than PK patientid. I may call it patientMRno. Format 08-01-001 (YY-MM-001)
Now let me know if this addition works for following situations:
One doctor can send many patients for scans.
One scan of same type can be referred by many doctors for different patients.
One patient can have may scans, after few months or for obstertics.
One scan of same type can be done on many patients.
One patient can be referred by many doctors.
So any sugesstions on above mentioned structure. If all is well I will start with the form structure.
Moreover what should be the data type of FK. Is it number with long integer.
Suggestions are welcome.
Thanks again.
A few comments.
You wish to add a table of Scan Types. Good, I have included a revised structure that includes this.
? Do you have a list of Scan Types?
If you associate a cost with a Scan Type, do you expect the cost to change in future? Will all scans of the same type always cost the same amount? If the scans can differ in cost, then you may want to consider an EffectiveCostDate that identifies the cost of a particular scan type at a given time. I don't know your business, but if you only have one charge for a scan type, you may get into some issues with when a scan (of a certain type) was done, and the Total charges, discounts etc.
I would recommend a ScanTypeCostTable that has a Date field to show the effective date --- but again I don't know your business.
I have adjusted the structure for Scan to show the ScanChargesTotal, ScanDiscountApplied, ScanChargedAmount, ScanPaymentReceivedAmount and the ScanPaymentReceivedDate
I don't see the Scan order and the Scan as different things.
Your Notes for the different entities are not Date related. For example a Note for a Patient is one text field. Do you envision having multiple comments for a given Patient at different times/dates?
I would not recommend your patientMrNo field - especially using the date as part of the field. PatientId is a unique field that identifies this patient from all other patients. A patients information/coordinates are unique to the patientId.