Class: Google::Apis::HealthcareV1::FieldMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/healthcare_v1/classes.rb,
lib/google/apis/healthcare_v1/representations.rb,
lib/google/apis/healthcare_v1/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

Constructor Details

#initialize(**args) ⇒ FieldMetadata

Returns a new instance of FieldMetadata.



2203
2204
2205
# File 'lib/google/apis/healthcare_v1/classes.rb', line 2203

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

Instance Attribute Details

#actionString

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

Returns:

  • (String)


2189
2190
2191
# File 'lib/google/apis/healthcare_v1/classes.rb', line 2189

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. For example, " deceasedAge.unit" is matched by "Deceased.Age.unit". Supported types are: AdministrativeGenderCode, Base64Binary, Boolean, Code, Date, DateTime, Decimal, HumanName, Id, Instant, Integer, LanguageCode, Markdown, Oid, PositiveInt, String, UnsignedInt, Uri, Uuid, Xhtml. Corresponds to the JSON property paths

Returns:

  • (Array<String>)


2201
2202
2203
# File 'lib/google/apis/healthcare_v1/classes.rb', line 2201

def paths
  @paths
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2208
2209
2210
2211
# File 'lib/google/apis/healthcare_v1/classes.rb', line 2208

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