CLI to generate an ndjson file of FHIR Bundles from Patient data

# Prerequisites

* [Node.js](https://nodejs.org/en/)

# Installation

```bash
$ npm install -g bulk-data-bundle-generator 
```

# Usage

```
Usage: generate-ndjson-bundle  -d /path/to/bundles [-g] [-m <id>]

Options:
  -d --directory <directory>  Path to directory where the bundles are located
  -g --generate-report        If specified, generate a MeasureReport for each bundle
  -m --measure-id <id>        ID of the Measure that the generated MeasureReport should reference
  -h, --help                  output usage information
```

Output files are written to `ndjson-output/<uuid>-bundle.ndjson` in your current working directory

# Usage with Synthea

This module is generally targeted towards [Synthea](https://github.com/synthetichealth/synthea) Patient bundles. The following is a simple workflow for integration with Synthea bundles:

1) Follow [Synthea Quickstart](https://github.com/synthetichealth/synthea#quick-start) to generate patient bundles
2) `$ generate-ndjson-bundle -d ./output/<fhir-output-folder>/` will generate an ndjson file of all the Patient bundles from Synthea's output