Step-by-step recipes for tasks in secuTrial
View the Project on GitHub SwissClinicalTrialOrganisation/secuTrial_recipes
In most cases data will be manually entered into the eCRF. However, in some cases batch data needs to be imported. Data imports are specified in the FormBuilder. This recipe outlines one way to set up a data import into secuTrial. Other set ups are also possible.
Note: It is strongly suggested to perform data imports
with extreme caution. Any data already entered
for a specific patient and visit combination
explicitly and differently specified by the import
file will be overwritten and lost. Hence, empty
fields and columns in the import file can cause
deletion of previously entered data.
An importable example project is available here.
configure your import according to the example below
Navigate to the form implementation for which you would like to perfom an import
configure your import format according to the example below
Note: In this example we are not setting up "mapping
entries". If you have coded data you are importing
you will need to explicitly map the coding to the
secuTrial values. Alternatively you can decode your
data before importing it.
In order to import data you need to transfer it into a format that is compatible with how you have configured your import routines in secuTrial. For the bone mineral density (bmd) example a short segement of code that prepares the data for import into secuTrial is available here.
Note: In the header of the produced file
(calcium_secuTrial.csv) the data to be entered into
the form is labelled with "bmd.". This marker refers
to the "bmd" specified in in the import format of
the form (i.e. point 7 further up in this text).
Note: Large imports may crash your system depending on the
amount of resources you have allocated. Import files can
be chunked into smaller files and uploaded bit by bit.
Every file needs the same header.