Full name: projects.locations.datasets.fhirStores.applyAdminConsents
Applies the admin Consent resources for the FHIR store and reindexes the underlying resources in the FHIR store according to the aggregate consents. This method also updates the consentConfig.enforced_admin_consents field of the FhirStore unless validateOnly=true in ApplyAdminConsentsRequest. Any admin Consent resource change after this operation execution (including deletion) requires you to call fhirStores.applyAdminConsents again for the change to take effect.
This method returns an Operation that can be used to track the progress of the resources that were reindexed, by calling operations.get. Upon completion, the ApplyAdminConsentsResponse additionally contains the number of resources that were reindexed.
If at least one Consent resource contains an error or fails be be enforced for any reason, the method returns an error instead of an Operation. No resources will be reindexed and the consentConfig.enforced_admin_consents field will be unchanged.
To enforce a consent check for data access, consentConfig.access_enforced must be set to true for the FhirStore.
FHIR Consent is not supported in DSTU2 or R5.
HTTP request
POST https://healthcare.googleapis.com/v1/{name=projects/*/locations/*/datasets/*/fhirStores/*}:applyAdminConsents
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
name |
Required. The name of the FHIR store to enforce, in the format Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "validateOnly": boolean, // Union field |
| Fields | |
|---|---|
validateOnly |
Optional. If true, the method only validates Consent resources to make sure they are supported. Otherwise, the method applies the aggregate consent information to update the enforcement model and reindex the FHIR resources. If all Consent resources can be applied successfully, the |
Union field payload. Payload is one of the following: a list of admin Consent resources to be applied. payload can be only one of the following: |
|
newConsentsList |
A new list of admin Consent resources to be applied. Any existing enforced Consents, which are specified in |
Response body
If successful, the response body contains an instance of Operation.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-healthcarehttps://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
AdminConsents
List of admin Consent resources to be applied.
| JSON representation |
|---|
{ "names": [ string ] } |
| Fields | |
|---|---|
names[] |
Optional. The versioned names of the admin Consent resource(s), in the format |