Publish a FHIR Package Using the CLI

Publish a FHIR package using the publish-package command.

Publish a FHIR package to SAP FHIR registry. SAP Health Data Services for FHIR then consumes the published FHIR packages from SAP FHIR registry.

A FHIR package is private to the subaccount from where it's published. The published FHIR package can't be used to provision SAP Health Data Services for FHIR service instance outside the subaccount. The FHIR package published from a subaccount can't be published again from a different subaccount.

The package name must be in the correct format. For more information, see FHIR Package Name and Version.

  • In the SAP Health Data Services for FHIR, command line interface, enter the following command to publish a FHIR package:
    java -jar hdsf-cli-1.0.40.jar publish-package --packagepath[-p]=<path to your package name folder or path to .tar.gz file> --username[-u]=<user name> --password[-pwd]=<password>
    The .tar.gz file must contain the package.json file at the root level. The .tar.gz file can contain the subfolders and the examples subfolder is ignored. For more information, see Public FHIR Package.
    Example:
    java -jar hdsf-cli-1.0.40.jar publish-package -p=custom_package.tar.gz -u=xyz@sap.com -pwd=****
    or
    java -jar hdsf-cli-1.0.40.jar publish-package -p=custom_package -u=xyz@sap.com -pwd=****