ISPatientProblem.SourceRef

Description

ID used in the external software where the patient's problem was imported from.

Syntax

object.SourceRef

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

Return Value

string

Example

Display the codes, descriptions and source refs of the patient's problems in each category.

Dim aPatient
Dim aProblemList
Dim aCategories
Dim aCategory
Dim aProblems
Dim aProblem
Dim aMessage

Set aPatient = Profile.SelectPatient

set aProblemList = aPatient.ProblemList
set aCategories = aProblemList.Categories

for each aCategory in aCategories
  aMessage = aMessage & vbNewLine & "---------" & aCategory.Description &_ 
    "---------"  & vbNewLine & vbNewLine 
  set aProblems = aCategory.Problems
  for each aProblem in aProblems
    aMessage = aMessage & "    " & "Code: " & aProblem.DxCode &_ 
      "; Description: " & aProblem.DxDescription 
    if aProblem.ProblemType <> 6 then  'ptPregnancy  
      aProblem.SourceRef = "MySourceRef " & aProblem.ID 
      aProblem.Save
      aMessage = aMessage & " (Source Ref = " & aProblem.SourceRef & ")" & vbNewLine
    end if  
  next
next 

Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface Source Ref cannot be found.

Version information

Added in v7.8.0