Class: Google::Apis::HealthcareV1beta1::ApplyConsentsRequest
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::ApplyConsentsRequest
- 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
Request to apply the Consent resources for the specified FHIR store.
Instance Attribute Summary collapse
-
#patient_scope ⇒ Google::Apis::HealthcareV1beta1::PatientScope
Apply consents given by a list of patients.
-
#time_range ⇒ Google::Apis::HealthcareV1beta1::TimeRange
Apply consents given by patients whose most recent consent changes are in the time range.
-
#validate_only ⇒ Boolean
(also: #validate_only?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ApplyConsentsRequest
constructor
A new instance of ApplyConsentsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ApplyConsentsRequest
Returns a new instance of ApplyConsentsRequest.
528 529 530 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 528 def initialize(**args) update!(**args) end |
Instance Attribute Details
#patient_scope ⇒ Google::Apis::HealthcareV1beta1::PatientScope
Apply consents given by a list of patients.
Corresponds to the JSON property patientScope
505 506 507 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 505 def patient_scope @patient_scope end |
#time_range ⇒ Google::Apis::HealthcareV1beta1::TimeRange
Apply consents given by patients whose most recent consent changes are in the
time range. Note that after identifying these patients, the server applies all
Consent resources given by those patients, not just the Consent resources
within the timestamp in the range.
Corresponds to the JSON property timeRange
513 514 515 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 513 def time_range @time_range end |
#validate_only ⇒ Boolean Also known as: validate_only?
Optional. If true, the method only validates Consent resources to make sure
they are supported. When the operation completes, ApplyConsentsResponse is
returned where consent_apply_success
and consent_apply_failure
indicate
supported and unsupported (or invalid) Consent resources, respectively.
Otherwise, the method propagates the aggregate consensual information to the
patient's resources. Upon success, affected_resources
in the
ApplyConsentsResponse indicates the number of resources that may have
consensual access changed.
Corresponds to the JSON property validateOnly
525 526 527 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 525 def validate_only @validate_only end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
533 534 535 536 537 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 533 def update!(**args) @patient_scope = args[:patient_scope] if args.key?(:patient_scope) @time_range = args[:time_range] if args.key?(:time_range) @validate_only = args[:validate_only] if args.key?(:validate_only) end |