CareSystemFieldMapping
Represents a mapping from source system fields to Salesforce
objects and fields. This type extends the Metadata metadata type and inherits its
fullName field.
File Suffix and Directory Location
CareSystemFieldMapping components have the suffix .careSystemFieldMapping and are stored in the careSystemFieldMappings folder.
Version
CareSystemFieldMapping components are available in API version 49.0 and later.
Special Access Rules
To use this metadata type, your Salesforce org must have the Health Cloud or Life Sciences Cloud license and the user must have the Health Cloud Foundation (for Health Cloud) or Health Cloud Starter (for Life Sciences Cloud) permission set.
Fields
Field Name | Field Type | Description |
---|---|---|
externalIdField | string | The ID of the field in the external system. |
isActive | boolean | Indicates whether this field mapping is active (true) or not (false). The default value is False. |
isProtected | boolean | An auto-generated value that doesn’t currently impact the behavior of the metadata type. |
masterLabel | string | Required. The name of the care system field mapping. |
role | SourceSystemFieldRole (enumeration of type string) | Required. The role the field represents. Valid values are:
|
sourceSystem | string | The system where the record originated. |
targetObject | string | The name of the Salesforce object to which the external system field is mapped. |
Declarative Metadata Sample Definition
The following is an example of a CareSystemFieldMapping component.
<?xml version="1.0" encoding="UTF-8"?>
<CareSystemFieldMapping xmlns="http://soap.sforce.com/2006/04/metadata">
<externalIdField>AccountNumber</externalIdField>
<isActive>true</isActive>
<isProtected>false</isProtected>
<masterLabel>Map1</masterLabel>
<role>Patient</role>
<sourceSystem>Epic</sourceSystem>
<targetObject>Account</targetObject>
</CareSystemFieldMapping>
The following is an example package.xml that references the previous definition.
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>patient</members>
<name>CareSystemFieldMapping</name>
</types>
<version>49.0</version>
</Package>