GithubHelp home page GithubHelp logo

bluebutton.js's Introduction

BlueButton.js

A JavaScript library to work with Blue Button data in the form of XML Continuity of Care Documents, supporting both C32 and CCDA standards.

This project is under heavy development! Until a v1.0.0 release, the public API will change, a lot.

Community and Contributing

This project is currently under development by members of the Blue Button developer community and will be maintained by OSEHRA.

Until a public release (version 0.1.0), this project is considered a "developer preview". If you have a suggestion or concern, submit an issue or tweet us at @bluebuttondev.

Building

Run rake build to build both the development and production JavaScript.

Builds are placed in the build/ directory. Both builds first assemble all JavaScript files in the src/ directory in the order defined in manifest.json. All JavaScript files are concatenated and compiled with Google's Closure Compiler. If errors or warnings are found during compilation, the compiler will quit and they will be printed in the console.

Usage

Start by creating a Blue Button document object by passing the CCD XML (C32 or CCDA) to BlueButton:

var bb = BlueButton(xml);

The document object, bb in this example, now exposes all CCD data through a simple and consistent interface. Accessing major sections of the CCD document are shown below.

Medications

Use the meds method to retrieve a list of all medications:

bb.meds();  // Returns all medications as an Array

And an example medication object:

{
  product: {
    name: "Proventil 0.09 MG/ACTUAT inhalant solution",
    codeSystemName: "RxNorm",
    codeSystem: "2.16.840.1.113883.6.88",
    code: 573621
  },
  date: 20110301,
  directions: "2 puffs QID PRN wheezing",
  instructions: "Generic Substitution Allowed",
  status: "active",
  drugVehicle: {
    name: "Diethylene Glycol",
    codeSystemName: "SNOWMED CT",
    codeSystem: "2.16.840.1.113883.6.96",
    code: 5955009
  },
  indication: {
    name: "Bronchitis",
    codeSystemName: "SNOWMED CT",
    codeSystem: "2.16.840.1.113883.6.96",
    code: 32398004
  }
}

bluebutton.js's People

Contributors

blacktm avatar marks avatar

Watchers

James Cloos avatar Tyler Selby 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.