---
schema_version: "1"
id: 844b10f63303d6880f19cef17d6a6ea20707cdec06bb31b7d7ecd40a1d25e032
title: Timing
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/health_cloud_object_reference/map_fhir_timing.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/map_fhir_timing.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 429c91d32e3cfc5e6a93ed589f4e3cfb9028647425fa711a3141696158808c9f
description: The Timing FHIR resource maps to the ActivityTiming​ object in Salesforce.
---
# Timing

The Timing FHIR resource maps to the ActivityTiming​ object in Salesforce.

## FHIR V4.0 - Clinical Data Model Mapping

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

Table 1. Timing - Salesforce
| Timing Resource | Salesforce Field | Type | Salesforce Cardinality | Notes |
| --- | --- | --- | --- | --- |
| event | Event.​Activity​Date | Object | 0.M | timing.event is stored in Event.​Activity​Date. This event record then references the ActivityTiming record using its WhatId field. |
| repeat​.bounds​.bounds​Duration | Activity​Timing​.Period​Length | Int | 0.1 | Because Salesforce doesn’t support a native duration data type, repeat​.bounds​.bounds​Duration is flattened to a set of length and unit fields. |
| repeat​.bounds​.bounds​Duration | Activity​Timing​.Period​Length​UnitId | Lookup: UnitOf​Measure | 0.1 | Because Salesforce doesn’t support a native duration data type, repeat​.bounds​.bounds​Duration is flattened to a set of length and unit fields. |
| repeat​.bounds​.bounds​Range | Activity​Timing​.Period​Length​Lower​Limit | Double | 0.1 | Because Salesforce doesn’t support a native duration data type, repeat​.bounds​.bounds​Range is flattened to a set of lower limit, upper limit, and unit fields. |
| repeat​.bounds​.bounds​Range | Activity​Timing​.Period​Length​Upper​Limit | Double | 0.1 | Because Salesforce doesn’t support a native duration data type, repeat​.bounds​.bounds​Range is flattened to a set of lower limit, upper limit, and unit fields. |
| repeat​.bounds​.bounds​Range | Activity​Timing​.Period​Length​UnitId | Lookup: UnitOf​Measure | 0.1 | Because Salesforce doesn’t support a native duration data type, repeat​.bounds​.bounds​Range is flattened to a set of lower limit, upper limit, and unit fields. |
| repeat​.bounds​.bounds​Period | Activity​Timing​.Period​Start​Date​Time | DateTime | 0.1 | Because Salesforce doesn’t support a native period data type, repeat​.bounds​.bounds​Period is flattened to a set of start and end date fields. |
| repeat​.bounds​.bounds​Period | Activity​Timing​.Period​End​Date​Time | DateTime | 0.1 | Because Salesforce doesn’t support a native period data type, repeat​.bounds​.bounds​Period is flattened to a set of start and end date fields. |
| repeat​.count | Activity​Timing​.Count​In​Period | Int | 0.1 | N/A |
| repeat​.count​Max | Activity​Timing​.Max​Count​In​Period | Int | 0.1 | N/A |
| repeat​.duration | Activity​Timing​.Activity​Duration | Double | 0.1 | N/A |
| repeat​.duration​Max | Activity​Timing​.Max​Activity​Duration | Double | 0.1 | N/A |
| repeat​.duration​Unit | Activity​Timing​.Activity​Duration​UnitId | Lookup: UnitOf​Measure | 0.1 | N/A |
| repeat​.frequency | Activity​Timing​.Activity​Count​Per​Repetition | Double | 0.1 | N/A |
| repeat​.frequency​Max | Activity​Timing​.Max​Activity​Count​Per​Repetition | Int | 0.1 | N/A |
| repeat​.period | Activity​Timing​.Repetition​Cycle​Length | Double | 0.1 | N/A |
| repeat​.period​Max | Activity​Timing​.Max​Repetition​Cycle​Length | Double | 0.1 | N/A |
| repeat​.period​Unit | Activity​Timing​.Repetition​Cycle​​UnitId | Lookup: UnitOf​Measure | 0.1 | N/A |
| repeat​.dayOf​Week | Activity​Timing​.Weekly​Activity​​TimeId | Lookup: Operating​Hours | 0.M | While FHIR defines repeat​.dayOf​Week as a code value, the Salesforce implementation uses a reference to OperatingHours. A record in OperatingHours can have multiple values for days in a week and time. |
| repeat​.timeOf​Day | Activity​Timing​.Weekly​Activity​​TimeId | Lookup: Operating​Hours | 0.M | N/A |
| repeat​.when | Activity​Timing​.​Activity​​Time | Picklist | 0.1 | While FHIR defines repeat​.when as a zero-to-many code, the Salesforce implementation is a zero-to-one picklist. |
| repeat​.offset | Activity​Timing​.​Activity​​Time​Offset | Int | 0.1 | N/A |
| code | Activity​Timing​.Timing​CodeId | Lookup: CodeSet​Bundle | 0.1 |  |