ISMovementsFilter.DateTo

Description

This filter property is used to load the collection of movements till the specified date.

Syntax

object.DateTo

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

Return Value

DateTime

Example

Display the number of the movements loaded on the basis of the selected filter and some information about them.

Dim aPatient
Dim aFilter
Dim aMovements
Dim aMovement
Dim aMessage
Dim i

Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreateMovementFilter
aFilter.PatientId = aPatient.Id
aFilter.DateTo = #11/22/2018#
set aMovements = Profile.LoadMovements(aFilter)

aMessage = "Movements Count = " & aMovements.Count
for i = 0 to aMovements.Count - 1
  set aMovement = aMovements.Item(i)
  aMessage = aMessage & vbNewLine & "-----------------------------" & vbNewLine &_
    "Description: " & aMovement.Description & vbNewLine &_
    "Date: " & aMovement.Date & vbNewLine &_
    "ID: " & aMovement.ID & vbNewLine &_
    "Length Of Stay: " & aMovement.LengthOfStay & vbNewLine &_
    "Movement Type: " & aMovement.MovType & vbNewLine &_
    "Physical Location From: " & aMovement.PhysicalLocationFrom & vbNewLine &_ 
    "Physical Location To: " & aMovement.PhysicalLocationTo & vbNewLine &_
    "Responsible Unit: " & aMovement.ResponsibleUnit 
next      

Profile.MsgBox(aMessage) 
Note:

In Profile Client v8 on User Interface Date To cannot be found, but date can be found in Clinical > Medical Record > Movements > Date or in Patient > Cases > Administrative > Movements > Date.

Version information

Added in v7.10.80