ISPrescriptionFilter.Provider

Description

This filter property is used to load the prescriptions that were created by the selected provider.

Syntax

object.Provider

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

Return Value

ISProvider

Example

Display some information about each of the prescriptions loaded on the basis of the selected filter, including the providers who created them.

Dim aProvider 
Dim aFilter
Dim aPrescriptions, aPrescription
Dim i
Dim aMessage

Set aProvider = Profile.LoadProvider("MM")

if aProvider.ID = 0 then
  Profile.MsgBox("There is no provider with the specified code")
  exit sub
end if   

set aFilter = Profile.CreatePrescriptionFilter
aFilter.Provider = aProvider
set aPrescriptions = Profile.LoadPrescriptions(aFilter)

aMessage = "The number of the prescriptions from " & aProvider.FullName &_ 
  " = " & aPrescriptions.Count & vbNewLine
for i = 0 to aPrescriptions.Count - 1
  set aPrescription = aPrescriptions.Item(i)
  aMessage = aMessage & vbNewLine & (i + 1) & ") " & aPrescription.RxName &_ 
    " (start date: " & aPrescription.StartDate & ")"
next      

Profile.MsgBox(aMessage)   
Note:

In Profile Client v8 on User Interface Provider can be found in Clinical > Medical Record > Prescriptions > Details > Author.

Version information

Added in v7.8.0