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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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.

License: GPL v3 PHP Version

Features

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

  1. OpenEMR not found

    • Verify --openemr-path points to correct installation
    • Ensure OpenEMR is properly installed
  2. Permission errors

    • Check write permissions on temp directory
    • Use --temp-dir to specify writable location
  3. Database connection failed

    • Verify OpenEMR database configuration
    • Ensure site configuration is correct
  4. Import function not found

    • Verify OpenEMR version compatibility
    • Check that library/standard_tables_capture.inc.php exists

Debug Mode

Run with verbose output to see detailed information:

Log Files

Check OpenEMR logs for detailed error information:

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

Changelog

See CHANGELOG.md for version history.


Made with ❤️ by OpenCoreEMR Inc


All versions of oce-cli-import-codes with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2.0
ext-simplexml Version *
ext-xml Version *
ext-zip Version *
symfony/console Version ^6.4
symfony/filesystem Version ^6.4
symfony/finder Version ^6.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package opencoreemr/oce-cli-import-codes contains the following files

Loading the files please wait ...