JKodurand wrote:My query now is how to link the contacts table to the Patient_Contact table.
Meaning contacts::contactID_kprime=>Patient_Contact::Patient_ContactID_kf
or is there a better way.
That sounds good. If the relationship is solely as you describe above (if there are no other match fields) then any contact with a corresponding patient record would be considered a patient. You could even have a "patient" checkbox on the contact layout that is a boolean field from Patient_Contact table; have "allow creation of related records" turned on and clicking this checkbox would make your Patient_Contact record.
JKodurand wrote:I was thinking of a way to specify that if the contact is a patient then to link the the contactIDkey with a patientID. However it sounds complicated.
Well you can have the "patient" checkbox in the contact table and then your relationship would look like this:
Contacts::contactID_kprime = Patient_Contact::Patient_ContactID_kf
Contacts::contacIsPatient = Patient_Contact::AnumberFieldEqualTo1
Having the is-a-patient attribute IN the contact table does make a couple of things simpler. Since the contact's "patientness" could now be indexed you can more easily filter list of contacts to show those that are just patients.
Hope that helps.