ISLetterWorkParams.Date

Description

The date of the letter.

Syntax

object.Date

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

Return Value

DateTime

Example

Print the letter for the selected patient and display the printing result.

Dim aPatient
Dim aParam
Dim aResult

Set aPatient = Profile.SelectPatient
set aParam = Profile.CreateLetterWorkParams
aParam.PatientId = aPatient.Id
aParam.Template = "All Categories\Template 1"
aParam.Date = DateAdd("yyyy", -5, Now)
  
aResult = Profile.GenerateAndPrintLetter(aParam)

Profile.MsgBox("Letter printing result: " & aResult)        
Note:

In Profile Client v8 on User Interface Date can be found in Clinical > Medical Record > Documents > Open saved document > Information and Recipients > Date field or in Organisation > Work Centre > Communication > Letters > Date.

Version information

Added in v7.8.0