Importing Concept Dictionary

Hi All!

I am new to OpenMRS, and I need to import a custom concept dictionary from an existing project to a new one. How will this be possible?

Thanks!

Did you get a chance to look at this? https://github.com/openmrs/openmrs-core/blob/master/api/src/test/java/org/openmrs/api/OrderServiceTest.java#L486

I have reviewed the code you’ve given and it does not seem to give what I wanted.

What I want to know if it is possible to download a Custom Concept Dictionary from an existing project and then use them to a new project. For example, I want to get all the list of Concepts from Project1 then, import the list to Project2.

I really appreciate your response. :slight_smile:

@sarahbee are you doing this in production, or for testing/development purposes?

One way is by doing a SQL dump of all the concept-related tables in the database, and then loading them into a new database.

1 Like

@sarahbee sorry i had a wrong url in my clipboard. I wanted to mean this: https://wiki.openmrs.org/display/docs/Metadata+Sharing+Module :slight_smile:

1 Like

For development purposes.

This will really help me with the project. Thank you! :slight_smile:

I will review this and see how it will help our project. Thank you! :grinning:

i tried using mysqldump to import the concept tables to my new database, but when i tried to search the concept thru openmrs admin, i got this error

“Error while attempting to find concepts - could not extract ResultSet”

Do you know what could be the reason for this? Thank you