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
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.
--basic-auth [username:password]) – (optional) If specified, provides a username and password that will be supplied to the server in an HTTP Basic
Authorizationheader 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
Authorizationheader. 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.
--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.