ISPatientRule.RuleFinishDate

Description

The finish date of the patient rule.

Syntax

object.RuleFinishDate

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

Return Value

DateTime

Example

Display the patient rules loaded by the specified patient ID, some information about them, including their finish dates.

Dim aPatient
Dim aPatientId
Dim aRules
Dim aRule
Dim aMessage

Set aPatient = Profile.SelectPatient 
aPatientId = aPatient.Id
set aRules = Profile.LoadPatientRules(aPatientId)

aMessage = "Rules Count = " & aRules.Count & vbNewLine
for each aRule in aRules
  aMessage = aMessage & vbNewLine &_
    "Description: " & aRule.Description & vbNewLine &_
    "Start Time: "  & aRule.StartTime & vbNewLine &_ 
    "Start Date: " & aRule.RuleStartDate & vbNewLine &_
    "Finish Time: " & aRule.FinishTime & vbNewLine &_
    "Finish Date: " & aRule.RuleFinishDate & vbNewLine &_
    "Period: " & aRule.RulePeriod & vbNewLine &_ 
    "Reason: " & aRule.Reason & vbNewLine 
next  
 
Profile.MsgBox(aMessage)         
Note:

In Profile Client v8 on User Interface Finish Date can be found in Patient > Alter Patient > Bookings > Patient Rules > Change Patient Rule > To.

Version information

Added in v8.1.0