Objectives
Describe the strategy for how to manage the default concept dictionary used by OpenMRS which has mappings to international standards such as ICD-10, SNOMED CT, LOINC, RxNORM and CVX.
This process is being replaced by a more dynamic subscription method via the OCL for OpenMRS module project. OCL (Open Concept Lab) is a cloud-based dictionary management platform which can publish a subset of curated concepts from CIEL (or another source dictionary) which can then be subscribed to via the subscription module.
Specific Objectives
- How to get the CIEL concept dictionary (Previously known as the MVP or MVP/CIEL dictionary).
- Procedure for translating the dictionary.
- How to import the dictionary into OpenMRS and how to keep all of your OpenMRS instances updated with the latest dictionary
- How to get concepts added in the local dictionary added to the default dictionary (especially if they are in another language)
Versions
- These instructions are valid from OpenMRS 1.6.6 on. From 1.9 onwards, the CIEL dictionary comes standard with the standalone version of OpenMRS.
Getting the latest concept dictionary
Currently the latest concept dictionary is saved in the CIEL dropbox. To get access to this folder you should email Andrew Kanter at CIEL (andrew.kanter@columbia.edu or ask2164@cumc.columbia.edu). The dictionary is distributed as a SQL export from a particular version of OpenMRS. The SQL is designed to REPLACE all the concept* tables in an OpenMRS implementation. Within the dropbox are a number of zip files with the prefix OpenMRS_concepts_xx.xx.xx_yyyymmdd which includes the version number of openmrs as xx.xx.xx. You can use the 1.6.x versions for all versions of 1.6. The same is true for 1.9, with 1.9.x covering 1.9.7. There also is a 1.7.3 and 1.8.3 version in the dropbox and now 2.0, 2.1, etc. also in the dropbox.
Download and unzip the .sql file. Be sure to read the README file about changing properties files and connection string before importing.
It is also possible to view a recent version of the CIEL/MVP dictionary at openconceptlab.org. This website allows you to search the dictionary using names, mapping codes or list contents. You can then use the metadatasharing module to import a subset of the codes unto your dictionary (see below). However, the current method of overwriting the tables is being replaced with a more usable OCL for OpenMRS module.
Translating the concept dictionary
For translating it into Spanish, one group used the SNOMED mappings which exist for English and Spanish (but not for other languages yet).
There are several ways to get translations of the concept dictionary (and these are documented on the OpenMRS wiki as well at Terminology Service Bureau). The best way to ensure that concepts are properly translated is to work directly with Dr. Kanter's team and the TSB to include them in the dictionary. In the case of the initial Spanish translations, these were done by looking at where there was a SAME-AS map to a SNOMED CT concept and then using the SNOMED CT term in Spanish.
Importing the dictionary using the SQL overwrite method
Whether you have a new installation or are updating an already existing implementation, you should do the following.
- The sql file that you get for the concept dictionary should have only the tables for the concepts. Inserting them will overwrite all the concept* tables except for the concept_proposal tables. Separate drug table exports will be available when updates to those tables are included.
- If you have any locally stored concepts you will lose them, so instead follow the strategy described in the child page.
- Check to make sure you have the correct dictionary for the OpenMRS version that you are using. If you have a different version, email Andy to get the right one.
- Make a backup of your current database (if you're updating the dictionary via MySQL dump. In your server type "mysqldump -uUSERNAME -p --port=PORTNUMBER --host=HOST DATABASENAME > FILENAME.sql"
example: mysqldump -uopenmrs -p --port=3316 --host=127.0.0.1 openmrs > dump.sql
- USERNAME is a user name for MySQL that has privileges to the OpenMRS database
- DATABASENAME is the name of your database, usually openmrs
- FILENAME is whatever you want the export file to be
- Be sure that mysql has been configured for large packets. If in doubt, check that the MAX_ALLOWED_PACKET variable in the my.ini file is set to a high number like 128M.
- When prompted for a password, use the password from openmrs-runtime.properties. Note if using the standalone version use: openmrs-standlone-runtime.properties
- Then import the updated concept dictionary that you have by typing "mysql -uUSERNAME -p --port=PORTNUMBER --host=HOST DATABASENAME < DICTIONARYFILENAME.sql"
example: mysql -u openmrs -p --port=3318 --host=127.0.0.1 openmrs < openmrs_concepts_2.0_20170703.sql- USERNAME is a user name for MySQL that has privileges to the OpenMRS database
- DATABASENAME is the name of your database, usually openmrs
- FILENAME is the name of the sql file that contains the concept dictionary you received
- If you are running OpenMRS Platform 1.11.x and above, and the CIEL SQL file does NOT include "Update global_property set `property_value` = "" where `property` = "search.indexVersion";" (This is usually included)
- Please go to Administration - Maintenance - Search Index - Rebuild Search Index.
Keeping multiple OpenMRS instances with the same dictionary
The preferred method for doing this is to use the OCL for OpenMRS module method and the Subscription module.
Getting local concepts to be added
The CIEL dictionary will probably not contain all of the concepts that you need, so you will have to add concepts to your local OpenMRS instance. However, you should get any additiona concepts to be added into the CIEL dictionary. This will ensure that the dictionary is consistent, properly mapped and can be used by others. Do not add local concepts to your forms in production if you intend to replace them with approved concepts from the international dictionary. The easiest way to do this is to send an email to ask2164@cumc.columbia.edu with a spreadsheet of the concepts requested, or that need changes.:
- This spreadsheet should have at least the following columns:
- Concept name in English
- Concept definition (paragraph) in English
- Concept datatype
- Concept class
- Concept maps (to ICD-10, SNOMED, etc. if you know them)
- Concept names in other languages, concept definition in other languages
- If the concept is similar to an existing concept, please include the concept it is similar to.
- If the concept is part of a set, or part of a question-answer pair, please note this