ID of the most recent version of the patient's intervention.
object.MasterID
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISPatientRecallVisit interface |
int
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
In Profile Client v8 on User Interface Master ID cannot be found.