FHIR to pandas.dataframe for AI and ML
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/ndjson into a pandas data frame for analysis and importing into ML packages such as Tensorflow and PyTorch. Test it with the synthea sample or the downloaded ndjson from the SMART Bulk data server. Use the 'Discussions' tab above for feature requests.
Installation
pip install fhiry
Usage
Synthea
import fhiry.parallel as fp
df = fp.process('/path/to/fhir/resources')
print(df.info())
SMART Bulk Data Server Export
import fhiry.parallel as fp
df = fp.ndjson('/path/to/fhir/ndjson/files')
print(df.info())
Columns
- see df.columns
patientId
fullUrl
resource.resourceType
resource.id
resource.name
resource.telecom
resource.gender
...
...
...
Modules
Contributors
- Bell Eapen |
- WIP, PR welcome, please see CONTRIBUTING.md
- using CC
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for fhiry-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6eb1736e90e68975e3bd92e00298154d79dfabd01d9f9513bb1da42cfc5d1be |
|
MD5 | ce661e58171ceb7adb1cec3fee96c786 |
|
BLAKE2b-256 | 325800f0e2d3c20e51a88370adde02209907c64fa53a70ff5d59757987c57932 |