Combining visits jdutra  2014-07-29 12:23
Status: Closed
 
Several times now I have run into the circumstance where I want to change the way visits are defined, or perhaps a new visit number was added but it was imported in some data before I defined it in the visits. This results in having multiple visits where I would like to have just one. For instance, I want to have a visit that includes the sequence number range 10.0-10.9, but instead I have one visit for 10.0, another visit for 10.1, etc.

Is there any way to combine these? I can't create/edit a visit that would overlap with another visit, so I can't extend the 10.0 visit to include everything through 10.9. In order to change it, I have to delete visits 10.1, 10.2, etc, and THEN change the 10.0 visit. But that deletes all records having sequence number 10.1, 10.2, etc in all study datasets, which is obviously not acceptable.

Do you have any suggestions on a better way to combine existing visits?

Thanks,
Jen
 
 
jeckels responded:  2014-08-07 16:15
Hi Jen,

Let's assume (for simplicity) that you're starting with three visits: 10.0, 10.1, and 10.2. The following steps should get you to your desired combined visit:

1. Edit visit 10.1 to be 10.90-10.91.
2. Edit visit 10.2 to be 10.91-10.92.
3. Edit visit 10.0 to be 10.0-10.2.
4. On the Manage Visits page, click the Recalculate Visit Dates link. This should snap the dataset records to be associated with the 10.0-10.2 visit record.
5. Delete visits 10.90-10.91 and 10.91-10.92.

Thanks,
Josh
 
jdutra responded:  2014-09-02 08:30
Thanks Josh. That does work. I think when I've done it in the past, I haven't thought to recalculate the visit dates, and then when I deleted the edited visits I lost data. Thanks for the help!