ISApprovalForm.Diagnosis1

Description

The first diagnosis associated with the service.

Syntax

object.Diagnosis1

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

Return Value

ISDisease

Example

Display some information about the opened approval form, including the first diagnosis associated with the service and its code.

Dim aPatientId 
Dim aForm
Dim aFormInfo
Dim aMessage

aPatientId = Profile.SelectPatient.Id

set aForm = Profile.GetApprovalForm(0, aPatientId)

if aForm is nothing then
  Profile.MsgBox("Approval Form is not opened")
  exit sub 
end if 

aFormInfo = "AgencyCode: " & aForm.AgencyCode & vbNewLine &_
  "Description: " & aForm.Description & vbNewLine &_
  "Date: " & aForm.Date & vbNewLine &_
  "Comment: " & aForm.Comment & vbNewLine &_
  "SideCode: " & aForm.SideCode & vbNewLine &_
  "Reference: "  & aForm.Reference & vbNewLine
  
if not aForm.Diagnosis1 is nothing then
  aMessage = aMessage & vbNewLine & "Disease: " &_
    aForm.Diagnosis1.Description & " (" & aForm.Diagnosis1.Code &_ 
    ")" & vbNewLine
end if     
  
Profile.MsgBox(aFormInfo & aMessage)       
Note:

In Profile Client v8 on User Interface Diagnosis 1 can be found in Patient > Alter Patient > Approvals > Open selected approval > Diagnosis 1 or in Financial > Approvals > Approvals > Open selected approval > Diagnosis 1.

Version information

Added in v7.10.50