ISCareVisit.DateOffsetType

Description

The type of the offset date.

0 duNone
1 duDay
2 duWeek
5 duMonth
6 duYear

Syntax

object.DateOffsetType

Part Attribute Type Description
object Required
The object always implements the ISCareVisit interface

Return Value

int

Example

Display the type of the offset date.

Dim aCarePlan
Dim aMessage
Dim aVisits
Dim aVisit

Set aCarePlan = Profile.LoadCarePlanByCode ("FLU") 
set aVisits = aCarePlan.Visits

if aVisits.Count = 0 then
  aMessage = aMessage & vbNewLine & "There are no care visits!"
else
  
  for i = 0 to aVisits.Count - 1
    set aVisit = aVisits.Item(i)
    aMessage = aMessage & vbNewLine & "The type of the offset date " &_
    "for the intervention template '" & aVisit.Description &_
    "'" & " is "  & aVisit.DateOffsetType
  next

end if       
   
Profile.MsgBox (aMessage)   
Note:

In Profile Client v8 on User Interface Date Offset Type can be found in Maintain > Care Plans > Open Plan > Interventions > Alter Intervention > Date > Offset by fields.

Version information

Added in v7.8.0