ISProblemDiagnosisFilter.LocationID

Description

This filter property is used to load the diagnoses by ID of the problem location concept.

Syntax

object.LocationID

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

Return Value

int

Example

Display the number of the diagnoses loaded on the basis of the selected filter, their codes, descriptions and location.

Dim aPatient
Dim aLocationConcept
Dim aFilter
Dim aDiagnoses
Dim aDiagnosis
Dim aMessage

Set aPatient = Profile.SelectPatient
set aLocationConcept = Profile.Concept("IH", "z..2x") 'Coronal

if aLocationConcept is nothing then
  Profile.MsgBox ("No concept with the specified termset and concept codes")
  exit sub
end if    

set aFilter = Profile.CreateProblemDiagnosisFilter 
aFilter.PatientId = aPatient.ID
aFilter.LocationId = aLocationConcept.ID  
set aDiagnoses = Profile.LoadDiagnoses(aFilter)

aMessage = "Diagnoses Count = " & aDiagnoses.Count
for i = 0 to aDiagnoses.Count - 1
  set aDiagnosis = aDiagnoses.Item(i)
  aMessage = aMessage & vbNewLine & "Code: " & aDiagnosis.DxCode &_ 
    "; Description: " & aDiagnosis.DxDescription
  if not aDiagnosis.LocationConcept is nothing then 
    aMessage = aMessage & " (Location = " & aDiagnosis.LocationConcept.Name & ")" 
  end if    
next      

Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface Location ID cannot be found, but Location can be found in Clinical > Medical Record > Problems > Open Problem > General > Location, in Clinical > Clinical Details > Problems > Open Problem > General > Location or in Patient > Cases > Clinical > Problems > Open Problem > General > Location.

Version information

Added in v7.8.0