qie.deIdentifyMessage¶
Signature: qie.deIdentifyMessage(message, variableName, certificateName, nodePath*)
Returns: void
Removes identity fields from the message and optionally stores in an encrypted field on the message.
Parameters¶
| Type | Name | Description | Default |
|---|---|---|---|
| Message | message | the message to de-identify data in | |
| String | variableName | the system variable name containing the map of fields to de-identify | |
| String | certificateName | the SSL Certificate to be used for encrypting the data | |
| String | nodePath* | (optional) the node path to store the encrypted data with the message, when not provided the message is de-identified, but cannot be re-identified | null |
Example¶
// Example: de-identify identity fields in the message.
// 'hl7Deidentify' is a System Variable of type Table that defines NodePaths + Actions.
// NOTE: Provide a nodePath if you need to re-identify later.
qie.deIdentifyMessage(
message, // message
'hl7Deidentify', // variableName (Table)
'certForEncryptingFields', // public certificate
'/storeDataHere' // nodePath (optional; required to re-identify later)
);