pub struct GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata {
pub character_mask_field: Option<CharacterMaskField>,
pub clean_text_field: Option<CleanTextField>,
pub crypto_hash_field: Option<CryptoHashField>,
pub date_shift_field: Option<DateShiftField>,
pub keep_field: Option<KeepField>,
pub paths: Option<Vec<String>>,
pub remove_field: Option<RemoveField>,
}
Expand description
Specifies the FHIR paths to match and how to handle the de-identification of matching fields.
This type is not used in any activity, and only used as part of another schema.
Fields§
§character_mask_field: Option<CharacterMaskField>
Replace the field’s value with a masking character. Supported types: Code, Decimal, HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml.
clean_text_field: Option<CleanTextField>
Inspect the field’s text and transform sensitive text. Configure using TextConfig. Supported types: Code, Date, DateTime, Decimal, HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml.
crypto_hash_field: Option<CryptoHashField>
Replace field value with a hash of that value. Supported types: Code, Decimal, HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml.
date_shift_field: Option<DateShiftField>
Shift the date by a randomized number of days. See date shifting for more information. Supported types: Date, DateTime.
keep_field: Option<KeepField>
Keep the field unchanged.
paths: Option<Vec<String>>
List of paths to FHIR fields to redact. Each path is a period-separated list where each component is either a field name or FHIR type name. All types begin with an upper case letter. For example, the resource field Patient.Address.city
, which uses a string type, can be matched by Patient.Address.String
. Partial matching is supported. For example, Patient.Address.city
can be matched by Address.city
(with Patient
omitted). Partial matching and type matching can be combined, for example Patient.Address.city
can be matched by Address.String
. For “choice” types (those defined in the FHIR spec with the format field[x]
), use two separate components. For example, deceasedAge.unit
is matched by Deceased.Age.unit
. The following types are supported: AdministrativeGenderCode, Base64Binary, Boolean, Code, Date, DateTime, Decimal, HumanName, Id, Instant, Integer, LanguageCode, Markdown, Oid, PositiveInt, String, UnsignedInt, Uri, Uuid, Xhtml. The sub-type for HumanName (for example HumanName.given
, HumanName.family
) can be omitted.
remove_field: Option<RemoveField>
Remove the field.
Trait Implementations§
Source§impl Clone for GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata
impl Clone for GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata
Source§fn clone(&self) -> GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata
fn clone(&self) -> GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata
impl Default for GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata
Source§fn default() -> GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata
fn default() -> GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata
Source§impl<'de> Deserialize<'de> for GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata
impl<'de> Deserialize<'de> for GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata
Auto Trait Implementations§
impl Freeze for GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata
impl RefUnwindSafe for GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata
impl Send for GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata
impl Sync for GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata
impl Unpin for GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata
impl UnwindSafe for GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more