Task 1 available as a jupyter notebook. Task 2 and Task 3 are available in the main.py file.
modules.py contains functions for preprocessing and merging
new_populate.py contains code for creating a new schema to insert the patient_timeline df into
col_info.csv is a data dictionary for mapping alias of column names and for describing table and column features (ideal for non-technical audiences)
config.yaml lists usernames and passwords
docker-compose.yaml and requirements.txt has been modified
Things to note:
- Changed drivers for Mac while working on the solution (changed it back to default while submitting)
- docker-compose up couldnt run on Mac. As a get-around created a new container and copied contents. Faced similar issues while dockerising the application.
Task : Load data from MSSQL database, analyze medical data present and plot your findings in the dataset.
The code has to be written in Python, data processing part should be ideally dockerized and solution should be published on public github account. Clone or fork this project and modify it to your liking. All components are made on unix system.
There is a docker-compose.yaml file present, to be able to run the database you will need docker and docker-compose installed
For connecting to the MSSQL you will need to install ODBC Driver
Starting MSSQL:
docker-compose up -d mssqlExample connection string can be found and tested using:
python connect.pyPlease explore the data structure, there are 5 different tables:
encounter
codnition
procedure
observation
medicationrequest
Every table has the following schema:
id
patient_id
datetime-based feature
and other features