ISPatientRecallVisit.ExtProvider

Description

The external provider for the patient's intervention.

Syntax

object.ExtProvider

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

Return Value

ISExternalProvider

Example

Display the full name of the external provider for the patient's intervention.

sub main()
   Dim aPatient, aRecallPlans, aMessage
     
   set aPatient = Profile.SelectPatient
   set aRecallPlans = aPatient.RecallPlans
   
   for each aPlan in aRecallPlans
     aMessage = aMessage & GetVisitCollectionInfo(aPlan.Visits)
   next

  Profile.MsgBox(aMessage)
end sub

function GetVisitCollectionInfo(aVisits)
 
  for each aVisit in aVisits
    set aExtProvider = aVisit.ExtProvider
    if aExtProvider  is nothing then
    info = info & vbNewLine & " For the intervention '" & aVisit.Description &_
      "' - There is no external provider!"
      else
    info = info & vbNewLine & "The external provider for the intervention '" &_
    aVisit.Description & "' is " & aExtProvider.FullName
      end if         
  next
  GetVisitCollectionInfo = info &  vbNewLine
end function    
Note:

In Profile Client v8 on User Interface External Provider can be found in Clinical > Medical Record > Care Plans > Open active object(s) > Provider fields.

Version information

Added in v7.8.0