Jump to content

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


Zaxnyd

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

Archived

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

×
×
  • Create New...

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.