ISPatientProblem.ServiceID

Description

ID of the service code linked to the patient's problem of 'Procedures' type.

Syntax

object.ServiceID

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

Return Value

int

Example

Display the codes, descriptions for the patient's problems of 'Procedures' type and the codes and descriptions of the services, linked to them.

Dim aPatient
Dim aProblemList
Dim aCategory
Dim aProblems, aProblem
Dim aMessage

Set aPatient = Profile.SelectPatient

set aProblemList = aPatient.ProblemList
set aCategory = aProblemList.Categories.Item(2) 'Procedures  
aMessage = aMessage & vbNewLine &_ 
  "---------" & aCategory.Description & "---------"  & vbNewLine  
set aProblems = aCategory.Problems
if aProblems.Count = 0 then 
  aMessage = aMessage & "No procedures"
else
  for each aProblem in aProblems
    if aProblem.ServiceID <> 0 then  
      aMessage = aMessage & vbNewLine & "    Code: " &_ 
        aProblem.DxCode & "; Service Descrition: " &_ 
        Profile.LoadServiceByID(aProblem.ServiceID).Description 
    else
      aMessage = aMessage & vbNewLine & "    " &_ 
        "Code: " & aProblem.DxCode & "; Description: " & aProblem.DxDescription  
    end if 
  next 
end if
Profile.MsgBox(aMessage)  
Note: This property is only used for the patient's problems of 'Procedures' type.

In Profile Client v8 on User Interface Service ID cannot be found, but if the default type of the procedure code is Service, this service code can be found in Clinical > Medical Record > Problems > Open Problem > General > Code field, in Clinical > Clinical Details > Problems > Open Problem > General > Code field or in Patient > Cases > Clinical > Problems > Open Problem > General > Code field.

Version information

Added in v7.8.0