blue-button-fhir

1.6.0-beta.2 • Public • Published

blue-button-fhir

FHIR to Blue Button Model Translator

NPM

Build Status Coverage Status

This library translates FHIR Resource Bundles to blue button model.

Currently the following resources are supported in Bundles

  • Patient
  • No consistency is checked between the Patient resource and patient references in other objects.
  • Allergy Intolerance
  • Adverse Reaction and Substance resources that are externally referenced from any Allergy Intolerance resource are assumed to be in the Bundle.
  • Condition
  • Medication Administration
  • Medication and Medication Prescription resources that are externally referenced from any Medication Administration resource are assumed to be in the Bundle.
  • Medication Prescription
  • Medication resources that are externally referenced from any Medication Prescription resource are assumed to be in the Bundle.
  • Medication Statement
  • Observation
  • Observation resources are assumed to have an extension.valueCoding field that defines the LOINC description of the type of the resource. Vitals (code - 8716-3) and Results (code - 11502-2) are supported.

Usage

Require blue-button-fhir module

var bbfhir = require("blue-button-fhir");

and translate a FHIR Resource Bundle

var model = bbfhir.toModel(input);

Demographics, allergies, vitals, results, medications and problems sections of blue button data are filled.

console.log(model.data.demographics);
console.log(model.data.allergies);
console.log(model.data.vitals);
console.log(model.data.results);
console.log(model.data.medications);
console.log(model.data.problems);

Configuration

The only configurable item in this project is logging which can be configured in lib/logger.js. See bunyan for configuration options.

Testing

Mocha and Grunt are used for testing this project. Simply run grunt in the project directory to run all the tests.

License

Licensed under Apache 2.0.

Package Sidebar

Install

npm i blue-button-fhir

Weekly Downloads

1

Version

1.6.0-beta.2

License

Apache-2.0

Last publish

Collaborators

  • austundag
  • mhiner
  • jbregstone
  • rmharrison
  • mmccall
  • kachok
  • ekavs
  • jsachs13