Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect to cdw #4

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Connect to cdw #4

wants to merge 6 commits into from

Conversation

shgt0707
Copy link
Contributor

@shgt0707 shgt0707 commented Mar 22, 2024

Description

What was the problem?

No way to automate CDW data pull directly into local file

How does this fix it?

Successfully connect to CDW database and retrieve a sample CPT code in our GI cancer CPT subset.

Important notes:

This script is only able to run successfully when connected to the VA network

  • Update these variables: cpt_input and output_file before running the script.
  • Ensure all dependencies and libraries are installed before running the script if it's your first time running python on the GFE
  • Depending on your versions of python libraries, you might run into issues along the code, but let me know if it's not an easy fix (upgrade version of pandas, sqlalchemy, etc.)
  • I will update the requirements.txt doc once it's finalized
  • Ignore the __init__.py file for now, that's just a placeholder for future features to run ex: (cli commands, other initializing functions)
  • If you decide to test with some other tables, ensure you delete the output file if it contains PHI/PII

Jira Tickets

MCP-5408

How to test this PR

  • Update these variables: cpt_input and output_file before running the script. For now the cpt_input file is already provided, but you can test a new cpt code set list if you like. Note: (it's a .txt file and each cpt code is a new line)
  • If running into connection issues, check error message and troubleshoot as there might be various types of connection issue a user might run into. (VA network, windows authentication, etc.)

Definition of Done Checklist

  • Successful connection to CDW database
  • Retrieve CPT code sets based on input file and produce output file

@shgt0707 shgt0707 self-assigned this Mar 22, 2024
@shgt0707 shgt0707 changed the title connect to cdw Connect to cdw Mar 22, 2024
@shgt0707 shgt0707 marked this pull request as ready for review March 25, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant