Hi John:
I need to import appointments from an older copy of my application into a newer. I have reviewed the document at http://docs.seedcode.com/ccp8/show/Importing+Appointments and everything looks straightforward, except for one thing: each of my appointments "contains" data from related tables (my "Edit Appointment" layout contains portals to these tables). The tables contain each patient's (each contact's) list of medications, along with doses, number of refills, etc.
I would like to achieve this import as follows:
1) import appointment data using the instructions contained in the document cited above;
2) then import medication data, (including the fields that contain the keys used to create the relationship between the appointment records and the medication records).
But if I do this, can I be sure that the relationships will be preserved -- in other words, that when I click on John Smith's appointment, I will see the correct meds listed in the "medications portal"?
Yours,
Jim Recht
Importing Events along with related data
2 posts
• Page 1 of 1
Posts: 116
Joined: Mon Sep 04, 2006 1:19 pm |
|
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am |
You're on the right track. When you import your appointments, you'll be bringing over the ContactID for that appointment, and that same contact ID lives in your Contact Medications, so those relationships will be preserved.
The only trick is that some of your relationships may depend on the AppointmentID as well. (As do our repeating events relationships.) So, when you import your appointments you want to make sure these appointments are NOT assigned new AppointmentIDs. In the instructions you referenced, follow them as if you DID use repeating events and you should be all set. John Sindelar
SeedCode |
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 3 guests