Click here to Skip to main content
15,896,500 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a tbl_Patients.This table maintaining patient details like No,Name,address etc.

1. i have to maintain family_member1,family_member2,.........family_member20 in tbl_Patients
2. single patient can be visited by one or more nurses (one patient can visited by mrng one nurse,after noon other nurse),means in table it contains patients like p1,p2,p3........p20

in this scenario how can design table structure.

and


where exactly the overriding is used in real life apps.

thanks
Posted

In order to keep the database normalized, you should move such info in separate tables, for instance, create a patient_family_member_link table this way:
patient family_member
  p1      1
  p1      5
  p2      1
  p2      2
  p3      3
 
Share this answer
 
There are two type tables
1)Master table
2)Transaction Table
where PetientMaster is the table where the details of petient will be entered
then PetientVisitor table this table is transaction table where the connection between these two tables is id of PetientMaster table as PetientId in PetientVisitor table.
And the fields(columns for PetiendVisitors table you can add Following

JavaScript
1.Id
2.PetientId
3.NameOfVisitor
4.Gender
5.Age
6.TypeOfVisitor
7.RelationWithPetient
8.AddressOfVisitor
9.MobileNo
10.PhotoOfVisitor
11.IdentityNumber
where TypeOfVisitor :Doctor,Nurse,Relatives,officeBoy..etc.
The idea behind creating TransactionTable (PetientVisitor) is we can capture more information about visitors for safety.
So i believe by this you got little bit idea.

Good Luck
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900