Skip to content

Error if data dir missing #34

@yevgenybulochnik

Description

@yevgenybulochnik

Problem Statement

The meps_data_reader module fails if a data directory is not present in the root of the project. This module is dependent on the create_mdt_con() function in mdt_functions.py.

conn = sql.connect('data/MDT.db')

sql_create_table('meps_prescription',meps_prescription)

Criteria for Success

This issue will likely be discussed after we talk more about restructuring, but should be noted in the docs for the time being. This can be resolved with pathlib and really is part of configuration so its dependent on how we setup config for the project. In the docs we should add a line to make this directory before running the meps_data_reader.py

1. Make a data directory in the root of the project
2. Run meps_data_reader.py to load MEPS data
3. Run rxnorm_data_reader.py to load RxNorm data

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions