ISLetter.CaseID

Description

ID of the case the letter is linked to.

Syntax

object.CaseID

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

Return Value

int

Example

Display some information about the letter, including ID of the case the letter is linked to.

Dim aPatient
Dim aLetters, aLetter
Dim i
Dim aCase
Dim aMessage

Set aPatient = Profile.SelectPatient
set aLetters = aPatient.GetLetters (1) ' slcfWordRTF

aMessage =_
  "The number of the letters of the selected format is " & aLetters.Count

for i = 0 to aLetters.Count - 1
  set aLetter = aLetters.Item(i)
  aMessage = aMessage & vbNewLine &_
    "Letter Date: " & aLetter.Date & vbNewLine &_
    "Letter Subject: " & aLetter.Subject2 & vbNewLine &_
    "Case ID: " & aLetter.CaseID & vbNewLine
    
  if aLetter.CaseID > 0 then
    set aCase = Profile.OpenCase(aLetter.CaseID)
    aMessage = aMessage & "Case Title: " & aCase.CaseTitle & vbNewLine
  end if
next    
Profile.MsgBox (aMessage) 
Note:

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

Version information

Added in v7.8.0