This property is deprecated and maintained for compatibility only. This is the patient's second external provider code.
object.ExternalDr2Code
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISPatient interface |
string
Display the code of the patient's second external provider, if any. When using the second example a list of all providers, associated with the patient, is displayed.
1)
Dim aPatient
Dim aExternalDr2Code
Set aPatient = Profile.SelectPatient
if aPatient.ExternalDr2 is nothing then
Profile.MsgBox ("There is no External Provider 2 for this patient!")
else
aExternalDr2Code = aPatient.ExternalDr2Code
Profile.MsgBox (aExternalDr2Code)
end if
2)
Dim aRoleDescription
Dim aProviderFullName
Dim aProviderCode
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
aProviderCode = Profile.LoadProviderById(aCareTeam.PersonID).Code
aMessage = aMessage & vbNewLine
aMessage = aMessage & "'" & aRoleDescription & "' is " & aProviderFullName
aMessage = aMessage & " (" & aProviderCode & ") "
next
Profile.MsgBox (aMessage)
In Profile Client v8 on User Interface External Dr. 2 can be found in
or in .