ISProfile.LoadMovements

Description

This function returns all movements of the patient between different places of service and locations.

Syntax

object.LoadMovements(aFilter)

Part Attribute Type Description
object Required
The object always implements the ISProfile interface
aFilter In, Required
The object that defines conditions for filtering

Return Value

ISMovements

Returns all movements of the patient between different places of service and locations.

Example

Display the number of the movements, their dates and IDs.

Dim aPatient
Dim aFilter
Dim aMovements
Dim aMovement
Dim aMessage

Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreateMovementFilter
aFilter.PatientId = aPatient.Id
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 & "The date of the movement with ID = " &_ 
  aMovement.ID & " is " & aMovement.Date 
next      

Profile.MsgBox(aMessage)   
Note:

In Profile Client v8 on User Interface Movements can be found in Clinical > Medical Record > Movements or in Patient > Cases > Administrative > Movements.

Version information

Added in v7.10.80