GemsTracker

GEneric Medical Survey Tracker

User Tools

Site Tools


Sidebar

Quick Links

Main site / download

API Docs
Bug tracker
Demo site
GitHub

Index

userzone:userdoc:tracks:import_export

This is an old revision of the document!


Track import & export

The structure of a track can be exported and import. This procedure does not export and import the surveys, but the rounds, fields and other attributes that define a track.

The surveys are expected to exist already at both the source (export) and target (import) locations.

Also the current version does not export “Appointment filters”. If the track uses “Appointment filters” for automatic appointment linking and / or track creation you will have to manually transfer the filters. We expect to solve this in the next version.

Track export

To export a track, select the track in “Trackbuilder” ⇒ “Tracks” and choose “Export”.

The first screen allows you to choose which fields and rounds to export. You can also check or uncheck “Organization export”.

Organization export

Organization export does not export the organisations in the source GemsTracker installation, but just their names. The organisations existing with the same name the import installation will selected as active for the track during import.

Survey export codes

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 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.

Export file format

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 definition files contain four types of lines:

  1. Identification lines: these lines contain no tab character and identify the type of data, e.g. version, track, fields or rounds.
  2. 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.
  3. Data line: any tabbed line that is not a import definition line.
  4. Empty lines: these are ignored.

Track import

To import a track choose import in the Trackbuilder ⇒ Tracks.

Upload a .text.txt file and choose to “«create a new track»” or select an existing track to merge with.

userzone/userdoc/tracks/import_export.1459947542.txt.gz · Last modified: 2020/03/12 12:08 (external edit)