ISPatientRecallVisit.CloseInterventionSeries

Description

This function closes the series of patient's interventions within the care plan.

Syntax

object.CloseInterventionSeries

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

Example

Close the series of patient's interventions within the care plan.

sub main()
   Dim aPatient, aRecallVisits, aMessage
     
   set aPatient = Profile.SelectPatient
   set aRecallPlans = aPatient.RecallPlans
   
  aMessage = "PLANS AND INTERVENTION SERIES BEFORE CLOSURE:" &_
   GetPlanCollectionInfo(aRecallPlans)

  for each aPlan in aRecallPlans
    set aVisits = aPlan.Visits  
    for each aVisit in aVisits
      aVisit.CloseInterventionSeries
    next  
  next    
  
  aMessage = aMessage & vbNewLine & "PLANS AND INTERVENTION SERIES AFTER CLOSURE:" &_ 
    GetPlanCollectionInfo(aRecallPlans)  

  Profile.MsgBox(aMessage)
end sub


function GetPlanCollectionInfo(aRecallPlans)
  info = ""
  for each aPlan in aRecallPlans
    info = info & vbNewLine & aPlan.Description
    set aVisits = aPlan.Visits  
      
    if aVisits.Count = 0 then
      info = info & vbNewLine & "The plan has no interventions!"
    end if  
    for each aVisit in aVisits    
      info = info & vbNewLine & "  - " & aVisit.Description & "    -    " &_
        aVisit.StatusAsString 
     next
  next   
  GetPlanCollectionInfo = info
end function
Note:

In Profile Client v8 on User Interface Intervention Series can be found and closed in Clinical > Medical Record > Care Plans > Open active object(s) > Close Series button.

Version information

Added in v7.8.0