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.

Timing ResourceSalesforce FieldTypeSalesforce CardinalityNotes
eventEvent.​Activity​DateObject0.Mtiming.event is stored in Event.​Activity​Date. This event record then references the ActivityTiming record using its WhatId field.
repeat​.bounds​.bounds​DurationActivity​Timing​.Period​LengthInt0.1Because 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​DurationActivity​Timing​.Period​Length​UnitIdLookup: UnitOf​Measure0.1Because 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​RangeActivity​Timing​.Period​Length​Lower​LimitDouble0.1Because 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​RangeActivity​Timing​.Period​Length​Upper​LimitDouble0.1Because 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​RangeActivity​Timing​.Period​Length​UnitIdLookup: UnitOf​Measure0.1Because 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​PeriodActivity​Timing​.Period​Start​Date​TimeDateTime0.1Because 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​PeriodActivity​Timing​.Period​End​Date​TimeDateTime0.1Because 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​.countActivity​Timing​.Count​In​PeriodInt0.1N/A
repeat​.count​MaxActivity​Timing​.Max​Count​In​PeriodInt0.1N/A
repeat​.durationActivity​Timing​.Activity​DurationDouble0.1N/A
repeat​.duration​MaxActivity​Timing​.Max​Activity​DurationDouble0.1N/A
repeat​.duration​UnitActivity​Timing​.Activity​Duration​UnitIdLookup: UnitOf​Measure0.1N/A
repeat​.frequencyActivity​Timing​.Activity​Count​Per​RepetitionDouble0.1N/A
repeat​.frequency​MaxActivity​Timing​.Max​Activity​Count​Per​RepetitionInt0.1N/A
repeat​.periodActivity​Timing​.Repetition​Cycle​LengthDouble0.1N/A
repeat​.period​MaxActivity​Timing​.Max​Repetition​Cycle​LengthDouble0.1N/A
repeat​.period​UnitActivity​Timing​.Repetition​Cycle​​UnitIdLookup: UnitOf​Measure0.1N/A
repeat​.dayOf​WeekActivity​Timing​.Weekly​Activity​​TimeIdLookup: Operating​Hours0.MWhile 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​DayActivity​Timing​.Weekly​Activity​​TimeIdLookup: Operating​Hours0.MN/A
repeat​.whenActivity​Timing​.​Activity​​TimePicklist0.1While FHIR defines repeat​.when as a zero-to-many code, the Salesforce implementation is a zero-to-one picklist.
repeat​.offsetActivity​Timing​.​Activity​​Time​OffsetInt0.1N/A
codeActivity​Timing​.Timing​CodeIdLookup: CodeSet​Bundle0.1