Download a FHIR Package Using the CLI

Download a FHIR package using the get-package command.

  • In the SAP Health Data Services for FHIR, command line interface, enter the following command to download the originally published FHIR package in .tar.gz format:
    java -jar hdsf-cli-1.0.40.jar get-package --package[-p]=<package name> [--target[-t]=<path to the target>] --version[-v]=<package version> --username[-u]=<user name> --password[-pwd]=<password>
    Example:
    java -jar hdsf-cli-1.0.40.jar get-package -p=custom_package -v=0.1.2 -u=xyz@sap.com -pwd=****
  • To download the modified version of the published FHIR package, which contains internal content in .tar.gz format, enter the following command:

    java -jar hdsf-cli-1.0.40.jar get-package --package[-p]=<package name> [--target[-t]=<path to the target>] --version[-v]=<package version> --username[-u]=<user name> --password[-pwd]=<password> --modified-content
  • In the CLI, enter any one of the following commands to download a published package with the extracted contents of the .tar.gz file:
    java -jar hdsf-cli-1.0.40.jar get-package --package[-p]=<package name> --version[-v]=<package version> --untar --username[-u]=<user name> --password[-pwd]=<password>

    or

    java -jar hdsf-cli-1.0.40.jar get-package --package[-p]=<package name> --version[-v]=<package version> -e --username[-u]=<user name> --password[-pwd]=<password>
  • In the CLI, enter the following command to download a published package with its dependencies:
    java -jar hdsf-cli-1.0.40.jar install-dependencies --package[-p]=<package name> --version[-v]=<package version> --username[-u]=<user name> --password[-pwd]=<password>
    Example:
    java -jar hdsf-cli-1.0.40.jar install-dependencies -p=custom_package -v=0.1.2 -u=xyz@sap.com -pwd=****

    Add --modified-content to the command to download internal content.