Patient Characterization for SNDS Data
This package provides tools for characterizing patients based on Electronic Health Records (EHR) from the SNDS data. It includes a variety of functions to identify different diseases, treatments, and patient characteristics.
Features
- Identify patients with specific diseases such as COPD, Hypertension, Diabetes, Cerebrovascular disease, Heart failure, Myocardial infarction, Chronic ischaemic heart disease, Stroke, Renal disease, Liver and pancreas diseases, Undernutrition, Parkinson's disease, Epilepsy, Psychiatric diseases, Peripheral vascular disease, Dyslipidemia.
- Determine whether patients have received specific treatments (chemotherapy, radiotherapy, surgery, etc.).
- Generate Snakey diagrams for visualizing patient treatment pathways.
- Support for adding or deleting specific treatment codes (surgery, radiotherapy, chemotherapy, endocrine therapy, targeted therapy).
- Determine if a patient is treated for specific conditions based on ICD-10 and ATC codes.
- Assess the quantity and dates of treatments.
- Identify neoadjuvant or adjuvant therapies.
- Calculate chemotherapy intervals.
- Identify tobacco and alcohol use.
Installation
pip install EHRPOP
Usage
Here's a basic example to get you started with using the package:
# Importing the Package
import EHRPOP as pchar
import pandas as pd
# First, load your EHR data into a DataFrame:
df = pd.read_csv('path_to_your_EHR_data.csv')
# Use the provided functions to characterize your patients. For example, to identify patients with COPD:
COPD_patients = pchar.isCOPD(df, 'COPD')
print(COPD_patients)
# You can generate Snakey diagrams to visualize patient treatment pathways:
pchar.SnakeyDiagram(df)
Release files for EHRPOP 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ehrpop-0.0.9.tar.gz | 13.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| EHRPOP-0.0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.6 kB
Release files / ehrpop-0.0.9.tar.gz
| Download URL | ehrpop-0.0.9.tar.gz |
|---|---|
| Size | 13.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0fdb02718e339292262b6a9a504756fbe61b16c7223804159d50540dc7267607
|
|
BLAKE2b-256 checksum How to use checksums |
94821890cc7fadddd65bb21a4155916a2977a739184aedfb2e8f03d538d94621
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.1
|
Release files / EHRPOP-0.0.9-py3-none-any.whl
| Download URL | EHRPOP-0.0.9-py3-none-any.whl |
|---|---|
| Size | 13.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
09c46b24215b5d6beb30ee99dcf5e6b8bca0611a56649d4ed7b092e20dcd1a40
|
|
BLAKE2b-256 checksum How to use checksums |
f87d67022f06c67274363d276d6488218a7ab2ec7b7688e12875f73ba0fbd917
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.1
|