This function returns the list of the provider's recent patients before and after adding a new one.
object.AddRecentPatient
aPatientID
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProvider interface |
|
aPatientID |
In, Required | int |
ID of the patient |
Display the list of the provider's recent patients before and after adding a new one.
sub main()
set aPatient = Profile.SelectPatient
set aProvider = Profile.LoadProvider("PROV")
aMessage = "BEFORE:" & GetProviderRecentPatients(aProvider)
aProvider.AddRecentPatient(aPatient.Id)
aProvider.Save
aMessage = aMessage & vbNewLine & vbNewLine &_
"AFTER:" & GetProviderRecentPatients(aProvider)
Profile.MsgBox (aMessage)
end sub
function GetProviderRecentPatients(aProvider)
aMessage = ""
set aPatients = aProvider.GetRecentPatients
for i = 0 to aPatients.Count - 1
set aPatient = aPatients.Item(i)
aMessage = aMessage & vbNewLine & (i + 1) & ") " &_
aPatient.FirstName & " " & aPatient.LastName
next
GetProviderRecentPatients = aMessage
end function
In Profile Client v8 on User Interface Recent Patients can be found in
.