GemsTracker

GEneric Medical Survey Tracker

User Tools

Site Tools


userzone:userdoc:tracks:import_export

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
userzone:userdoc:tracks:import_export [2016/04/06 14:48]
Matijs [Track import & export]
userzone:userdoc:tracks:import_export [2020/03/12 12:06] (current)
Line 19: Line 19:
 ==== Survey export codes ====  ==== Survey export codes ==== 
  
-If your track export contains surveys, the next screen ​will as you to provide ​export codes for them. Export codes are special survey codes that are only used for track import and export. They are used because the survey //can// have a different name at the import location. All other possible identifiers //can// also change from system to system so we need some method to link a survey on the source system ​and the target system.+If your track export contains surveys, the next screen ​asks export codes for them. Export codes are special survey codes that are only used for track import and export. They are used because the survey //can// have a different name at the import location. All other possible identifiers //can// also change from system to system so we need some method to link a survey on the source system ​to a survey on the target system.
  
-Of course if the target system is the source system you will need to enter these codes only during the export. If both systems are different the importer will have to select which survey to link to which export code. If the name of the survey exists on both systems this will be very straightforward,​ otherwise the right survey ​can be chosen from a drop-down list.+Of course if the target system is the source system you will need to enter these codes only during the export. If both systems are different the importer will have to select which survey to link to which export code. If the name of the survey exists on both systems this will be very straightforward ​and just ask for confirmation, otherwise the right survey ​must be chosen from a drop-down list.
  
 Survey export codes are stored at the survey level and one survey can have only one survey export code. If you need to change that code edit the survey in the Track Builder. Survey export codes are stored at the survey level and one survey can have only one survey export code. If you need to change that code edit the survey in the Track Builder.
Line 27: Line 27:
 ===== Export file format ===== ===== Export file format =====
  
-After setting the export codes (if any was empty) ​the download of the track definition starts automatically.+After setting the export codes the download of the track definition starts automatically.
  
-The track definition is stored in a tabbed text file with the extension .track.txt. You can edit this file using any text editor, e.g. Notepad.+The track definition is stored in a tabbed text file with the extension ​''​.track.txt''​. You can edit this file using any text editor, e.g. Notepad.
  
-The definition files contain four type of lines:+The definition files contain four types of lines:
  
-  - Identification lines: these lines contain no tab character and identify the type of data, e.g. version, track, fields or rounds. +  - Identification lines: these lines contain no tab character and identify the type of data, e.g. ''​version''​''​track''​''​fields'' ​or ''​rounds''​
-  - Import ​field definition lines: the first tabbed line after an identification line, this line contains the names of the imported ​fields ​on the next line. Only when exporting track fields every other line is an import ​field definition line as different types of track fields have different types of import ​fields+  - Import definition lines: the first tabbed line after an identification line, this line contains the names of the imported ​data on the next tabbed lines until the next identification ​line. \\ Only when exporting track ''​fields'' ​every other line is an import definition line as different types of track fields ​can have different types of import ​definitions
-  - Data line: any tabbed line that is not a import ​field definition line.+  - Data line: any tabbed line that is not a import definition line.
   - Empty lines: these are ignored.   - Empty lines: these are ignored.
  
Line 41: Line 41:
  
 To import a track choose import in the Trackbuilder => Tracks. To import a track choose import in the Trackbuilder => Tracks.
 +
 +Upload a ''​.track.txt''​ file and choose to "<<​create a new track>>"​ or select an existing track to merge with.
 +
 +The next screen check the content of the track definition file and reports any errors. E.g. missing or double information or event classes that do not exist on the target system.
 +
 +If the import checks OK you can continue the import.
 +
 +The third screen allows you to change the name the track (the default is the name in the imported definition) the organisations for which the track is used. Here you also select which survey to link to which survey export code. You can only select surveys that do have an empty survey export code. If the survey you export is not in the drop-down list you should probably remove or change the survey export code by editing the survey in Track Builder => Surveys.
 +
 +If you chose to create a new track the next screen will start the creation. After creation you can click on Finish to go the track screen.
 +
 +If you are merging with an existing track the next step is linking rounds in the import and export. This is done using the round order number as identification.
 +
 +  - If the round exists in both the existing track and the import, you can choose to keep the existing round definition or (default) overwrite it using the new round from the import.
 +  - If an existing round does not exist in the import you can either:
 +      * Choose to leave the existing round unchanged
 +      * Deactivate the existing round
 +      * To overwrite the round with a round in the import that does not currently exists. This will change the round order number to the new round number in the import.
 +  - Any rounds in the import that are not matched to existing rounds are imported as is.
 +
userzone/userdoc/tracks/import_export.1459946935.txt.gz · Last modified: 2020/03/12 12:08 (external edit)