Define Business Configuration for Mapping Compartment to the Data Subject

Define a BusinessConfiguration resource that maps a compartment to a data subject and usage purpose. SAP Health Data Services for FHIR uses this mapping to identify which personal data to include in blocking, erasure, and personal data export operations.

The compartment containing the primary resource and its related resources must exist before you create the mapping.

You must define the business configuration with the code data-subject-compartment-mapping.

Business Configuration Elements for Mapping Compartment to the Data Subject

The following mandatory elements of the BusinessConfiguration resource map the compartment to a data subject and usage purpose:

Element

Cardinality

Datatype

Type

Description

dataSubject

1..1

Code

SAPDataSubjectTypes

The data subject whose personal data the compartment covers, for example, Patient, Practitioner, RelatedPerson, or Person.

purpose

1..1

Coding

SAPUsagePurpose

The processing purpose for the data subject's personal data, for example, all (required) or billing (custom).

primaryResource

1..1

Coding

FHIR resource types

The FHIR resource type that serves as the root of the compartment. For the all purpose, this is the data subject resource itself (for example, Patient). For custom purposes, this is the application-specific resource type associated with the data subject (for example, Account for a billing scenario). The value must match the code element in the referenced CompartmentDefinition. The primary resource must be unique per data subject and purpose combination.

compartment

1..1

canonical

SAPCompartmentDefinition

Canonical URL of the compartment instance that groups a primary resource and its related resources, for example, http://sap.com/healthcare/fhir/CompartmentDefinition/patient1690449181.

HTTP Request

You can use an HTTP POST request to create the business configuration:

POST [base]/BusinessConfiguration

Path Parameters

base: Service endpoint to interact with FHIR resources. For more information, see Service Endpoint.

Example

The following business configuration maps the compartment containing the primary resource Patient and related resources to the data subject Patient and purpose all: