Validate a FHIR Package Using the CLI

Validate a FHIR package using the validate-package command.

The validate-package command validates the contents of a FHIR package and content type of the package.json file.

The command also validates the name, version, and dependency and checks whether the contents of the package are in JSON format so that the package is FHIR-compliant.

In the SAP Health Data Services for FHIR, command line interface, enter the following command to validate a FHIR package:
java -jar hdsf-cli-1.0.40.jar validate-package --packagepath[-p]=<path to your package name folder or path to .tar.gz file> [--resourcepath[-r]=<path to the resource>] --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 validate-package -p=custom_package.tar.gz -u=xyz@sap.com -pwd=****
or
java -jar hdsf-cli-1.0.40.jar validate-package -p=custom_package -u=xyz@sap.com -pwd=****