GithubHelp home page GithubHelp logo

ccda-parser's Introduction

pyCCDA

This is a lightweight Python library for parsing raw C-CDA documents without the need to understand the entire specification. If you're using BlueButton.js this maintains much of the same functionality. This is a largely unstable build so use at your own risk - we have since ported over to C++ for necessary performance improvements and will release a stable version of that shortly.

Test documents from various vendors available here.


Install

pip install pyCCDA

Example Usage

# example
from pyCCDA import CCDA
with open('CCCD_sample.xml') as f:
   ccd = CCDA(f.read())
   # ccd.type   # The document type ('ccda', 'c32', and such)
   # ccd.source # The parsed source data (XML) with added querying methods
   # ccd.data   # The final parsed document data
name = ccd.data.demographics.name
print name.prefix, name.given, name.family

Library Structure

.
├── _init_.py
├── core
│   ├── _core.py
│   ├── _init_.py
│   ├── codes.py
│   ├── wrappers.py
│   └── xml.py
├── documents
│   ├── _init_.py
│   └── ccda.py
└── parsers
    ├── _ccda
    │   ├── allergies.py
    │   ├── care_plan.py
    │   ├── demographics.py
    │   ├── documents(_ccda).py
    │   ├── encounters.py
    │   ├── free_text.py
    │   ├── functional_statuses.py
    │   ├── immunizations.py
    │   ├── instructions.py
    │   ├── medications.py
    │   ├── problems.py
    │   ├── procedures.py
    │   ├── results.py
    │   ├── smoking_status.py
    │   └── vitals.py
    └── ccda.py

Available Concepts

Parser ... 
Generator ... 
Section ... 
Document ... 
Allergies
Care Plan
Chief Complaint 
Demographics 
Encounters 
Functional Statuses
Immunizations 
Instructions 
Results 
Medications 
Problems 
Procedures 
Smoking 
Status 
Vitals

ccda-parser's People

Contributors

mansooralam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.