Difference between revisions of "ART load OIDIndex data"

(first setup of page for loading data into OIDIndex)
 
 
Line 4: Line 4:
 
The following process can be performed to load data into the OIDIndex:
 
The following process can be performed to load data into the OIDIndex:
 
* Download the data for the OIDIndex:
 
* Download the data for the OIDIndex:
Export the data file hl7org-oids.xml from subversion at
+
Export the data file hl7org-oids.xml from repository at
URL: https://sourceforge.net/p/artdecor/code-0/HEAD/tree/branches/stable/utilities/hl7-oid-registry/
+
URL: https://bitbucket.org/art-decor/art-decor-backend/src/master/utilities/hl7-oid-registry/hl7org-oids-current.xml
 
 
Or on a commandline:
 
<syntaxhighlight lang="bash" enclose="div">
 
svn export svn://svn.code.sf.net/p/artdecor/code-0/branches/stable/utilities/hl7-oid-registry/hl7org-oids.xml
 
</syntaxhighlight>
 
  
 
* Upload the data to the eXist-db database:
 
* Upload the data to the eXist-db database:
Line 16: Line 11:
  
 
Click to collection: /db/apps/tools/oids-data
 
Click to collection: /db/apps/tools/oids-data
Upload resources: hl7org-oids.xml (select the file we downloaded from subversion)
+
Upload resources: select the .xml file we downloaded from the repository.
  
 
* Convert the data to a usable format:
 
* Convert the data to a usable format:
Line 22: Line 17:
  
 
Open /db/apps/tools/oids/modules/create-oid-lookupfile.xquery
 
Open /db/apps/tools/oids/modules/create-oid-lookupfile.xquery
 +
 
Eval
 
Eval
 +
 
This xquery will create the file: /db/apps/tools/oids-data/hl7org-lookup.xml
 
This xquery will create the file: /db/apps/tools/oids-data/hl7org-lookup.xml
  
 
* Check wether the OIDIndex works:  
 
* Check wether the OIDIndex works:  
 
https://<server>/decor/services/OIDIndex
 
https://<server>/decor/services/OIDIndex

Latest revision as of 10:20, 28 July 2021

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