This function returns True if the selected intervention template has actions with the specified service code.
object.isActionExists(Code)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISCareVisit interface |
|
Code |
In, Required | string |
The code of the action |
bool
Display isActionExists for the intervention template.
Dim aCarePlan
Dim aMessage
Dim aVisits
Dim aVisit
Dim aActionExists
Set aCarePlan = Profile.LoadCarePlanByCode ("FLU")
set aVisits = aCarePlan.Visits
if aVisits.Count = 0 then
Profile.MsgBox("There are no care visits!")
exit sub
end if
for i = 0 to aVisits.Count - 1
set aVisit = aVisits.Item(i)
aMessage = aMessage & vbNewLine & "Intervention: " & aVisit.Description
aActionExists = aVisit.isActionExists ("120")
aMessage = aMessage & vbNewLine & "Action exists: " & aActionExists
next 'i
Profile.MsgBox (aMessage)
In Profile Client v8 on User Interface is Action Exists cannot be found.