The user in this use-case is a health provider supply administrator.
After analysing the data provided in the dataset, I had the idea to present the data in a way that may provide some insight hard to see otherwise.
Each "record" of the dataset contains some geographical information, such as state, city and R.U.C.A (Rural-Urban Commuting Area codes).
With this parameters, the idea of finding the most common procedures performed in a given state, aggregated by cities which fall inside a R.U.C.A range.
This could give the "user" the lead on which procedures should be prioritized on certain zones and distribute supplies accordingly. For example: most common procedures in Rural Texas or the Metropolitan cities of New York.
- Have docker-compose installed
- Have the public dataset from Centers for Medicare and Medicaid Services (CSV file, must be named MUP_PHY_R21_P04_V10_D19_Prov_Svc.csv)
- Git clone the repo
- Make sure you're in a new virtualenv
- Run
pip install -r requirements-dev.txt
- Run
pre-commit install
- Run
pytest
at the root of the project, all tests should pass - You're ready for development!
- Git clone the repo
- Move the CSV to
app/data/MUP_PHY_R21_P04_V10_D19_Prov_Svc.csv
- At the root of the repo, run
docker-compose up --build -d
- To load data, run
docker-compose run api /code/load_data.sh
- Wait for the data to load, 1 million records should be added to the database
- In your browser, go to http://localhost:8000/docs
- In the OpenAPI interface, select the /procedure/ endpoint and click "Try it out"
- Try different values for
state_abbreviation
,min_ruca
andmax_ruca