ISPatientFilter.InvestigationsDateTo

Description

This filter is used to load the collection of patients till the specified date of the investigations with the specified order code.

Syntax

object.InvestigationsDateTo

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

Return Value

DateTime

Example

Display the number of the patients loaded on the basis of the selected filter, their full names and IDs.

Dim aIterator  
Dim aFilter  
Dim aCount
Dim aCanProcessItem
Dim aPatient
Dim aMessage

Set aIterator = Profile.CreatePatientIterator
set aFilter = Profile.CreatePatientFilter
aFilter.InterestObjects = 27
aFilter.WithInvestigations = "a333"  
aFilter.InvestigationsDateFrom = #01/01/2018#  
aFilter.InvestigationsDateTo = #01/01/2019#                  
aIterator.Open(aFilter)
aCount = aIterator.Count

aMessage = "Patients Count = " & aCount & vbNewLine & vbNewLine
 
aMessage = aMessage & "Selected Patients: " & vbNewLine
aIterator.Reset
aCanProcessItem = aIterator.Next

i = 1
do while aCanProcessItem 
  set aPatient = aIterator.Patient
  aMessage = aMessage & vbNewLine & i & ")  " &_
   aPatient.FirstName & " " & aPatient.LastName &_
   " ( " & aIterator.PatientId & " ) "
  i = i + 1
  aCanProcessItem = aIterator.Next
loop

Profile.MsgBox(aMessage)   
Note: This property works only with ISPatientFilter.InterestObjects.

In Profile Client v8 on User Interface Investigations can be found in Clinical > Medical Record > Past Orders, Order Code can be found in Maintain > Investigations > Reference List > Edit > Order Code.

Version information

Added in v8.1.0