ISPatientProblemVers.LocationConcept

Description

The concept of the patient's problem location in the selected problem version.

Syntax

object.LocationConcept

Part Attribute Type Description
object Required
The object always implements the ISPatientProblemVers interface
Restriction: This property is readonly.

Return Value

ISConcept

Example

Display the codes, descriptions and location of the patient's problems in each version.

sub main
  Dim aPatient
  Dim aProblemList
  Dim aCategories, aCategory
  Dim aProblems, aProblem
  Dim aFilter
  Dim aProblemVersColl, aVersion
  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 & vbNewLine & "    " & GetProblemInfo(aProblem) 
      set aFilter = Profile.CreateVersionFilter
      aFilter.FromDate = #01/01/2019#
      aFilter.ToDate = #06/06/2019#
      set aProblemVersColl = aProblem.FindVersions(aFilter) 
      for each aVersion in aProblemVersColl
        aMessage = aMessage & vbNewLine & "      -" & GetProblemInfo(aVersion) 
      next ' aVersion                  
    next ' aProblem
  next ' aCategory 

  Profile.MsgBox(aMessage)
end sub

function GetProblemInfo(aProblem)
  Dim aInfo

  aInfo = "Code: " & aProblem.DxCode & "; Description: " & aProblem.DxDescription
  if aProblem.ProblemType <> 6  then  'ptPregnancy
    if not aProblem.LocationConcept is nothing then  
    aInfo = aInfo & " (Location = " & aProblem.LocationConcept.Name & ")"    
    end if
  end if
  GetProblemInfo = aInfo
end function  
Note: The Location field only appears for the patient's problems of 'Diagnosis' or 'Procedures' types.

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

Version information

Added in v7.8.0