Skip to content

A CLI application that transforms ICD-10-CM and ICD-10-PCS xml files to Postgres Tables plus Serch

Notifications You must be signed in to change notification settings

jgourassas/mcodes_prep

Repository files navigation

Mcodes_prep is a CLI application (Elixir - No web) that transforms ICD-10-CM and ICD-10-PCS xml files to Postgres Tables

After Transformation you can search in a Terminal for a Disease Code, an Operation and for a disease synonym. NDC - National Drug Catalog was Added

Setup

You need

Unzip the files to data directory

For ICD-10-CM You need the files

icd10cm_tabular_2021.xml

For ICD-10-PCS of the Year 2022 You need the files
  • icd10pcs_order_2022.txt
  • icd10pcs_tables_2022.xm
  • icd10pcs_index_2022.xml
  • icd10pcs_definitions_2022.xml
For NDC You need the files
  • package.txt
  • product.txt

In the main Dir issue the commands

  • mix deps.get
  • mix ecto.create
  • Optional mix ecto.migrate
  • build the project: ./build_escript.sh
  • and run it by: ./mcodes_prep. Then h for help

You can skip the the tranformation from XML Files to Postgresql Tables

  by runing the script db_ready/to_mcodes_dev witch inserts the data to the PG
  and you are ready for the queries. In this step you don't need to run ecto.migrate

Please Check and the image directory

About

A CLI application that transforms ICD-10-CM and ICD-10-PCS xml files to Postgres Tables plus Serch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages