ISApproval.Diagnosis2

Description

The second diagnosis associated with the service.

Syntax

object.Diagnosis2

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

Return Value

ISDisease

Example

Display the number of the approvals loaded on the basis of the selected filter, the dates they were added, the full names of the patients the approvals were created for, the diagnoses associated with the service and their codes.

Dim aPatient
Dim aFilter
Dim aApproval
Dim aApprovals
Dim aMessage
Dim i

Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreateApprovalsFilter
aFilter.Patient = aPatient
set aApprovals = Profile.LoadApprovals(aFilter)

aMessage = "Approvals Count = " & aApprovals.Count & vbNewLine
for i = 0 to aApprovals.Count - 1
  set aApproval = aApprovals.Item(i)
  aMessage = aMessage & vbNewLine & "The approval for the patient " &_
    Profile.LoadPatient(aApproval.PatientId).SurnameFirstName &_
    "was added on " & aApproval.DateTimeAdded 
  if not aApproval.Diagnosis2 is nothing then
    aMessage = aMessage & vbNewLine & "    -Disease: " &_
      aApproval.Diagnosis2.Description & " (" & aApproval.Diagnosis2.Code &_ 
      ")" & vbNewLine
  end if       
next         

Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface Diagnosis 2 can be found in Patient > Alter Patient > Approvals > Approval Edit > Diagnosis 2 or in Financial > Approvals > Approvals > Approval Edit > Diagnosis 2.

Version information

Added in v7.10.50