Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

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 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.
Activity​Timing​.Period​Length​UnitId Lookup: UnitOf​Measure 0.1
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.
Activity​Timing​.Period​Length​Upper​Limit Double 0.1
Activity​Timing​.Period​Length​UnitId Lookup: UnitOf​Measure 0.1
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.
Activity​Timing​.Period​End​Date​Time DateTime 0.1
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