This filter is used to load the collection of patients linked to the providers with the loaded IDs.
object.UsualProviderIds
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISPatientFilter interface |
Display the number of the patients loaded on the basis of the selected filter, their full names and IDs.
Dim aIterator
Dim aFilter
Dim aCount
Dim aCanProcessItem
Dim aPatient
Dim aIdColl
Dim aProv1
Dim aProv2
Dim aMessage
Set aIterator = Profile.CreatePatientIterator
set aFilter = Profile.CreatePatientFilter
set aIdColl = Profile.CreateIntCollection
set aProv1 = Profile.LoadProvider("MM")
set aProv2 = Profile.LoadProvider("TT")
aIdColl.Add(aProv1.Id)
aIdColl.Add(aProv2.Id)
aFilter.UsualProviderIds = aIdColl
aIterator.Open(aFilter)
aCount = aIterator.Count
aMessage = "Patients Count = " & aCount & vbNewLine & vbNewLine
aMessage = aMessage & "Selected Patients: " & vbNewLine
aIterator.Reset
aCanProcessItem = aIterator.Next
i = 1
do while aCanProcessItem
set aPatient = aIterator.Patient
aMessage = aMessage & vbNewLine & i & ") " &_
aPatient.FirstName & " " & aPatient.LastName &_
" ( " & aIterator.PatientId & " ) "
i = i + 1
aCanProcessItem = aIterator.Next
loop
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Usual Provider can be found in
.