Public FHIR Package

A public package is a compressed .tar.gz file and can have multiple folders:

  • The folder containing the package.json file at the root level is processed by the system and returns 422 if the package.json file is present in multiple folders.

    • If the package.json file is not present at the root level, then the system returns 422, a validation error.

    • If the package to be processed has package.json file present in multiple subfolders, then the system returns 422, a validation error.

    • The public FHIR package can contain the subfolders and the examples subfolder is ignored.

  • The following are the guidelines when working with public FHIR packages:

    • In the package.json file, check the following:

      • The base dependency must be hl7.fhir.r4.core package.

      • The package.json file must have the mandatory properties. For more information, see Package Manifest Properties.

    • In the resource JSON files, check the following:

      • The URL and version must be valid.

      • Non-canonical resources are not supported.

      • Enter the values for all the mandatory fields with proper cardinality as maintained in the StructureDefinition. For example, id field is mandatory for resources of the type StructureDefinition.

    • Enter valid codes defined in the CodeSystem and the CodeSystem must be present in SAP Health Data Services for FHIR.

    • When using the extensions, check the definitions in both differential and snapshot sections of the StructureDefinition.

You can publish the public package to SAP FHIR registry. For more information, see Publish a FHIR Package Using the CLI.

Restriction

The following are the restrictions for the public FHIR package:

  • The public FHIR package supports only JSON files.

  • The public FHIR package does not support non-canonical resources.

  • SAP Health Data Services for FHIR does not support NamingSystem resource.

  • Creation of following resources with custom profile in the public FHIR package is ignored:

    • ViewDefinition

    • OperationDefinition

    • StructureDefinition

    • SearchParameter

    • GraphDefinition

    • CompartmentDefinition

    • MessageDefinition

    • CapabilityStatement

    • ImplementationGuide

    • SAPExtensionDefinition

    • SAPExtensionPoint

    • ClientFlowAuthorization

    • ApplicationFlowAuthorization

    • AuthorizationMap

    • RolePermission

    • GenericIssue

    • MessageQueue

    • GroupPolicy

    • ValueSet

    • CodeSystem

    • StructureMap

    • Bundle