ISLetterWorkParams.PatientId

Description

ID of the patient the letter is sent to.

Syntax

object.PatientId

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

Return Value

int

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"

aResult = Profile.GenerateAndPrintLetter(aParam)

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

In Profile Client v8 on User Interface Patient ID cannot be found.

Version information

Added in v7.8.0