This procedure updates the current care plan object as stored within Profile.
object.Save
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISPatientRecallPlan interface |
Create the care plan with the specified code and save it.
Dim aPatient
Dim aRecallPlan
Dim aPOSID
Dim aProviderID
Dim aCarePlan
Dim aMessage
Set aPatient = Profile.SelectPatient
aPOSID = aPatient.Get_PosId
aProviderID = aPatient.PracticeDr.ID
set aCarePlan = Profile.LoadCarePlanByCode("TWINTV")
set aRecallPlan = aPatient.AddRecallPlan(aCarePlan, aPOSID, aProviderID)
if aRecallPlan is nothing then
Profile.MsgBox("The plan with the specified code has been already created!")
exit sub
end if
aRecallPlan.Save
aMessage = aMessage & vbNewLine
aMessage = aMessage & "New Recall Plan was successfully added and saved!"
Profile.MsgBox(aMessage)