Skip to content

CNAG-Biomedical-Informatics/omop-csv-validator

Repository files navigation

OMOP CSV Validator

Validate OMOP CDM CSV files against schemas derived from PostgreSQL DDL

CPAN Publish Documentation Status Coverage Status Kwalitee Score version License


📘 Documentation: https://cnag-biomedical-informatics.github.io/omop-csv-validator/

📦 CPAN Distribution: https://metacpan.org/pod/OMOP::CSV::Validator


OMOP CSV Validator

OMOP CSV Validator is a small Perl CLI and module for validating OMOP CDM CSV files against schemas derived from PostgreSQL DDL.

Documentation

Full project documentation lives in the Docusaurus site under docs-site.

Installation

Install the packaged release from CPAN:

cpanm -n OMOP::CSV::Validator

If you want the latest repository checkout instead:

git clone https://github.com/CNAG-Biomedical-Informatics/omop-csv-validator.git
cd omop-csv-validator
cpanm -n --installdeps .

Quick start

If you installed from CPAN:

omop-csv-validator \
  --ddl path/to/OMOPCDM_postgresql_5.4_ddl.sql \
  --input path/to/DRUG_EXPOSURE.csv

If you are running from a repository checkout:

bin/omop-csv-validator \
  --ddl ddl/OMOPCDM_postgresql_5.4_ddl.sql \
  --input example/DRUG_EXPOSURE.csv

Tests

Run the test suite:

prove -l t/

Citation

If you use OMOP CSV Validator in a publication, pipeline, or shared resource, please cite or acknowledge it. Citation metadata is available in CITATION.cff, which GitHub can also expose through the repository citation panel.

License

Released under the Artistic License 2.0.

About

The OMOP CSV Validator is a CLI tool that validates CSV files against JSON schemas generated from OMOP Common Data Model (CDM) DDL fiiles

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages