ID of the patient's main practice provider in the selected patient version.
object.PracticeDrId
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISPatientVers interface |
int
Display ID of the patient's main practice provider in the selected patient version.
Dim aPatient
Dim aPatientVers
Dim aMessage
Set aPatient = Profile.SelectPatient
set aPatientVers = aPatient.VersionOnDate(#01/01/2019#)
if aPatientVers is nothing then
aMessage = "There are no patient versions for this date!"
else
if aPatientVers.PracticeDr is nothing then
aMessage = "On 01/01/2019 the patient had no main provider"
else
if aPatient.PracticeDr is nothing then
aMessage = "On 01/01/2019 the patient's main provider ID was " &_
aPatientVers.PracticeDrId & ", now the patient has no main provider "
else
aMessage = aMessage & vbNewLine &_
"On 01/01/2019 the patient's main provider ID was " &_
aPatientVers.PracticeDrId & ", now the patient's main provider ID is "_
& aPatient.PracticeDrId
end if
end if
end if
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Practice Dr.