Class: Google::Apis::HealthcareV1beta1::FieldMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/healthcare_v1beta1/classes.rb,
generated/google/apis/healthcare_v1beta1/representations.rb,
generated/google/apis/healthcare_v1beta1/representations.rb

Overview

Specifies FHIR paths to match, and how to handle de-identification of matching fields.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ FieldMetadata

Returns a new instance of FieldMetadata



824
825
826
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 824

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#actionString

Deidentify action for one field. Corresponds to the JSON property action

Returns:

  • (String)


809
810
811
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 809

def action
  @action
end

#pathsArray<String>

List of paths to FHIR fields to be redacted. Each path is a period-separated list where each component is either a field name or FHIR type name, for example: Patient, HumanName. For "choice" types (those defined in the FHIR spec with the form: field[x]) we use two separate components. e.g. "deceasedAge.unit" is matched by "Deceased.Age.unit". Supported types are: AdministrativeGenderCode, Code, Date, DateTime, Decimal, HumanName, Id, LanguageCode, Markdown, MimeTypeCode, Oid, String, Uri, Uuid, Xhtml. Corresponds to the JSON property paths

Returns:

  • (Array<String>)


822
823
824
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 822

def paths
  @paths
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



829
830
831
832
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 829

def update!(**args)
  @action = args[:action] if args.key?(:action)
  @paths = args[:paths] if args.key?(:paths)
end