bulk-data-bundle-generator

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

Usage no npm install needed!

<script type="module">
  import bulkDataBundleGenerator from 'https://cdn.skypack.dev/bulk-data-bundle-generator';
</script>

README

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

Prerequisites

Installation

$ 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 Patient bundles. The following is a simple workflow for integration with Synthea bundles:

  1. Follow Synthea Quickstart 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