ISPatient.AddRegistryKey

Description

This function adds a new registry key of the patient.

Syntax

object.AddRegistryKey(aKeyCode, aKeyValue)

Part Attribute Type Description
object Required
The object always implements the ISPatient interface
aKeyCode In, Required
string
The code of the registry key
aKeyValue In, Required
string
The value of the registry key

Return Value

ISRegistryKey

Returns the added registry key.

Example

Add a new registry key with the selected code and value.

Dim aPatient  
Dim aRegistryKey
Dim aMessage

Set aPatient = Profile.SelectPatient
Set aRegistryKey = aPatient.AddRegistryKey("FIRSTLOGIN", "False")

aMessage = aMessage & vbNewLine
aMessage = aMessage & "New registry key " & aRegistryKey.KeyCode.Description
aMessage = aMessage & " was added successfully!" 

Profile.MsgBox (aMessage)    
Note:

In Profile Client v8 on User Interface Registry Key can be added and found in Patient > Alter Patient > Registry > Registry panel.

Version information

Added in v7.8.0