Metadata-Version: 2.1
Name: teamwork
Version: 0.1.3
Summary: A Python library for building a network graph of providers in care teams from EHR data
Home-page: https://github.com/gtdelong/teamwork
Author: Grant DeLong
Author-email: ggoulae@gmail.com
License: UNKNOWN
Project-URL: Source, https://github.com/gtdelong/teamwork/
Description: # teamwork
        
        teamwork is a Python library designed to aid in the study of medical care team collaboration. 
        
        Specifically, the library takes EHR data as input and does the following: 
        1) identifies the members of medical care teams per patient visit
        2) builds a network graph for each care team based on their common patients in the previous 90 days
        
        The resulting care team network graphs can be used to compute the cumulative collaborative experience of care teams and other metrics.
        
        ## Installation
        
        Use the package manager [pip](https://pip.pypa.io/en/stable/) to install teamwork.
        
        ```bash
        pip install -i https://test.pypi.org/simple/ teamwork
        ```
        
        ## Usage
        
        ```python
        import teamwork
        import pandas as pd
        
        # read medical notes (3 columns) into pandas DataFrame
        notes_df = pd.read_csv("notes_file.csv", parse_dates=[2])
        # enforce column names
        notes_df.columns = ['discharge_id', 'dr', 'date']
        # set a 90 day window to find collaboration among care teams
        WINDOW = 90
        # identify care teams within 2 day increments 
        STEP = 2
        
        # the study runner is a generator
        get_care_dates = teamwork.TeamworkStudyRunner(notes_df, WINDOW, STEP)
        
        # gather care teams into a list
        care_team_list = [care_team for care_date in get_care_dates for care_team in care_date]
        
        # do something with the care team network graph
        for care_team in care_team_list:
            do_something(care_team.G)
        ```
        
        A sample study can be found [here](https://github.com/gtdelong/teamwork/blob/main/notebooks/teamwork_study.ipynb)
        
        ## Contributors
        
        | Contributor|Role |
        |-|-|
        | [Henry Philofsky](https://github.com/hp2335) | Concept, SME |
        | [Grant DeLong](https://github.com/gtdelong) | Developer |
        
        ## License
        [MIT](https://github.com/gtdelong/teamwork/blob/main/LICENSE.txt)
        
Keywords: team,collaboration,EHR
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.6, <4
Description-Content-Type: text/markdown
