Configuring the Patient Resource to Consume the Business Partner ID

Profile the Patient resource in SAP Health Data Services for FHIR to consume the Business Partner ID.

Context

The integration flow updates a Patient resource in SAP Health Data Services for FHIR by adding a new identifier. This identifier has the use field set to secondary and contains the Business Partner ID.

The type field of this identifier specifies the source type. SAP Health Data Services for FHIR provides a custom CodeSystem and ValueSet for the Business Partner ID identifier types as part of the sap.fhir.r4 package.

CodeSystem:

{ 
    "resourceType": "CodeSystem", 
    "id": "sap-integration-identifier-types", 
    "url": "http://sap.com/healthcare/fhir/CodeSystem/sap-integration-identifier-types", 
    "version": "1.0.0", 
    "concept": [ 
        { 
            "code": "BP", 
            "display": "Business Partner ID", 
            "definition": "This code defines the Business Partner ID in the target SAP S/4HANA system." 
        } 
    ] 
}

ValueSet:

{ 
    "resourceType": "ValueSet", 
    "id": "sap-integration-identifier-types", 
    "url": "http://sap.com/healthcare/fhir/ValueSet/sap-integration-identifier-types", 
    "version": "1.0.0", 
    "compose": { 
        "include": [ 
            { 
                "valueSet": [ 
                    "http://hl7.org/fhir/ValueSet/identifier-type" 
                ] 
            }, 
            { 
                "system": "http://sap.com/healthcare/fhir/CodeSystem/sap-integration-identifier-types" 
            } 
        ] 
    } 
}

To consume the Patient resource with the Business Partner ID, you need to profile the Patient resource.

FHIR provides several mechanisms for extending existing profiles or creating new ones to include additional identifier types. We recommend that you use slicing. Slicing allows for structured differentiation of repeated elements, such as identifiers, within a resource.

The Business Partner ID is retained during subsequent updates unless you explicitly modify the profile to exclude the custom CodeSystem.

Here is a sample JSON with the Patient.identifier entry including the Business Partner ID:

The system field contains the SAP S/4HANA system information. The value field contains the Business Partner ID.