ISPatient.SetWebPasswordByAnswers

Description

This function sets a new Accession login password for the patient on the basis of the answers to the security questions.

Syntax

object.SetWebPasswordByAnswers(aNewPassword, aQuestions, aAnswers)

Part Attribute Type Description
object Required
The object always implements the ISPatient interface
aNewPassword In, Required
string
The password to set
aQuestions In, Required
The security questions
aAnswers In, Required
The answers to the security questions

Return Value

ISMacroLog

The returned ISMacroLog interface contains all errors and warnings generated by the password validation macro.

Example

Set a new Accession login password for the patient on the basis of the answers to the security questions and display "True" if the password can be set successfully.

Dim aPatient  
Dim aPasswordMacroLog
Dim aQuestions
Dim aAnswers
Dim aNewPassword

Set aPatient = Profile.SelectPatient
aNewPassword = "111111"
set aQuestions = Profile.CreateStrings
aQuestions.Add("TEST1")
aQuestions.Add("TEST2")
set aAnswers = Profile.CreateStrings
aAnswers.Add("1")
aAnswers.Add("2")
set aPasswordMacroLog = aPatient.SetWebPasswordByAnswers(aNewPassword,_ 
 aQuestions, aAnswers)
aPatient.Save
Profile.MsgBox(aPasswordMacroLog.CanProceed)
Note:

In Profile Client v8 on User Interface Security Questions and Answers can be found in Accession > Change Patient Details > Security Questions.

See also

Version information

Added in v8.3.0