
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
blue-button-cms
Advanced tools
Blue Button CMS Parser
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.
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 details and validation can be found in blue-button-model.
Some notes on implementation are included here.
Licensed under Apache 2.0.
FAQs
Did you know?
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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.