ISLetter.LinkedResults

Description

This function returns the results linked to each letter of the selected patient.

Syntax

object.LinkedResults()

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

Return Value

ISCDOTransactions

Returns IDs of the linked results for each letter of the selected patient.

Example

Display IDs of the linked results for each letter of the selected patient.

sub main
  Dim aPatient
  Dim aLetters
  Dim aMessage
  
  Set aPatient = Profile.SelectPatient
  set aLetters = aPatient.GetLetters (1) ' slcfWordRTF

  aMessage = "INITIAL STATE:" & GetLinkedResultsInfo(aLetters)

  Profile.MsgBox(aMessage)
end sub

function GetLinkedResultsInfo(aLetters)
  Dim aLetter
  Dim aResults
  Dim aResult
  Dim aInfo
  
  for each aLetter in aLetters
    aInfo = aInfo & vbNewLine & "Letter ID: " & aLetter.ID
    set aResults = aLetter.LinkedResults
    if aResults.Count > 0 then aInfo = aInfo & vbNewLine & "  Results IDs: "   
    for each aResult in aResults
      aInfo = aInfo & aResult.Id & ", "
    next
  next
  GetLinkedResultsInfo = aInfo
end function 
Note:

In Profile Client v8 on User Interface Linked Results can be found in Clinical > Medical Record > Documents > Open saved document > Attachments > ticked items in Pathology/Radiology nodes or in Organisation > Work Centre > Communication > Letters > Open saved document > Attachments > ticked items in Pathology/Radiology nodes.

Version information

Added in v8.4.59