Export/Import Identifiers and Mappings

13 views
Skip to first unread message

clsamc...@gmail.com

unread,
Oct 11, 2023, 10:46:26 AM10/11/23
to obiba-users
Hello

I am trying to launch a new instance of Opal. Our current instance has 526 identifier mappings and 152274 system identifiers. As far as I can tell, there is no means to bulk import identifiers and mappings. Am I maybe missing something?

Thanks.

Yannick Marcon

unread,
Oct 11, 2023, 11:34:02 AM10/11/23
to obiba...@googlegroups.com
Hi

There are several options:
* use the web interface: Administration > Identifiers Mappings and then select Import Identifiers

Regards
Yannick


--
You received this message because you are subscribed to the Google Groups "obiba-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to obiba-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/obiba-users/804bc066-9f24-436e-9090-be9d74d66377n%40googlegroups.com.

CLSA IT

unread,
Oct 11, 2023, 11:37:01 AM10/11/23
to obiba...@googlegroups.com
Hi Yannick,

Maybe I'm misunderstanding, but for the import-ids-map command line I would have to run it for each mapping and the associated identifiers, correct?
-- 
Sean Hurley
Systems Administrator
Canadian Longitudinal Study on Aging (CLSA)
Étude longitudinale canadienne sur le vieillissement (ÉLCV)

Mobile/Text: 289-700-1606
Email: shu...@mcmaster.ca

McMaster University McMaster Innovation Park 175 Longwood Rd. S. Suite 309A Hamilton, ON L8P 0A1


You received this message because you are subscribed to a topic in the Google Groups "obiba-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/obiba-users/2LPlr5i52tw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to obiba-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/obiba-users/CAGrE6otv2QySrWOb1CawcdGHDdJzH55yKgz1HRJhmorOi3WUMA%40mail.gmail.com.

Ramin H.A.

unread,
Oct 11, 2023, 11:51:11 AM10/11/23
to obiba...@googlegroups.com

Hi,

If you have several different types you could always use another Opal Python Command to list all your mapping types and then use the mentioned import command for each:

Example:

>opal rest -o  https://opal-demo.obiba.org /identifiers/tables -u administrator -p password -j
[
  {
    "datasourceName": "opal-keys",
    "entityType": "Dummy",
    "link": "/datasource/opal-keys/table/Dummy",
    "name": "Dummy",
    "status": "READY",
    "timestamps": {
      "created": "2023-10-11T15:41:33.001Z",
      "lastUpdate": "2023-10-11T15:41:33.001Z"
    }
  },
  {
    "datasourceName": "opal-keys",
    "entityType": "Participant",
    "link": "/datasource/opal-keys/table/keys",
    "name": "keys",
    "status": "READY",
    "timestamps": {
      "created": "2023-10-11T06:27:24.631Z",
      "lastUpdate": "2023-10-11T15:30:47.726Z"
    }
  }
]

CLSA IT

unread,
Oct 11, 2023, 1:58:44 PM10/11/23
to obiba...@googlegroups.com
Thank you.

-- 
Sean Hurley
Systems Administrator
Canadian Longitudinal Study on Aging (CLSA)
Étude longitudinale canadienne sur le vieillissement (ÉLCV)

Mobile/Text: 289-700-1606
Email: shu...@mcmaster.ca

McMaster University McMaster Innovation Park 175 Longwood Rd. S. Suite 309A Hamilton, ON L8P 0A1

Reply all
Reply to author
Forward
0 new messages