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 | + | Export the data file hl7org-oids.xml from repository at |
− | URL: https:// | + | 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: | * 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: | + | 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