1.0.2 • Published 8 years ago

agile-bluebutton v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

BlueButton.js Build Status

BlueButton.js helps developers parse and generate complex health data formats like C-CDA with ease, so you can empower patients with access to their health records. Try the demo.

Quick Start

BlueButton.js supports a few different health data types, like C32 and CCDA. To parse a health document, pass the source data to BlueButton:

var myRecord = BlueButton(xml);

BlueButton.js will detect the document type and choose the appropriate parser. The returned object has the following properties:

myRecord.type    // The document type
myRecord.source  // The parsed source data with added querying methods
myRecord.data    // The final parsed document data

Agile Enhancements

To parse a document using a specific format, rather than relying on BlueButton to dynamically determine the document type, set the parseType:

// Allow BlueButton to determine the document type based on the document header
var myRecord = BlueButton(xmlData);

// Use the section type rather than document header to determine parse method to use
var myRecord = BlueButton(xmlData, { parseType: 'dynamic' });

// Parse as a C32 document regardless of the type defined in the document header
var myRecord = BlueButton(xmlData, { parseType: 'c32' });

// Parse as a CCDA document regardless of the type defined in the document header
var myRecord = BlueButton(xmlData, { parseType: 'ccda' });

Detailed Documentation

See http://www.bluebuttonjs.com/docs/ for an explanation of the data sections, much more detailed sample code, instructions on how to generate a build, etc.

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago