CLI Client app for Bulk Data Import
This is an app that can ping (kick-off) Bulk Data imports pn behalf of a Data Provider as described here. To do so, it must be registered as a client at the Data Consumer site.
git clone https://github.com/smart-on-fhir/bulk-import-client.git
cd bulk-import-client
Once you are into the project folder, make sure you are using NodeJS >= 15. If
you have nvm
just run nvm use
. Then install the dependencies:
npm i
Rename the file example.env
to .env
and edit is as needed. The default
configuration connects this app to the prototype server at https://bulk-import-consumer.herokuapp.com/,
which imports data from the reference bulk data server at https://bulk-data.smarthealthit.org/.
See comments in the config file for further instructions.
The basic usage is (from within the project folder):
node . -e 'https://bulk-data.smarthealthit.org/fhir/$export'
This tells the (pre-configured) Data Consumer server to start a dynamic import from the bulk data server at "https://bulk-data.smarthealthit.org/fhir/$export".
For more options run:
node . --help