On this page:

23.11smileutil: Upload Sample Dataset

 

The upload-sample-dataset command may be used to load a pre-generated set of useful sample data into Smile CDR. This data is created with Synthea, and it is both realistic and complete. The same data will be uploaded each pass so the data available in the repository will be consistent.

Note: Presently, the upload-sample-dataset command generates only DSTU3 data. In future, this command may be enhanced to support other versions of FHIR. In the meantime, other versions of FHIR data can be manually generated using Synthea and then uploaded using the synchronize-fhir-servers command.

23.11.1Usage

 
bin/smileutil upload-sample-dataset -e "http://localhost:8000/"

In the example above, http://localhost:8000/ is the FHIR endpoint to which the data will be uploaded.

23.11.2Options

 
  • -b [username:password] (or --basic-auth [username:password]) – (optional) If specified, provides a username and password that will be supplied to the server in an HTTP Basic Authorization header in the form of "username:password". If the value supplied is "PROMPT", smileutil will prompt the user to enter credentials interactively.
  • --bearer-token [token](optional) If specified, provides a bearer token that will be supplied to the server in an HTTP Authorization header. If the value supplied is "PROMPT", smileutil will prompt the user to enter a bearer token interactively.
  • -e [endpoint] – The FHIR endpoint to which the data will be uploaded.