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 subversion at URL: https://sourceforge.net/p/artdecor/code-0/HEAD/tree/branches/stable/utilities/hl7-oid-registry/
Or on a commandline:
svn export svn://svn.code.sf.net/p/artdecor/code-0/branches/stable/utilities/hl7-oid-registry/hl7org-oids.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: hl7org-oids.xml (select the file we downloaded from subversion)
- 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