Import Identifiers Mapping
Import Opal server entity identifiers.
opal import-ids-map <CREDENTIALS> <OPTIONS> [EXTRAS]
Options
Option |
Description |
---|---|
|
Entity type of the data (e.g. Participant) |
|
Mapping name, i.e. the name associated to the identifiers that will be mapped to the system identifiers |
|
Identifiers separator (default is “,”) |
Credentials
Authentication can be done by username/password credentials OR by personal access token OR by certificate/private key pair (two-way SSL authentication).
Option |
Description |
---|---|
|
Opal server base url |
|
Credentials auth: user name (requires a password) |
|
Credentials auth: user password (requires a user name) |
|
Token auth: user’s personal access token |
|
Two-way SSL auth: certificate/public key file (requires a private key) |
|
Two-way SSL auth: private key file (requires a certificate) |
Extras
Option |
Description |
---|---|
|
Show the command help’s message. |
|
Verbose output. |
|
Output pretty-print JSON |
Example
Import identifiers mapping from keyboard entries.
opal import-ids-map --opal https://opal-demo.obiba.org --user administrator --password password --type Participant --map foo
Import identifiers mapping from a file.
opal import-ids-map --opal https://opal-demo.obiba.org --user administrator --password password --type Participant --map foo < idsmap.txt
Example of a file of identifiers mapping:
11123456,A11111
11345467,A22222
11995884,A33333
11423423,A44444