ISPatientProblemVers.ServiceID

Description

ID of the service code assigned to the patient's problem of 'Procedures' type in the selected problem version.

Syntax

object.ServiceID

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

Return Value

int

Example

Display the codes, descriptions for the patient's problems of 'Procedures' type and IDs of the service codes assigned to them in each version.

sub main
  Dim aPatient
  Dim aProblemList
  Dim aCategory
  Dim aProblems, aProblem
  Dim aFilter
  Dim aProblemVersColl, aVersion
  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"
  end if
    for each aProblem in aProblems 
      aMessage = aMessage & "    " & GetProblemInfo(aProblem) & vbNewLine
      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 & "      -" & GetProblemInfo(aVersion) & vbNewLine 
      next ' aVersion                  
    next ' aProblem
  Profile.MsgBox(aMessage)
end sub

function GetProblemInfo(aProblem)
  Dim aInfo

  aInfo = "Code: " & aProblem.DxCode & "; Description: " & aProblem.DxDescription
  if aProblem.ProcedureType = 2 then  'spctService
    aInfo = aInfo & "; Service ID = " & aProblem.ServiceID 
  end if
  GetProblemInfo = aInfo
end function  
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 > History > Code, in Clinical > Clinical Details > Problems > Open Problem > History > Code or in Patient > Cases > Clinical > Problems > Open Problem > History > Code.

Version information

Added in v7.8.0