ISPatientProblem.ProviderID

Description

ID of the patient's provider, the problem is assigned to.

Syntax

object.ProviderID

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

Return Value

int

Example

Display the codes, descriptions of the patient's problems in each category and the full names of the providers, these problems are assigned to.

Dim aPatient
Dim aProblemList
Dim aCategories, aCategory
Dim aProblems, 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.ProviderID = 0 then
      aMessage = aMessage &_ 
        "; the problem is not assigned to any provider " & vbNewLine  
    else  
      aMessage = aMessage &_ 
        "; the problem is assigned to " &_ 
        Profile.LoadProviderById(aProblem.ProviderID).FullName & vbNewLine
    end if   
  next
next 

Profile.MsgBox(aMessage)  
Note:

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

Version information

Added in v7.8.0