ISPatient.ExternalDr7

Description

This property is deprecated and maintained for compatibility only. This is the seventh external provider for the patient.

Syntax

object.ExternalDr7

Part Attribute Type Description
object Required
The object always implements the ISPatient interface
Restriction: This property is readonly.

Return Value

ISExternalProvider

Example

Display the full name of the patient's seventh external provider, if any. When using the second example a list of all providers, associated with the patient, is displayed.

1)
Dim aPatient  
Dim aExternalDr7

Set aPatient = Profile.SelectPatient

if aPatient.ExternalDr7 is nothing then
  Profile.MsgBox ("There is no External Provider 7 for this patient!")
else
  aExternalDr7 = aPatient.ExternalDr7.FullName
  Profile.MsgBox (aExternalDr7)
end if 

2)
Dim aRoleDescription 
Dim aProviderFullName
Dim aPatient
Dim aCareTeam
Dim aMessage

Set aPatient = Profile.SelectPatient

set aCareTeamFilter = Profile.CreateCareTeamFilter
aCareTeamFilter.Patient = aPatient.ID
set aCareTeams = Profile.LoadCareTeams(aCareTeamFilter)
for i = 0 to aCareTeams.Count - 1
  set aCareTeam = aCareTeams.Item(i)
  aRoleDescription = Profile.LoadShortCode(aCareTeam.RoleID).Description
  aProviderFullName = Profile.LoadProviderById(aCareTeam.PersonID).FullName
  aMessage = aMessage & vbNewLine
  aMessage = aMessage & "'" & aRoleDescription & "' is  " & aProviderFullName
next

Profile.MsgBox (aMessage)      
Note:

In Profile Client v8 on User Interface External Dr. 7 can be found in Patient > Alter Patient > Care Team or in Clinical > Medical Record > Care Team.

Version information

Added in v7.8.0