You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@amida-tech/blue-button-cms

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amida-tech/blue-button-cms

Blue Button CMS Parser

1.5.8
latest
Source
npmnpm
Version published
Weekly downloads
84
-76.4%
Maintainers
1
Weekly downloads
 
Created
Source

Blue Button CMS

Blue Button CMS Parser

NPM

Build Status Coverage Status

This library is part of blue-button family of parsers and generate JSON data from CMS files. The model of the generated data is described in blue-button-model. This library is also exposed through blue-button.

Quick up and running guide

Prerequisites

  • Node.js (v14.19+) and NPM
  • Grunt.js
# Install dependencies
npm i

# Install grunt
npm i -g grunt

# Test
grunt

Usage

var bbcms = require("@amida-tech/blue-button-cms");

//read in the file
var textString = fs.readFileSync("cms_sample.txt").toString();

//convert the string text file into blue button model
var result = bbcms.parseText(textString);

console.log(result);

getting:


{ data:
   { demographics:
      { name: [Object],
        dob: [Object],
        email: [Object],
        phone: [Object],
        address: [Object] },
     vitals: [ [Object], [Object] ],
     results: [ [Object] ],
     medications: [ [Object], [Object] ],
     allergies: [ [Object], [Object] ],
     immunizations: [ [Object], [Object], [Object] ],
     problems: [ [Object], [Object] ],
     insurance: [ [Object], [Object], [Object], [Object], [Object], [Object] ],
     claims: [ [Object], [Object], [Object], [Object], [Object] ] },
  meta:
   { type: 'cms',
     version: '2.0',
     timestamp: { date: '2013-03-16T05:10:00Z', precision: 'minute' },
     sections: ['demographics', ..., 'claims'] } }

Data Model

Data model details and validation can be found in blue-button-model.

Implementation

Some notes on implementation are included here.

License

Licensed under Apache 2.0.

Keywords

bluebutton

FAQs

Package last updated on 12 Apr 2024

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