I am trying to load SNOMED CT and RxNorm into my system. I have activated SNOMED CT in the Codes List feature under Administration. When I download the English version of SNOMED I am told that the file is unsupported. I also receive the following message:
OpenEMR does not recognize the incoming file in the contrib directory. This is most likely because you need to config the release in the supported_external_dataloads table in the MySQL database.
Is there an easier solution that having to generate SQL statements to populate this table in MySQL?
Thank you. To be honest, I have not tried installing RxNorm. I assumed that the fix for SNOMED would help any problems I have with RxNorm. Do you advise trying to load RxNorm.
SNOMED has over 1,500,000 records. You can download it from here:
SNOMED CT Member Licensing and Distribution Service The file is called SnomedCT_InternationalRF2_PRODUCTION_20251201T120000Z.zip. Place it in the openemr/contrib/snomed/ folder so that Apache (or Nginx) can read the file.
Thank you. When I tried to load RxNorm, I received the following error message.
Error: LOAD DATA LOCAL INFILE is forbidden, check related settings like mysql.allow_local_infile|mysqli.local_infile_directory or PDO::MYSQL_ATTR_LOCAL_INFILE|PD0::MYSQL_ATTR_LOCAL_INFILE_DIRECTORY
sorry, I do not know how to use xampp. Here is an Ai generated response.
In XAMPP, the easiest way to edit your php.ini is through the Control Panel. This ensures you are editing the specific version being used by the Apache server.
1. Open php.ini via XAMPP Control Panel
Open the XAMPP Control Panel.
Find the Apache row.
Click the Config button in that row.
Select PHP (php.ini) from the dropdown menu. This will open the file in your default text editor (usually Notepad on Windows or TextEdit on Mac).
2. Manual File Locations
If the Control Panel isn’t working, you can find the file manually at these default paths:
The php.ini file is quite long (often over 1,000 lines). Use Ctrl+F (Windows) or Cmd+F (Mac) to find the specific parameters:
Search for upload_max_filesize and change it (e.g., upload_max_filesize = 128M).
Search for post_max_size and change it (e.g., post_max_size = 128M).
Search for max_execution_time and increase it (e.g., max_execution_time = 300).
Save the file and close the editor.
[!IMPORTANT]
Restart Apache: Your changes will not take effect until you click Stop and then Start on the Apache service in the XAMPP Control Panel.
4. What about MySQL?
While php.ini handles the PHP side of things, if you are uploading large files specifically into a MySQL database (as BLOBs), you might also need to edit the MySQL configuration file (my.ini or my.cnf):
In XAMPP Control Panel, click Config next to MySQL.
Select my.ini.
Search for max_allowed_packet.
Increase it to match your needs (e.g., max_allowed_packet = 128M).
Restart the MySQL service.
Would you like a sample script to run in your browser that confirms if these changes were successfully applied?
Moussa - I made the changes to the parameters found in the respective files. There was no post_max_size and max_execution_time in the php.ini file. Should I add them?
Error: LOAD DATA LOCAL INFILE is forbidden, check related settings like mysql.allow_local_infile|mysqli.local_infile_directory or PDO::MYSQL_ATTR_LOCAL_INFILE|PDO::MYSQL_ATTR_LOCAL_INFILE_DIRECTORY
I added the parameters to the php.ini file. Still receiving the same error message when I try to load RxNorm.
Error: LOAD DATA LOCAL INFILE is forbidden, check related settings like mysql.allow_local_infile|mysqli.local_infile_directory or PDO::MYSQL_ATTR_LOCAL_INFILE|PD0::MYSQL_ATTR_LOCAL_INFILE_DIRECTORY
I cannot find any reference to these parameters in mysql.ini file.