ISPatient.DeleteRegistryKey

Description

This function deletes the selected registry key of the patient.

Syntax

object.DeleteRegistryKey aRegistryKey

Part Attribute Type Description
object Required
The object always implements the ISPatient interface
aRegistryKey In, Required
The registry key to delete

Example

Delete the registry key with the selected code.

Dim aPatient 
Dim aPatientID
Dim aProviderID
Dim aRegistryCode 
Dim aRegistryKey

Set aPatient = Profile.SelectPatient
aPatientID = aPatient.ID
aProviderID = 0
aRegistryCode = "REG1"
set aRegistryKey = Profile.getRegistryKey(aPatientID, aProviderID, aRegistryCode)

if aRegistryKey is nothing then
  Profile.MsgBox ("This patient has no registry keys with this code!")
else
  aPatient.DeleteRegistryKey(aRegistryKey)
  Profile.MsgBox ("The registry key was deleted successfully!")  
end if 
Note:

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

See also

Version information

Added in v7.8.0