Issues Related to FHIR Packages
Find solutions for errors that occur during FHIR package management operations.
FHIR Package Management
Create a FHIR Package
If you face issues when creating a FHIR package using the SAP Health Data Services for FHIR, command line interface, check the error.
-
Enter a valid FHIR package name
Solution: The FHIR package name must be in the correct format. For more information, see FHIR Package Name and Version.
-
Enter a valid FHIR package version
Solution: The FHIR package version must be in the major.minor.patch format. The custom FHIR package must have FHIR version 4.0.1.
-
Enter a valid FHIR package dependency
Solution: The dependency package must be present in SAP Health Data Services for FHIR.
-
Enter a valid category field
Solution: The category field in the FHIR package must have the value application or extension. Do not use foundation as this category is used for the packages shipped from SAP Health Data Services for FHIR.
Build a FHIR Package
If you face issues when building a FHIR package using SAP Health Data Services for FHIR, command line interface, check the error.
-
Enter a valid FHIR package name
Solution: The FHIR package name must be in the correct format. For more information, see FHIR Package Name and Version.
-
Enter a valid FHIR package version
Solution: The FHIR package version must be in the major.minor.patch format. The custom FHIR package must have the FHIR version 4.0.1.
-
Enter a valid FHIR package dependency
Solution: The dependency package must be present in SAP Health Data Services for FHIR.
-
Enter a valid package.json file
Solution: Check the following:
-
The FHIR package must contain exactly one package.json file at the root level.
-
The package.json file fields and schema must be valid.
-
-
Enter a valid file type
Solution: The FHIR package supports only JSON files.
-
Enter a valid subfolder name
Solution: The subfolder name must be in the correct format. For more information, see FHIR Package Name and Version.
-
Enter a valid resource content
Solution: The content of each resource must adhere to the JSON schema and the FHIR resource schema across all subfolders. Files in ignored folders are excluded from this validation.
Validate a FHIR Package
If you face issues when validating a FHIR package using the SAP Health Data Services for FHIR, command line interface, check the error.
-
Enter a valid dependency
Solution: The custom FHIR package must have a base dependency to hl7.fhir.r4.core package and must be present in SAP Health Data Services for FHIR.
Publish a FHIR Package
If you face issues when publishing a FHIR package using the SAP Health Data Services for FHIR, command line interface, check the error. For more information, see Validations During Publishing a Package Using the SAP Health Data Services for FHIR, command line interface.
-
Snapshot Generation Fails
Solution: The system raises an error if an extension is defined with a differential element in the StructureDefinition containing a complex-type field one level down. To resolve the error, provide a complete snapshot element for the corresponding profile that you publish.
You can check the following sections for any errors raised for FHIR resources:
Provisioning, RESTful Interactions, or Updating the Service Instance
If you face issues when provisioning a FHIR package, in RESTful interactions, or when updating a service instance, check the error. For more information, see Validations During RESTful Interactions, Update Service Instance, and Package Provisioning.
Snapshot Generation Fails
Solution: If an extension is defined with a differential element in the StructureDefinition containing a complex-type field one level down, then the system raises an error. To resolve the error, provide a complete snapshot element for the corresponding profile that you publish.
You can check the following sections for any errors raised for FHIR resources: