Class: Google::Apis::HealthcareV1beta1::ConsentConfig
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::ConsentConfig
- 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
Configures whether to enforce consent for the FHIR store and which consent enforcement version is being used.
Instance Attribute Summary collapse
-
#access_determination_log_config ⇒ Google::Apis::HealthcareV1beta1::AccessDeterminationLogConfig
Configures consent audit log config for FHIR create, read, update, and delete ( CRUD) operations.
-
#access_enforced ⇒ Boolean
(also: #access_enforced?)
Optional.
-
#consent_header_handling ⇒ Google::Apis::HealthcareV1beta1::ConsentHeaderHandling
How the server handles the consent header.
-
#enforced_admin_consents ⇒ Array<String>
The versioned names of the enforced admin Consent resource(s), in the format
projects/
project_id/locations/
location/datasets/
dataset_id/fhirStores/
fhir_store_id/fhir/Consent/
resource_id/_history/
version_id``. -
#version ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConsentConfig
constructor
A new instance of ConsentConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ConsentConfig
Returns a new instance of ConsentConfig.
1390 1391 1392 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1390 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_determination_log_config ⇒ Google::Apis::HealthcareV1beta1::AccessDeterminationLogConfig
Configures consent audit log config for FHIR create, read, update, and delete (
CRUD) operations. Cloud audit log for healthcare API must be enabled. The consent-related logs are included as part of protoPayload.
metadata
.
Corresponds to the JSON property accessDeterminationLogConfig
1357 1358 1359 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1357 def access_determination_log_config @access_determination_log_config end |
#access_enforced ⇒ Boolean Also known as: access_enforced?
Optional. If set to true, when accessing FHIR resources, the consent headers
will be verified against consents given by patients. See the
ConsentEnforcementVersion for the supported consent headers.
Corresponds to the JSON property accessEnforced
1364 1365 1366 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1364 def access_enforced @access_enforced end |
#consent_header_handling ⇒ Google::Apis::HealthcareV1beta1::ConsentHeaderHandling
How the server handles the consent header.
Corresponds to the JSON property consentHeaderHandling
1370 1371 1372 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1370 def @consent_header_handling end |
#enforced_admin_consents ⇒ Array<String>
The versioned names of the enforced admin Consent resource(s), in the format
projects/
project_id/locations/
location/datasets/
dataset_id/fhirStores/
fhir_store_id/fhir/Consent/
resource_id/_history/
version_id. For FHIR
stores with `disable_resource_versioning=true`, the format is `projects/`
project_id`/locations/`location`/datasets/`dataset_id`/fhirStores/`
fhir_store_id`/fhir/Consent/`resource_id
. This field can only be updated
using ApplyAdminConsents.
Corresponds to the JSON property enforcedAdminConsents
1381 1382 1383 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1381 def @enforced_admin_consents end |
#version ⇒ String
Required. Specifies which consent enforcement version is being used for this
FHIR store. This field can only be set once by either CreateFhirStore or
UpdateFhirStore. After that, you must call ApplyConsents to change the version.
Corresponds to the JSON property version
1388 1389 1390 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1388 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1395 1396 1397 1398 1399 1400 1401 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1395 def update!(**args) @access_determination_log_config = args[:access_determination_log_config] if args.key?(:access_determination_log_config) @access_enforced = args[:access_enforced] if args.key?(:access_enforced) @consent_header_handling = args[:consent_header_handling] if args.key?(:consent_header_handling) @enforced_admin_consents = args[:enforced_admin_consents] if args.key?(:enforced_admin_consents) @version = args[:version] if args.key?(:version) end |