---
schema_version: "1"
id: 488be7ef0556659bf937954fe554a529eeaf6abe1965aeb6c539c9196abcf2c4
title: Coding
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/health_cloud_object_reference/map_fhir_Coding.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/map_fhir_Coding.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2b4156d04c7d7b75f716c8efb5ed69588674d1721eece23a565bf51c0d3efb88
description: The Coding FHIR resource maps to the CodeSet object in Salesforce.
---
# Coding

The Coding FHIR resource maps to the CodeSet object in Salesforce.

## FHIR V4.0 - Clinical Data Model Mapping

Here’s how the fields defined by FHIR for [Coding](https://www.hl7.org/fhir/datatypes.html#Coding) map to the fields in Salesforce.

Table 1. Coding - Salesforce
| Coding Resource | Salesforce Field | Type | Salesforce Cardinality | Notes |
| --- | --- | --- | --- | --- |
| system | CodeSet​.Source​System | String | 0.1 | FHIR defines coding​.system as a URI. However, the Salesforce implementation of CodeSet​.Source​System is a string because Salesforce doesn’t support the URI data type. |
| version | CodeSet​.System​Version | String | 0.1 | N/A |
| code | CodeSet​.Code | String | 0.1 | FHIR defines coding​.code as a code data type. However, the Salesforce implementation of CodeSet​.Code is a string because Salesforce doesn’t support the Code data type. |
| display | CodeSet​.Name | String | 0.1 | N/A |
| user​Selected | CodeSet​.IsPrimary | Boolean | 0.1 | N/A |

#### See Also

- [CodeSet](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/hc_r4_api_objects_CodeSet.htm "Represents various industry defined codes in the context of their systems and versions of those systems. These codes are used in all sorts of digital records. This object is available in API version 50.0 and later.")