Skip to content

qie.reIdentifyMessage

Signature: qie.reIdentifyMessage(message, keyName, nodePath)

Returns: void

Restores identity fields in the message from the encrypted field on the message.

Parameters

Type Name Description Default
Message message the message to de-identify data in
String keyName the SSL Private Key to be used to decrypt the data
String nodePath the node path where the encrypted data is stored in the message, if the encrypted data is not stored in the message, then it can not be re-identified

Example

// Example: re-identify a message that was previously de-identified.
// See: https://www.qvera.com/qie-kb-redirect.php?question=how-to-deidentify-or-reidentify-a-message

// De-identify (stores encrypted originals at nodePath so the message can be re-identified later)
qie.deIdentifyMessage(
message,            // message
'DeidentifyDicom',  // variableName (Table)
'My Certificate',   // public certificate
'/0041,1100'        // nodePath to store encrypted originals
);

// Re-identify (decrypts using the private key that matches the public certificate)
qie.reIdentifyMessage(
message,            // message
'My Private Key',   // keyName (private key)
'/0041,1100'        // nodePath where encrypted originals were stored
);