Skip to main content

FHIR to pd.Dataframe

Project description

:fire: fhiry - FHIR for AI and ML

About

Bulk data export using FHIR may be important if you want to export a cohort for analysis or machine learning. :fire: Fhiry is a python package to facilitate this by converting a folder of FHIR bundles into a pandas data frame for analysis and importing into ML packages such as Tensorflow and PyTorch. Test it with the synthea sample. Use the 'Discussions' tab above for feature requests.

Installation

pip install fhiry

Usage

from fhiry import Fhiry
f = Fhiry()
f.folder = '/path/to/fhir/resources'
f.process_df()
print(f.df.head(5))

Columns

patientId
fullUrl 
resource.resourceType 
resource.id 
resource.name 
resource.telecom 
resource.gender 
...
...
...

Contributors

  • Bell Eapen
  • WIP, PR welcome, please see CONTRIBUTING.md

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

fhiry-0.2.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

fhiry-0.2.1-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

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