Update the Service Instance Using the CLI
Update the service instance of SAP Health Data Services for FHIR with a new FHIR package or a new version of a FHIR package using the update-instance command that is asynchronous by default.
java -jar hdsf-cli-1.0.40.jar update-instance --package[-p]=<package name> --version[-v]=<package version> --username[-u]=<user name> --password[-pwd]=<password>
java -jar hdsf-cli-1.0.40.jar update-instance -p=custom_package -v=0.1.2 -u=xyz@sap.com -pwd=****
Synchronous Handling
In the CLI, the update-instance command is asynchronous by default and the poll parameter (optional) is set to false.
java -jar hdsf-cli-1.0.40.jar update-instance --package[-p]=<package name> --version[-v]=<package version> [-poll=<poll status>] --username[-u]=<user name> --password[-pwd]=<password>
java -jar hdsf-cli-1.0.40.jar update-instance -p=custom_package -v=0.1.2 -poll=true -u=xyz@sap.com -pwd=****
Example
Consider four FHIR packages, package 1, package 2, package 3, and package 4.
The package 1 depends on the sap.fhir.r4 package and the package 4 depends on the package 1.
The package 3 depends on the sap.fhir.r4 package and the package 2 depends on the package 3.
If you've created a service instance 1 with the package 1 and the package 4, you can provision a new version of the package 1 or the package 4 but can't provision the package 2 or the package 3 in the service instance 1.
Similarly, if you've created a service instance 2 with the package 3 and the package 2, you can provision a new version of the package 2 or the package 3 but can't provision the package 1 or the package 4 in service instance 2.
