ISProcedure.ServiceID

Description

ID of the service code linked to the surgical procedure.

Syntax

object.ServiceID

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

Return Value

int

Example

Display the number of the patient's surgical procedures within the collection, their descriptions, dates, start time and the codes and descriptions of the services, linked to them.

Dim aPatient  
Dim aProcedureList, aProcedure
Dim aService
Dim i
Dim aMessage

Set aPatient = Profile.SelectPatient 
set aProcedureList = aPatient.ProcedureList
aMessage = "Procedures Count = " & aProcedureList.Count & vbNewLine

for i = 0 to aProcedureList.Count - 1
  set aProcedure = aProcedureList.Item(i)
  aMessage = aMessage & vbNewLine & (i + 1) & ") " &_ 
    aProcedure.ProcedureExplanation & " (scheduled date and time: " &_ 
    aProcedure.StartTime & ")" & vbNewLine
  if aProcedure.ServiceID <> 0 then
    set aService = Profile.LoadServiceByID(aProcedure.ServiceID)  
    aMessage = aMessage & "      -Service Code: " &_ 
      aService.Code & "; Service Descrition: " & aService.Description & vbNewLine   
  end if     
next
    
Profile.MsgBox(aMessage) 
Note:

In Profile Client v8 on User Interface Service ID cannot be found, but the Service code linked to the procedure can be found in Special > Procedures > Edit Procedure > Procedure field.

Version information

Added in v7.8.0