Newer Version Available
ActivityTiming
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()
Fields
| Field | Details |
|---|---|
| ActivityCountPerRepetition |
|
| ActivityDuration |
|
| ActivityDurationUnitId |
|
| ActivityTime |
|
| ActivityTimeOffset |
|
| CountInPeriod |
|
| LastReferencedDate |
|
| LastViewedDate |
|
| MaxActivityCountPerRepetition |
|
| MaxActivityDuration |
|
| MaxCountInPeriod |
|
| MaxRepetitionCycleLength |
|
| Name |
|
| OwnerId |
|
| PeriodEndDateTime |
|
| PeriodLength |
|
| PeriodLengthLowerLimit |
|
| PeriodLengthUnitId |
|
| PeriodLengthUpperLimit |
|
| PeriodStartDateTime |
|
| RepetitionCycleLength |
|
| RepetitionCycleUnitId |
|
| SourceSystem |
|
| SourceSystemIdentifier |
|
| SourceSystemModified |
|
| TimingCodeId |
|
| UsageType |
|
| WeeklyActivityTimeId |
|
Usage
ActivityTiming records are referenced from MedicationDosage records to specify the timing of their activities. Here’s an example of an activity’s timing information and how an ActivityTiming record would represent that information.
Scenario: Let’s say your doctor tells you that you have to run for 10 minutes every 2 days, 30 minutes after your meals. You need to run at least 5 times in the span of those 2 days. You have to do this for 3 to 4 weeks. You’re also told that you shouldn’t run for more than 15 minutes at a time, and that you shouldn’t do it more than 7 times in 3 days. So in those 3-4 weeks, you should run somewhere between 60-84 times.
Sample Record:
1Id: 1CDR00000000006OAA
2OwnerId: 005R0000000dNImIAM
3IsDeleted: false
4Name: AT-3147
5CreatedDate: 2021-04-15T10:48:14.000+0000
6CreatedById: 005R0000000dNImIAM
7LastModifiedDate: 2021-04-15T10:49:47.000+0000
8LastModifiedById: 005R0000000dNImIAM
9SystemModstamp: 2021-04-15T10:49:47.000+0000
10LastViewedDate: 2021-04-15T11:14:26.000+0000
11LastReferencedDate: 2021-04-15T11:14:26.000+0000
12TimingCodeId: null
13PeriodStartDateTime: null
14PeriodEndDateTime: null
15PeriodLength: null
16PeriodLengthLowerLimit: 3
17PeriodLengthUpperLimit: 4
18PeriodLengthUnitId: 0hER0000000001VMAQ
19CountInPeriod: 60
20MaxCountInPeriod: 84
21ActivityDuration: 10
22MaxActivityDuration: 15
23ActivityDurationUnitId: 0hER0000000001aMAA
24ActivityCountPerRepetition: 5
25MaxActivityCountPerRepetition: 7
26RepetitionCycleLength: 2
27MaxRepetitionCycleLength: 3
28RepetitionCycleUnitId: 0hER0000000001fMAA
29ActivityTime: AfterMeal
30ActivityTimeOffset: 30
31WeeklyActivityTimeId: 0OHR00000000HanOAE
32UsageType: MedicationDosage
33SourceSystem: WWHR
34SourceSystemIdentifier: 763851
35SourceSystemModified: 2021-04-05T23:00:00.000+0000Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.
- ActivityTimingFeed
- Feed tracking is available for the object.
- ActivityTimingHistory
- History is available for tracked fields of the object.
- ActivityTimingShare
- Sharing is available for the object.