# @amida-tech/blue-button-cms

> Blue Button CMS Parser

Latest version **1.5.8** (published 2024-04-12) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @amida-tech/blue-button-cms
pnpm add @amida-tech/blue-button-cms
yarn add @amida-tech/blue-button-cms
bun add @amida-tech/blue-button-cms
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.5.8 |
| Published | 2024-04-12 |
| First published | 2022-04-22 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 14.19.3 |
| Dependencies | 2 |
| Unpacked size | 8.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Dmitry Kachaev |
| Maintainers | manhydra |
| Keywords | bluebutton, blue-button, cms, parsing |

## Links

- npm: https://www.npmjs.com/package/@amida-tech/blue-button-cms
- Repository: https://github.com/amida-tech/blue-button-cms
- Issues: https://github.com/amida-tech/blue-button-cms/issues
- npm.io page: https://npm.io/package/@amida-tech/blue-button-cms

## Dependencies (2)

- [moment](https://npm.io/package/moment.md) ^2.30.1
- [underscore](https://npm.io/package/underscore.md) ^1.13.6

## Recent versions

- 1.5.8 (latest) — 2024-04-12
- 1.5.7 — 2023-01-05
- 1.5.6 — 2022-08-02
- 1.5.5 — 2022-05-31
- 1.5.4 — 2022-04-22

## README

Blue Button CMS
=================

Blue Button CMS Parser

[![NPM](https://nodei.co/npm/@amida-tech/blue-button-cms.png)](https://nodei.co/npm/@amida-tech/blue-button-cms/)

[![Build Status](https://travis-ci.org/amida-tech/blue-button-cms.svg)](https://travis-ci.org/amida-tech/blue-button-cms)
[![Coverage Status](https://coveralls.io/repos/amida-tech/blue-button-cms/badge.png)](https://coveralls.io/r/amida-tech/blue-button-cms)

This library is part of [blue-button](https://github.com/amida-tech/blue-button) family of parsers and generate JSON data from CMS files.  The model of the generated data is described in [blue-button-model](https://github.com/amida-tech/blue-button-model).  This library is also exposed through [blue-button](https://github.com/amida-tech/blue-button).

## Quick up and running guide

### Prerequisites

- Node.js (v14.19+) and NPM
- Grunt.js

```sh
# Install dependencies
npm i

# Install grunt
npm i -g grunt

# Test
grunt

```

## Usage

```javascript
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:

``` javascript

{ 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](https://github.com/amida-tech/blue-button-model).

## Implementation

Some notes on implementation are included [here](./docs/cms.md).

## License

Licensed under [Apache 2.0](./LICENSE).

---
_Source: https://npm.io/package/@amida-tech/blue-button-cms · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
