New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

blue-button-fhir

Package Overview
Dependencies
Maintainers
4
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blue-button-fhir

Blue Button FHIR to Model Translator

  • 1.4.0-beta.12
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
39
increased by457.14%
Maintainers
4
Weekly downloads
 
Created
Source

blue-button-fhir

FHIR to Blue Button Model Translator

NPM

Build Status Coverage Status

This library translates an array of FHIR resources or a bundle resource to blue button model.

Currently the following resources are supported

  • Allergy Intolerance
  • Adverse Reaction and Substance resources that are externally referenced from any Allergy Intolerance resource is assumed to be in the input array of resources/bundle.
  • Condition
  • Medication Administration
  • Medication and Medication Prescription resources that are externally referenced from any Medication Administration resource is assumed to be in the input array resources/bundle.
  • Medication Prescription
  • Medication resources that are externally referenced from any Medication Prescription resource is assumed to be in the input array resources/bundle.
  • Observation
  • Observation resources are assumed to have an extension->valueCoding element 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 an array of resources or a bundle

var model = bbfhir.toModel(input);

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

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);

Keywords

FAQs

Package last updated on 26 Feb 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc