class Google::Apis::HealthcareV1::InfoTypeTransformation
A transformation to apply to text that is identified as a specific info_type.
Attributes
Mask a string by replacing its characters with a fixed character. Corresponds to the JSON property `characterMaskConfig` @return [Google::Apis::HealthcareV1::CharacterMaskConfig]
Pseudonymization method that generates surrogates via cryptographic hashing. Uses SHA-256. Outputs a base64-encoded representation of the hashed output ( for example, `L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=`). Corresponds to the JSON property `cryptoHashConfig` @return [Google::Apis::HealthcareV1::CryptoHashConfig]
Shift a date forward or backward in time by a random amount which is consistent for a given patient and crypto key combination. Corresponds to the JSON property `dateShiftConfig` @return [Google::Apis::HealthcareV1::DateShiftConfig]
InfoTypes to apply this transformation to. If this is not specified, the transformation applies to any info_type. Corresponds to the JSON property `infoTypes` @return [Array<String>]
Define how to redact sensitive values. Default behaviour is erase. For example, “My name is Jane.” becomes “My name is .” Corresponds to the JSON property `redactConfig` @return [Google::Apis::HealthcareV1::RedactConfig]
When using the INSPECT_AND_TRANSFORM action, each match is replaced with the name of the info_type. For example, “My name is Jane” becomes “My name is [ PERSON_NAME].” The TRANSFORM action is equivalent to redacting. Corresponds to the JSON property `replaceWithInfoTypeConfig` @return [Google::Apis::HealthcareV1::ReplaceWithInfoTypeConfig]
Public Class Methods
# File lib/google/apis/healthcare_v1/classes.rb, line 2464 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/healthcare_v1/classes.rb, line 2469 def update!(**args) @character_mask_config = args[:character_mask_config] if args.key?(:character_mask_config) @crypto_hash_config = args[:crypto_hash_config] if args.key?(:crypto_hash_config) @date_shift_config = args[:date_shift_config] if args.key?(:date_shift_config) @info_types = args[:info_types] if args.key?(:info_types) @redact_config = args[:redact_config] if args.key?(:redact_config) @replace_with_info_type_config = args[:replace_with_info_type_config] if args.key?(:replace_with_info_type_config) end