This function returns the prescriptions loaded on the basis of the selected filter.
object.LoadPrescriptions(aFilter)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProfile interface |
|
aFilter |
In, Required | The object that defines conditions for filtering
|
Display the number of the prescriptions loaded on the basis of the selected filter and their dates.
Dim aPatient
Dim aFilter
Dim aPrescriptions
Dim aPrescription
Dim aMessage
Dim i
Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreatePrescriptionFilter
aFilter.Patient = aPatient
set aPrescriptions = Profile.LoadPrescriptions(aFilter)
aMessage = "Prescriptions Count = " & aPrescriptions.Count
for i = 0 to aPrescriptions.Count - 1
set aPrescription = aPrescriptions.Item(i)
aMessage = aMessage & vbNewLine & aPrescription.RxName & ", start date: " &_
aPrescription.StartDate
next
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Prescriptions can be found in
.