1.5.2 • Published 7 years ago

blue-button-cms v1.5.2

Weekly downloads
40
License
Apache-2.0
Repository
github
Last release
7 years ago

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.

Usage

var bbcms = require("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.

1.5.2

7 years ago

1.5.1

7 years ago

1.5.1-beta.1

9 years ago

1.5.0

9 years ago

1.5.0-beta.1

9 years ago

1.3.1

9 years ago

1.3.0

9 years ago

1.3.0-beta.3

9 years ago

1.3.0-beta.1

10 years ago