Skip to content

Command Line Utility for Importing Practice and Providers in JSON Formatted File

petercyli edited this page Jan 13, 2016 · 7 revisions

This rake task allows creating both practices and providers from a single JSON file. Note that this assumes the popHealth application is configured to use the "Multiple Practice" mode where the use_opml_structure flag in the popHealth.yml file is set to false (see section 8 of the installation 4.0 guide for detail).

Example Usage:

bundle exec rake provider:load_practices_and_providers[test/fixtures/testProviderList.txt] RAILS_ENV=production

Example JSON file: testproviderlist.txt

Clone this wiki locally