Skip to content

mdt_functions.py and data_readers refactor #39

@yevgenybulochnik

Description

@yevgenybulochnik

Proposal

Going along with #38 I would suggest we break apart this module. The module itself is commented out to specify function domains. We should consider creating a utils.py or common.py to house common functions that can be used anywhere in the codebase. Perhaps all functions related to the database could be housed in a db.py module. The reader modules are already broken out into meps and rxnorm readers, maybe it makes more sense to combine these into a single readers.py module. Another consideration would be to use rxnorm and meps as module names themselves this way when invoking methods they are namespaced, ie rxnom.reader() or with the db module db.create_mdt_con().

This is all mostly just food for thought, with the idea that the directory structure of the repo can provide syntactical meaning depending on how methods are imported.

Inspiration from other repos

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions