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:
- identifies the members of medical care teams per patient visit
- 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 to install teamwork.
pip install -i https://test.pypi.org/simple/ teamwork
Usage
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
Contributors
| Contributor | Role |
|---|---|
| Henry Philofsky | Concept, SME |
| Grant DeLong | Developer |
License
Metadata
Release files for teamwork 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| teamwork-0.1.5.tar.gz | 4.4 kB | Without provenance | Details for teamwork-0.1.5.tar.gz |
Release files / teamwork-0.1.5.tar.gz
| Download URL | teamwork-0.1.5.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
181447b09eecdc629bd891074b92d76e66a5541531b5cdcf818f847a9d630b16
|
|
BLAKE2b-256 checksum How to use checksums |
a8514f8434087d22c87e2cde2cbeccf588b371c17ee0b0e97932f5fa4464a7a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.0
|
Security for teamwork 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.