ISPatientProblem.ExtProviderCode

Description

The code of the patient's external provider, the problem is assigned to.

Syntax

object.ExtProviderCode

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

Return Value

string

Example

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

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
    if aProblem.ExtProviderCode = "" then
      aMessage = aMessage & "    " &_ 
        "Code: " & aProblem.DxCode & "; Description: " & aProblem.DxDescription &_ 
        "; " & "the problem is not assigned to any external provider " & vbNewLine  
    else  
      aMessage = aMessage & "    " &_ 
        "Code: " & aProblem.DxCode & "; Description: " & aProblem.DxDescription &_ 
        "; " & "External Provider code = " & aProblem.ExtProviderCode & vbNewLine
    end if   
  next
next 

Profile.MsgBox(aMessage)  
Note:

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

Version information

Added in v7.8.0