43.17.1smileutil: 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 uploads R4 data. In the 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.

43.17.2Usage

 
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.

43.17.3Options

 
  • -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.
  • -hp [header] (or --header-passthrough [header]) – (optional, multiple) Additional headers added to generated http request.
  • --tls-auth [filename](optional) If specified, this parameter supplies a path and filename for a Smile Util TLS JSON Authentication File that will be used to authenticate target FHIR server endpoints secured through HTTPS.