Jump to content

Archived

This topic is now archived and is closed to further replies.

Zaxnyd

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

Recommended Posts

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\" /]

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.