Skip to main content

Package for reading data from Holter blood pressure test results.

Project description

Project description

HoltAir is a tool for python that reads and analyzes data from Holter blood pressure test results in PDF format.

Usage

Quickstart:

from holtair import exams

# you have to specify the tesseract executable in your PATH:
tesseract_path = r'<full_path_to_your_tesseract_executable>'
#also you have to specify the pdf2image poppler executable in your PATH:
poppler_path =  r'<full_path_to_your_poppler_executable>'

#create Exam object with test result data
exam = exams.get_exam(r'test_file.pdf',poppler_path,tesseract_path)

#get pandas dataframe with raw data  
print(exam.results_df)

#create ExamStatistics object calculated statistics 
statistics = exam.exam_statistics

#get basic statistics such sa mean,std,min and max for different blood pressure indicators
print(statistics.basic_overall)

# get basic statistics for detected night:
print(statistics.basic_night)

# create Patient with information about patient
patient = exam.patient

# get patient id 
print(patient.patient_id)

Necessary files:

Windows

Linux

  • Poppler (using conda): conda install -c conda-forge poppler
  • Tesseract : sudo apt install tesseract-ocr, sudo apt install libtesseract-dev

Functions and classes description

get_exam() function

This function is used to return the ExamFromImage or ExamFromText object that contain all the analysis and test results data.

Parameters:
get_exam(fielpath,popplerpath,tesseractpath)

  • filepath Path to the PDF file containing the exam result.
  • popplerpath Path to the poppler executable used in the pdf2image package.
  • tesseractpath Path to the Tesseract executable used in pytesseract package.

Exam class

ExamFromImage and ExamFromText inherit from Exam class. Their objects store all the analysis and information data regarding test result. ExamFromText object contains exam information that is read directly from the pdf file and ExamFromImage object contains the information that is read from not readable pdf using Tesseract OCR.

Attributes:

  • results_df Dataframe containing measure values from the exam.
  • exam_statistics ExamStatistics object storing dataframes with calculated statistics.
  • patient Patient object which stores data about patient.
  • scan_end_time String value with time of the end of the exam.
  • scan_start_time String value with time of the start of the exam.

ExamStatistics class

ExemStatistics objects stores dataframes with calculated statistics from data from exam results for day, night, both and dictionary with pb_load values.

Attributes:

  • basic_overall Dataframe with statistics for day and night.
  • basic_day Dataframe with basic statistics for a day.
  • basic_night Dataframe with basic statistics for a night.
  • param bp_load Dictionary with pb_load values for day, night and joined.

Patient

Patient object stores the basic information about the patient.

Attributes:

  • first_name Patient first name.
  • last_name Patient second name.
  • patient_id Patient ID.
  • birrthdate Patient birthdate.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

holtair-1.0.4.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

holtair-1.0.4-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file holtair-1.0.4.tar.gz.

File metadata

  • Download URL: holtair-1.0.4.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for holtair-1.0.4.tar.gz
Algorithm Hash digest
SHA256 e775949cb8eff5cc0e9cbefb94c8bee08d1497179c1950fd068a0e2f3d02c71e
MD5 2b65ea88e8d9606eb28cd4af9e86430d
BLAKE2b-256 6452e9117dba528fc112fd2bf000f7a733f3a02817223a0fc11006cc968bee1e

See more details on using hashes here.

File details

Details for the file holtair-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: holtair-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for holtair-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 089e85151499d6d6f599028a255a22a56f94c61adca85c7306f5b8f332a26842
MD5 665663be10178c38540e9e9f88f06cfd
BLAKE2b-256 618f8069cb42daa5cd9fde0c64d237be494f118e87b2e72bcff320ca82a066d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page