ART load OIDIndex data

Load OIDIndex data

OIDIndex data is used to provide human readable names when OIDs are used. The data for OIDIndex must be loaded when, for instance, displaying the codeSystem name for a valueset derived from SNOMED CT. If the OIDIndex data is not loaded, only the SNOMED CT OID will show, and not the displayname for the SNOMED CT codeSystem.

The following process can be performed to load data into the OIDIndex:

  • Download the data for the OIDIndex:

Export the data file hl7org-oids.xml from repository at URL: https://bitbucket.org/art-decor/art-decor-backend/src/master/utilities/hl7-oid-registry/hl7org-oids-current.xml

  • Upload the data to the eXist-db database:

Open the eXist-db dashboard, log in as admin, Collections

Click to collection: /db/apps/tools/oids-data Upload resources: select the .xml file we downloaded from the repository.

  • Convert the data to a usable format:

Open the eXist-db dashboard, eXide

Open /db/apps/tools/oids/modules/create-oid-lookupfile.xquery

Eval

This xquery will create the file: /db/apps/tools/oids-data/hl7org-lookup.xml

  • Check wether the OIDIndex works:

https://<server>/decor/services/OIDIndex