Class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1DeidentifyOptions
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1DeidentifyOptions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/healthcare_v1beta1/classes.rb,
lib/google/apis/healthcare_v1beta1/representations.rb,
lib/google/apis/healthcare_v1beta1/representations.rb
Overview
Specifies additional options to apply to the base ProfileType.
Instance Attribute Summary collapse
-
#character_mask_config ⇒ Google::Apis::HealthcareV1beta1::CharacterMaskConfig
Mask a string by replacing its characters with a fixed character.
-
#contextual_deid ⇒ Google::Apis::HealthcareV1beta1::ContextualDeidConfig
Fields that don't match a KeepField or CleanTextField
action
in the BASIC profile are collected into a contextual phrase list. -
#crypto_hash_config ⇒ Google::Apis::HealthcareV1beta1::CryptoHashConfig
Pseudonymization method that generates surrogates via cryptographic hashing.
-
#date_shift_config ⇒ Google::Apis::HealthcareV1beta1::DateShiftConfig
Shift a date forward or backward in time by a random amount which is consistent for a given patient and crypto key combination.
-
#keep_extensions ⇒ Google::Apis::HealthcareV1beta1::KeepExtensionsConfig
The behavior for handling FHIR extensions that aren't otherwise specified for de-identification.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudHealthcareV1beta1DeidentifyOptions
constructor
A new instance of GoogleCloudHealthcareV1beta1DeidentifyOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudHealthcareV1beta1DeidentifyOptions
Returns a new instance of GoogleCloudHealthcareV1beta1DeidentifyOptions.
3932 3933 3934 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 3932 def initialize(**args) update!(**args) end |
Instance Attribute Details
#character_mask_config ⇒ Google::Apis::HealthcareV1beta1::CharacterMaskConfig
Mask a string by replacing its characters with a fixed character.
Corresponds to the JSON property characterMaskConfig
3899 3900 3901 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 3899 def character_mask_config @character_mask_config end |
#contextual_deid ⇒ Google::Apis::HealthcareV1beta1::ContextualDeidConfig
Fields that don't match a KeepField or CleanTextField action
in the BASIC
profile are collected into a contextual phrase list. For fields that match a
CleanTextField action
in FieldMetadata or ProfileType, the process attempts
to transform phrases matching these contextual entries. These contextual
phrases are replaced with the token "[CTX]". This feature uses an additional
InfoType during inspection.
Corresponds to the JSON property contextualDeid
3909 3910 3911 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 3909 def contextual_deid @contextual_deid end |
#crypto_hash_config ⇒ Google::Apis::HealthcareV1beta1::CryptoHashConfig
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
3916 3917 3918 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 3916 def crypto_hash_config @crypto_hash_config end |
#date_shift_config ⇒ Google::Apis::HealthcareV1beta1::DateShiftConfig
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
3922 3923 3924 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 3922 def date_shift_config @date_shift_config end |
#keep_extensions ⇒ Google::Apis::HealthcareV1beta1::KeepExtensionsConfig
The behavior for handling FHIR extensions that aren't otherwise specified for
de-identification. If provided, all extensions are preserved during de-
identification by default. If unspecified, all extensions are removed during
de-identification by default.
Corresponds to the JSON property keepExtensions
3930 3931 3932 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 3930 def keep_extensions @keep_extensions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3937 3938 3939 3940 3941 3942 3943 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 3937 def update!(**args) @character_mask_config = args[:character_mask_config] if args.key?(:character_mask_config) @contextual_deid = args[:contextual_deid] if args.key?(:contextual_deid) @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) @keep_extensions = args[:keep_extensions] if args.key?(:keep_extensions) end |