ISPatient.AddAlert

Description

This function adds a new alert for the patient.

Syntax

object.AddAlert()

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

Return Value

ISPatientProblem

Returns the added alert.

Example

Add a new alert for the patient.

Dim aPatient 
Dim aPatientSelected 
Dim aNewProblem
Dim aPatientID 
Dim aCaseID
Dim aCategory
Dim aCode

aCategory = 105 'TSShortCodeCategory.sscCaseAlertType
aCode = "DU0008" 
Set aShortCode = Profile.LoadShortCodeByCodeType(aCode, aCategory)

aPatientSelected = Profile.Lookup_PatientCaseSearch(aPatientID, aCaseID,_
  "Select Patient and Case", True)
if not aPatientSelected then exit sub   

set aPatient = Profile.LoadPatient(aPatientID)
set aNewProblem = aPatient.AddAlert
aNewProblem.CaseAlertType = aShortCode.Id
aNewProblem.CaseId = aCaseID
aNewProblem.DXDescription = "New Alert DX Description"
aNewProblem.Save

Profile.MsgBox("New problem was added successfully!")  
Note:

In Profile Client v8 on User Interface Alerts can be added and found in Clinical > Medical Record > Alerts or in Patient > Cases > Administrative > Alerts.

Version information

Added in v7.8.0