Download the PHP package opencoreemr/oce-cli-import-codes without Composer
On this page you can find all versions of the php package opencoreemr/oce-cli-import-codes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package oce-cli-import-codes
OpenCoreEMR Codes Import CLI
A standalone CLI tool for importing standardized medical code tables (RXNORM, SNOMED, ICD, CQM_VALUESET) into OpenEMR. Designed for Docker/Kubernetes deployments with efficient file mounting and reuse across multiple installations.
Features
- ✅ Standalone CLI tool - No need to modify OpenEMR core files
- ✅ Composer installable - Easy installation and updates
- ✅ Auto-detection - Automatically detects code type from filename
- ✅ Non-interactive - Runs without user prompts for automation
- ✅ Progress feedback - Real-time progress bars and status updates
- ✅ Docker/Kubernetes optimized - Perfect for containerized deployments
- ✅ Multi-site support - Import codes across multiple OpenEMR sites
- ✅ Dry-run capability - Test imports without database changes
- ✅ Comprehensive logging - Track imports with revision/version info
- ✅ Error handling - Automatic cleanup on failures
Supported Code Types
| Code Type | Description | Source |
|---|---|---|
| RXNORM | RxNorm drug terminology | NLM |
| SNOMED | SNOMED CT clinical terminology (RF1) | NLM |
| SNOMED_RF2 | SNOMED CT clinical terminology (RF2) | NLM |
| ICD9 | ICD-9-CM diagnosis codes | CMS |
| ICD10 | ICD-10-CM/PCS codes | CMS |
| CQM_VALUESET | Clinical Quality Measures value sets | eCQI |
Installation
Download PHAR (Recommended)
Download the latest PHAR release:
Via Composer
Build from Source
Quick Start
Usage
Command Syntax
Auto-Detection: The tool automatically detects the code type from the filename. If detection fails, you can manually specify the code type using --code-type.
Skip Behavior: By default, the tool checks if a code package with the same type, version, revision date, and file checksum has already been imported. If found, it will skip the import to avoid duplicates. Use --force to override this behavior and import anyway.
Arguments
| Argument | Description | Required |
|---|---|---|
file-path |
Path to the code archive file | Yes |
Options
| Option | Description | Default |
|---|---|---|
--code-type |
Override auto-detected code type (RXNORM|SNOMED|SNOMED_RF2|ICD9|ICD10|CQM_VALUESET) | Auto-detect |
--openemr-path |
Path to OpenEMR installation | /var/www/localhost/htdocs/openemr |
--site |
OpenEMR site name | default |
--windows |
Use Windows processing (RXNORM only) | false |
--us-extension |
Import as US extension (SNOMED only) | false |
--revision |
Revision date (YYYY-MM-DD format) | Auto-detect |
--code-version |
Version string for tracking | Auto-detect |
--dry-run |
Test without database changes | false |
--cleanup |
Remove temp files after import | false |
--temp-dir |
Custom temporary directory | - |
--force |
Force import even if same version appears loaded | false |
Docker/Kubernetes Deployment
Docker Example
File Requirements
Directory Structure
Mount your code files to a consistent location:
File Sizes & Update Frequency
| Code Type | Compressed Size | Extracted Size | Update Frequency |
|---|---|---|---|
| RXNORM | ~200MB | ~2GB | Monthly |
| SNOMED | ~300MB | ~1.5GB | Biannual |
| ICD-10 | ~15MB | ~50MB | Annual |
| CQM ValueSets | ~50MB | ~200MB | Annual |
Multi-Site Import
Troubleshooting
Common Issues
-
OpenEMR not found
- Verify
--openemr-pathpoints to correct installation - Ensure OpenEMR is properly installed
- Verify
-
Permission errors
- Check write permissions on temp directory
- Use
--temp-dirto specify writable location
-
Database connection failed
- Verify OpenEMR database configuration
- Ensure site configuration is correct
-
Import function not found
- Verify OpenEMR version compatibility
- Check that
library/standard_tables_capture.inc.phpexists
Debug Mode
Run with verbose output to see detailed information:
Log Files
Check OpenEMR logs for detailed error information:
- OpenEMR logs:
/var/log/openemr/ - PHP error logs: Usually in
/var/log/php/ - Apache/Nginx error logs
Contributing
We welcome contributions! Please see our Contributing Guide for details.
License
This project is licensed under the GPL-3.0-or-later License - see the LICENSE file for details.
Support
- Issues: GitHub Issues
- Email: [email protected]
- Documentation: OpenEMR Wiki
Changelog
See CHANGELOG.md for version history.
Made with ❤️ by OpenCoreEMR Inc
All versions of oce-cli-import-codes with dependencies
ext-simplexml Version *
ext-xml Version *
ext-zip Version *
symfony/console Version ^6.4
symfony/filesystem Version ^6.4
symfony/finder Version ^6.4