ISProfile.CreateLegalStatusChangeFilter

Description

This function creates the filter for loading the information about the changes of the legal statuses.

Syntax

object.CreateLegalStatusChangeFilter()

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

Return Value

ISLegalStatusChangeFilter

Returns the filter for loading the information about the changes of the legal statuses.

Example

Display the number of the legal status changes and some information about them.

Dim aFilter
Dim aLegalStatusChanges, aLegalStatusChange
Dim aMessage
Dim i 
Dim aEvent

set aFilter = Profile.CreateLegalStatusChangeFilter
aFilter.FromDate = #09/09/2015#
set aLegalStatusChanges = Profile.LoadLegalStatusChanges(aFilter)

aMessage = "Legal Status Change Count = " & aLegalStatusChanges.Count
for i = 0 to aLegalStatusChanges.Count - 1
  set aLegalStatusChange = aLegalStatusChanges.Item(i)
  set aEvent = Profile.LoadMentalHealthEvent(aLegalStatusChange.EventID)
  aMessage = aMessage & vbNewLine & (i + 1) & ") " &_
    "Created Date/Time: " & aLegalStatusChange.CreatedDT & vbNewLine &_
    "Event: " & aEvent.Name & vbNewLine &_
    "ID: " & aLegalStatusChange.ID & vbNewLine &_
    "Modified Date/Time: " & aLegalStatusChange.ModifiedDT & vbNewLine 
next      

Profile.MsgBox(aMessage)
Note:

In Profile Client v8 on User Interface Legal Status can be found in Case Clinical > Clinical Front Page > Legal Status.

Version information

Added in v7.8.0