ISProfile.CreateProblemDiagnosisFilter

Description

This function creates the filter for loading problem diagnoses.

Syntax

object.CreateProblemDiagnosisFilter()

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

Return Value

ISProblemDiagnosisFilter

Returns the filter for loading problem diagnoses.

Example

Display the number of the problem diagnoses loaded on the basis of the selected filter and the Dx codes.

Dim aPatient  
Dim aFilter
Dim aProblemDiagnoses
Dim aProblemDiagnosis
Dim aMessage

Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreateProblemDiagnosisFilter
aFilter.PatientId = aPatient.Id
set aProblemDiagnoses = Profile.LoadDiagnoses(aFilter)

aMessage = "Problem Diagnoses Count = " & aProblemDiagnoses.Count
for i = 0 to aProblemDiagnoses.Count - 1
  set aProblemDiagnosis = aProblemDiagnoses.Item(i)
  aMessage = aMessage & vbNewLine & "The Dx code is " & aProblemDiagnosis.DxCode
next      

Profile.MsgBox(aMessage) 
Note:

In Profile Client v8 on User Interface Problem Diagnoses can be found in Clinical > Medical Record > Problems.

Version information

Added in v7.8.0