ISPatientProblemLoadParams.SourceRefLoadKind

Description

This parameter property is used to determine search mode for loading patient problems by Source Ref.

Syntax

object.SourceRefLoadKind

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

Return Value

TSStringFieldLoadKind

Example

Display the number of the patient problems loaded on the basis of the selected parameter, their codes, descriptions and source refs.

Dim aPatient
Dim aNewProblem
Dim aParams
Dim aProblems, aProblem
Dim aMessage

Set aPatient = Profile.SelectPatient
set aNewProblem = aPatient.AddProblem(1) 'ptDiagnosis
aNewProblem.DxCode = "LETH"
aNewProblem.Save
aNewProblem.SourceRef = "MySourceRef " & aNewProblem.ID
aNewProblem.Save

Set aParams = Profile.MakePatientProblemLoadParams 
aParams.SourceRef = aNewProblem.SourceRef
aParams.SourceRefLoadKind = 4 'sflkContains
set aProblems = Profile.LoadPatientProblems(aParams)

aMessage = "Problems Count = " & aProblems.Count
for i = 0 to aProblems.Count - 1
  set aProblem = aProblems.Item(i)
  aMessage = aMessage & vbNewLine & (i + 1) & ") " & "Code: " & aProblem.DxCode &_
    " (Description: " & aProblem.DxDescription & "); Source Ref = " & aProblem.SourceRef 
next      

Profile.MsgBox(aMessage)  
Note: If no other problem types are specified, only problems of 'Diagnosis' type will be loaded on the basis of the selected parameter.

Version information

Added in v7.8.0