ISPatientRecallVisit.MasterID

Description

ID of the most recent version of the patient's intervention.

Syntax

object.MasterID

Part Attribute Type Description
object Required
The object always implements the ISPatientRecallVisit interface
Restriction: This property is readonly.

Return Value

int

Example

Display ID of the most recent version of the patient's intervention.

sub main()
   Dim aPatient, aRecallVisits, aMessage
     
   set aPatient = Profile.SelectPatient
   set aRecallPlans = aPatient.RecallPlans
   
  aMessage = 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 & " ID if the most recent version " &_ 
      "of the patient's intervention '" & aVisit.Description & "'  =  " &_
        aVisit.MasterID 
     next
  next   
  GetPlanCollectionInfo = info
end function  
Note:

In Profile Client v8 on User Interface Master ID cannot be found.

Version information

Added in v7.8.0