Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > General > Database Concepts & Design > help with database design of room assignment schedules of nurses

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-06-07, 23:25
cvbayot cvbayot is offline
Registered User
 
Join Date: Oct 2007
Posts: 1
help with database design of room assignment schedules of nurses

hello. i'm a newbie in database and stuff. i just want to ask for help in designing a database.

i'm developing a web-based system that will allow users to view and update patient records. the thing is, nurses can only update patient records assigned to them (room assignment) in a specific date and time.

a group of nurse will be assigned to a group of rooms.
example:
for room 1-20 nurses A and B will be assigned today from 6am-2pm
for room 21-40 nurses C and D will be assigned today from 2pm-12am
for room 1-20 nurses B and C will be assigned the next day from 6am-2pm
for room 21-40 nurses A and D will be assigned the next day from 2pm-12am

my current database design is this..
i have a table for assign, anurse, and aroom. they have the following attributes:
assign (asid_pk, adate, stime, etime); asid_pk-primary key, adate-schedule date, stime-start of shift, edate-end of shift
aroom(asid_fk, rno_fk); asid_fk-foreign key referencing asid_pk from assign, rno_fk-foreign key referencing rno_pk from the table for room
anurse(asid_fk, nid_fk); asid_fk-fk from assign, nid_fk-fk from the table for nurse

my problem is..
i have to duplicate entries in assign table to assign different nurses in different rooms. there will be 12 entires in the assign table with the same date and time and different primary keys. 12 because there are 12 groups of rooms and in each group 1-4 nurses will be assigned.

does anyone have a suggestion in improving my current database design? thanks!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On