ISCareVisit.DateAgeWeek

Description

The due date of the intervention template that defaults to exactly the patient's age in weeks.

Syntax

object.DateAgeWeek

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

Return Value

int

Example

Display the patient's age in weeks.

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 patient's age in weeks " &_
    " is "  & aVisit.DateAgeWeek
  next

end if       
   
Profile.MsgBox (aMessage)  
Note:

In Profile Client v8 on User Interface Date Age Week can be found in Maintain > Care Plans > Open Plan > Interventions > Alter Intervention > Date.

Version information

Added in v7.8.0