ISPatient.IsNew

Description

Returns True if the patient is being created and has not been saved in the database yet.

Syntax

object.IsNew

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

Return Value

bool

Example

Display "The patient is not saved, so True" if the patient is being created and has not been saved yet. Otherwise, display "The patient is already saved, so False".

Dim aPatient  
Dim aIsNew

Set aPatient = Profile.NewPatient
aPatient.FirstName = "Hanna"
aPatient.LastName = "Smith"
aIsNew = aPatient.IsNew
Profile.MsgBox ("The patient is not saved, so " & aIsNew)
aPatient.Save
aIsNew = aPatient.IsNew
Profile.MsgBox ("The patient is already saved, so " & aIsNew)  
Note:

In Profile Client v8 on User Interface cannot be found.

Version information

Added in v7.8.0