Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.
/ pyccda Public archive

A Python library for CCDA XML files. Part of the BlueButton health information liberation initiative.

Notifications You must be signed in to change notification settings

hinthealth/pyccda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#pyccda

A Python library for CCDA XML files. Part of the BlueButton+ health data liberation initiative

##Development notice

This project is under development and is not fully-featured yet. However, pyccda is capable of parsing CCDA XML files and converting them to structured ProtoRPC messages or simplified CSV documents, which can be used to pipeline the data into data analysis tools.

##Usage

Before using, run pip install -r requirements.txt to install dependencies.

import pyccda
ccda = pyccda.CcdaDocument(open('ccda_file.xml'))

# Returns CCDA represented as a simple CSV, which can be
# useful to load data into an external data analysis tool.
ccda.to_csv()

# Returns CCDA represented as a protocol buffer message, for easy
# data access and transfer between systems.
ccda_message = ccda_doc.to_message()

# Easily access health information using the protocol buffer message.
ccda_message.allergies
ccda_message.demographics
ccda_message.immunizations
ccda_message.labs
ccda_message.medications
ccda_message.problems
ccda_message.procedures
ccda_message.vitals

##Running tests

# Verifies basic functionality against test data.
python ccda_test.py

About

A Python library for CCDA XML files. Part of the BlueButton health information liberation initiative.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages