This function adds an action to the patient's intervention by its service code.
object.AddAction(pCode)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISPatientRecallVisit interface |
|
pCode |
In, Required | string |
The code of the action |
Add the action to the patient's intervention by its service code.
Dim aPatient
Dim aRecallVisits
Dim aVisits
Dim aVisit
Dim aNewAction
Dim aActions
Dim aAction
Dim aMessage
set aPatient = Profile.SelectPatient
set aRecallVisits = aPatient.RecallVisits
set aVisits = aRecallVisits.Due
for each aVisit in aVisits
set aNewAction = aVisit.AddAction("122")
aNewAction.Description = aNewAction.Description & " (Test Only)"
next
for each aVisit in aVisits
aMessage = aMessage & "Intervention: " & aVisit.Description & vbNewLine
set aActions = aVisit.Actions
for i = 0 to aActions.Count - 1
set aAction = aActions.Item(i)
aMessage = aMessage & " Action: " & aAction.Description & vbNewLine
next
next
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Actions can be found and added in
.