-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.md
More file actions
43 lines (31 loc) · 1.63 KB
/
Copy pathREADME.md
File metadata and controls
43 lines (31 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
## 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
* A working installation of elixir and postgresql
* Before to download please install Git Large File Storage - LFS
* https://www.cms.gov/medicare/icd-10/2021-icd-10-cm Code Tables, Tabular and Index –
* https://www.cms.gov/medicare/icd-10/2022-icd-10-pcs/20XX ICD-10-PCS Order File (Long and Abbreviated Titles) - Updated December 1, 20xx (ZIP)
* http://ctdbase.org/downloads/CTD_diseases.csv.gz :: gzip -d CTD_diseases.csv.gz
* https://www.fda.gov/drugs/drug-approvals-and-databases/national-drug-code-directory
#### 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