Jump to content


Photo

What's the best method of organizing this data...?


  • Please log in to reply
1 reply to this topic

#1 Zaxnyd

Zaxnyd
  • Members
  • PipPip
  • Member
  • 29 posts

Posted 07 June 2006 - 11:12 PM

I'm working with 3 groups of data (currently as multidimensional arrays): doctors, procedures, locations.

Each of these need to have knowledge of the other 2. For example, doctors need to know their locations and procedures, locations need to know their doctors and procedures, and procedures need to know which doctors do them as well as where they're offered.

I've tried creating classes, etc, but it's still not all falling together as I'd like. Does anyone have any suggestions for a better method of organizing this data? Classes perhaps?

Thanks [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /]

#2 nogray

nogray
  • Members
  • PipPipPip
  • Advanced Member
  • 930 posts
  • LocationSan Francisco CA

Posted 08 June 2006 - 12:10 AM

When I organize data, I got from the outside to the inside. I am not sure if your doctors can have multiple locations, but that how will I do it.

Location:
ID, fields......

Doctors:
ID, Location, fields...... // Location is the location ID from the location table

Procedures
ID, Location, fields..... // Location is the location ID from the location table


and now to link the doctors to the procedures

Doctors_x_Procedures
ID, Doctor, Procedures // Doctor is the doctor ID from the location table. Procedures is the procedures ID from the procedures table.

NoGray.com





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users