# How to install RxNorm and SNOMED Database?

**URL:** <https://community.open-emr.org/t/how-to-install-rxnorm-and-snomed-database/7117>\
**Category:** OpenEMR Development\
**Created:** [May 31, 2012, 3:45am UTC](https://community.open-emr.org/t/how-to-install-rxnorm-and-snomed-database/7117 "2012-05-31T03:45:20Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [May 31, 2012, 3:45am UTC](https://community.open-emr.org/t/how-to-install-rxnorm-and-snomed-database/7117/1 "2012-05-31T03:45:20Z")

</div>

**[haovn577](https://sourceforge.net/u/haovn577/)** wrote on [Thursday, May 31, 2012](https://sourceforge.net/p/openemr/discussion/202506/thread/c3ecd5d2/#4f73):

How to install RxNorm and SNOMED Database?I follow your instructions but nothing happens!  
Steps to install/upgrade the RxNorm database

Copy the zipped RxNorm database file into the ‘contrib/rxnorm’ directory (this file can be downloaded from [http://www.nlm.nih.gov/research/umls/rxnorm/docs/rxnormfiles.html;](http://www.nlm.nih.gov/research/umls/rxnorm/docs/rxnormfiles.html%3B) note you’ll need to get an account and that only the Full Monthly Releases currently work)  
In OpenEMR, go to Administration-\>Other-\>RxNorm in order to then install/upgrade the RxNorm database.  
Steps to install/upgrade the SNOMED database……

Pleases help me! Thanks thanks

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [May 31, 2012, 8:42am UTC](https://community.open-emr.org/t/how-to-install-rxnorm-and-snomed-database/7117/2 "2012-05-31T08:42:35Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Thursday, May 31, 2012](https://sourceforge.net/p/openemr/discussion/202506/thread/c3ecd5d2/#83c9):

Hi,

Which OpenEMR version are you using. If using OpenEMR 4.1, then ensure you install the latest patch here:  
[http://www.open-emr.org/wiki/index.php/OpenEMR\_Patches](http://www.open-emr.org/wiki/index.php/OpenEMR_Patches)

Then follow the instructions here:  
[http://www.open-emr.org/wiki/index.php/Import\_RxNorm\_and\_SNOMED\_Tables](http://www.open-emr.org/wiki/index.php/Import_RxNorm_and_SNOMED_Tables)

First, try SNOMED, and if it doesn’t work, then paste the text you see on the screen (and also let us know your operating system).

Second, try RxNORM, and if it doesn’t work, then paste the text you see on the scree (and also let us know your operating system).

-brady  
[OpenEMR](http://www.open-emr.org/)

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [May 31, 2012, 2:52pm UTC](https://community.open-emr.org/t/how-to-install-rxnorm-and-snomed-database/7117/3 "2012-05-31T14:52:38Z")

</div>

**[haovn577](https://sourceforge.net/u/haovn577/)** wrote on [Thursday, May 31, 2012](https://sourceforge.net/p/openemr/discussion/202506/thread/c3ecd5d2/#5f66):

Hi bradymiller,

Thank you so much. But RxNorm and SNOMED Database is not install.

> RxNorm Database

Database is not installed.  
Place the database zip file in the following directory if want the option to install: contrib/rxnorm

> SNOMED Database

Database is not installed.  
Place the database zip file in the following directory if want the option to install: contrib/snomed

![](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/3/1/31b5835e277fcc788d1890795bd4e8bde69b7886.html)

I use Win 7 32bit.  
And Can you give me RxNorm and SNOMED Database source and tutorial about it. I have registered at [https://uts.nlm.nih.gov/](https://uts.nlm.nih.gov/) and I must waiting for a consent. But now I need for my work. Please help me :((

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [May 31, 2012, 2:55pm UTC](https://community.open-emr.org/t/how-to-install-rxnorm-and-snomed-database/7117/4 "2012-05-31T14:55:11Z")

</div>

**[haovn577](https://sourceforge.net/u/haovn577/)** wrote on [Thursday, May 31, 2012](https://sourceforge.net/p/openemr/discussion/202506/thread/c3ecd5d2/#46af):

and this is picture about that:

![](https://lh3.googleusercontent.com/-bCPRHglKlw4/T8eFMsuNu8I/AAAAAAAAArw/1feITIfnapQ/w722-h145-k/RxNorm.JPG)

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [June 1, 2012, 9:50am UTC](https://community.open-emr.org/t/how-to-install-rxnorm-and-snomed-database/7117/5 "2012-06-01T09:50:36Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Friday, June 01, 2012](https://sourceforge.net/p/openemr/discussion/202506/thread/c3ecd5d2/#861f):

Hi,

Sorry, can’t really post the actual SNOMED/RXNORM databases because of licensing issues. Need to get them from the original site. It generally only takes a couple days after registering to get access. Once you download the files, then you’ll need to follow the instructions in the wiki page linked above. What do you plan to use them for in your work?

-brady  
[OpenEMR](http://www.open-emr.org/)

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [June 4, 2012, 9:39am UTC](https://community.open-emr.org/t/how-to-install-rxnorm-and-snomed-database/7117/6 "2012-06-04T09:39:23Z")

</div>

**[haovn577](https://sourceforge.net/u/haovn577/)** wrote on [Monday, June 04, 2012](https://sourceforge.net/p/openemr/discussion/202506/thread/c3ecd5d2/#8c7d):

Hi,

Thank Bradymiller, now I can install it (push directly into Database) 😃  
But I can’t show&nbsp; content of&nbsp; RxNorm Database in website. I’m a technical worker so I get stuck in the health sector when built a health system for hospital 🙂

Hao Tran

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [June 4, 2012, 9:55am UTC](https://community.open-emr.org/t/how-to-install-rxnorm-and-snomed-database/7117/7 "2012-06-04T09:55:21Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Monday, June 04, 2012](https://sourceforge.net/p/openemr/discussion/202506/thread/c3ecd5d2/#b9cd):

Hi,

Although we have a way to import the rxnorm, it is not yet integrated. This is a project awaiting a developer (either volunteer or needs to be sponsored).

The SNOMED database, however, will be integrated (diagnosis codes) for the next 4.1.1 OpenEMR release.

-brady  
[OpenEMR](http://www.open-emr.org/)

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [June 4, 2012, 9:56am UTC](https://community.open-emr.org/t/how-to-install-rxnorm-and-snomed-database/7117/8 "2012-06-04T09:56:03Z")

</div>

**[haovn577](https://sourceforge.net/u/haovn577/)** wrote on [Monday, June 04, 2012](https://sourceforge.net/p/openemr/discussion/202506/thread/c3ecd5d2/#3955):

and I have a problem, I thinks when install by Adminstrator-\>Other-\>RxNorm-\>install, it stop at step 3 (see code below) because I just see :

```
Copying the database file. This will take some time..
Extracting the file. This will take some time...
Loading the files into the database. This will take some time...

```

and it stop here…. I dont know cause?

Code in file standard\_tables\_manage.php

> // 1. copy the file to temp directory  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo htmlspecialchars( xl(‘Copying the database file. This will take some time…’), ENT\_NOQUOTES).“\<br\>”;  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!temp\_copy($file\_revision\_path,$mode)) {  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo htmlspecialchars( xl(‘ERROR: Unable to copy the file.’), ENT\_NOQUOTES).“\<br\>”;  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp\_dir\_cleanup($mode);  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // 2. unarchive the file  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo htmlspecialchars( xl(‘Extracting the file. This will take some time…’), ENT\_NOQUOTES).“\<br\>”;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!temp\_unarchive($file\_revision\_path,$mode)) {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo htmlspecialchars( xl(‘ERROR: Unable to extract the file.’), ENT\_NOQUOTES).“\<br\>”;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp\_dir\_cleanup($mode);  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // 3. load the database  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo htmlspecialchars( xl(‘Loading the files into the database. This will take some time…’), ENT\_NOQUOTES).“\<br\>”;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($mode == ‘rxnorm’) {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!rxnorm\_import(IS\_WINDOWS)) {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo htmlspecialchars( xl(‘ERROR: Unable to load the file into the database.’), ENT\_NOQUOTES).“\<br\>”;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp\_dir\_cleanup($mode);  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else { //$mode == ‘snomed’  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!snomed\_import()) {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo htmlspecialchars( xl(‘ERROR: Unable to load the file into the database.’), ENT\_NOQUOTES).“\<br\>”;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp\_dir\_cleanup($mode);  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // 4. set the revision version in the database  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo htmlspecialchars( xl(‘Setting the version number in the database…’), ENT\_NOQUOTES).“\<br\>”;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!update\_tracker\_table($mode,$file\_revision\_date)) {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo htmlspecialchars( xl(‘ERROR: Unable to set the version number.’), ENT\_NOQUOTES).“\<br\>”;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp\_dir\_cleanup($mode);  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // done, so clean up the temp directory  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($pending\_new) {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo “\<b\>”.htmlspecialchars( xl(‘Successfully installed the database.’), ENT\_NOQUOTES).“\</b\>\<br\>”;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else { //$pending\_upgrade  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo “\<b\>”.htmlspecialchars( xl(‘Successfully upgraded the database.’), ENT\_NOQUOTES).“\</b\>\<br\>”;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp\_dir\_cleanup($mode);  
&nbsp;&nbsp;&nbsp; }

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [June 4, 2012, 1:15pm UTC](https://community.open-emr.org/t/how-to-install-rxnorm-and-snomed-database/7117/9 "2012-06-04T13:15:57Z")

</div>

**[fndtn357](https://sourceforge.net/u/fndtn357/)** wrote on [Monday, June 04, 2012](https://sourceforge.net/p/openemr/discussion/202506/thread/c3ecd5d2/#1257):

Why do we need to directly integrate a copy of the RxNorm data into OpenEMR? There is an API, written in PHP, for querying here that could be incorporated instead. [https://github.com/codeforamerica/rxNormRef\_php](https://github.com/codeforamerica/rxNormRef_php)

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [June 4, 2012, 9:52pm UTC](https://community.open-emr.org/t/how-to-install-rxnorm-and-snomed-database/7117/10 "2012-06-04T21:52:05Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Monday, June 04, 2012](https://sourceforge.net/p/openemr/discussion/202506/thread/c3ecd5d2/#643b):

Hi James,

Check out this thread for comments on direct integration of the API:  
[http://sourceforge.net/projects/openemr/forums/forum/202506/topic/5325272](http://sourceforge.net/projects/openemr/forums/forum/202506/topic/5325272)

-brady  
[OpenEMR](http://www.open-emr.org/)

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [June 5, 2012, 7:03am UTC](https://community.open-emr.org/t/how-to-install-rxnorm-and-snomed-database/7117/11 "2012-06-05T07:03:12Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Tuesday, June 05, 2012](https://sourceforge.net/p/openemr/discussion/202506/thread/c3ecd5d2/#4b4a):

Hi Hao,

It can take up to 15 minutes to import. Things to check out are the php error log and check to see if there are any rxnorm tables installed (an if they contain data) in Administration-\>Other-\>Database .

-brady  
[OpenEMR](http://www.open-emr.org/)

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [June 6, 2012, 6:06am UTC](https://community.open-emr.org/t/how-to-install-rxnorm-and-snomed-database/7117/12 "2012-06-06T06:06:42Z")

</div>

**[haovn577](https://sourceforge.net/u/haovn577/)** wrote on [Wednesday, June 06, 2012](https://sourceforge.net/p/openemr/discussion/202506/thread/c3ecd5d2/#cf46):

Thank you so much, Brady.
