Skip to content

Commit

Permalink
feat(healthcare): update the API
Browse files Browse the repository at this point in the history
#### healthcare:v1beta1

The following keys were added:
- schemas.DeidentifyDatasetRequest.properties.gcsConfigUri.description
- schemas.DeidentifyDatasetRequest.properties.gcsConfigUri.type
- schemas.DeidentifyDicomStoreRequest.properties.gcsConfigUri.description
- schemas.DeidentifyDicomStoreRequest.properties.gcsConfigUri.type
- schemas.DeidentifyFhirStoreRequest.properties.gcsConfigUri.description
- schemas.DeidentifyFhirStoreRequest.properties.gcsConfigUri.type

The following keys were changed:
- resources.projects.resources.locations.resources.datasets.resources.fhirStores.resources.fhir.methods.conditionalDelete.description
  • Loading branch information
yoshi-automation authored and sofisl committed Apr 1, 2022
1 parent dd75f6b commit 448c848
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
16 changes: 14 additions & 2 deletions discovery/healthcare-v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -3721,7 +3721,7 @@
]
},
"conditionalDelete": {
"description": "Deletes FHIR resources that match a search query. Implements the FHIR standard conditional delete interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.12.1), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13.1), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#3.1.0.7.1)). If multiple resources match, all matching resources are deleted. Search terms are provided as query parameters following the same pattern as the search method. Note: Unless resource versioning is disabled by setting the disable_resource_versioning flag on the FHIR store, the deleted resources are moved to a history repository that can still be retrieved through vread and related methods, unless they are removed by the purge method. This method requires the`healthcare.fhirStores.searchResources` and `healthcare.fhirResources.delete` permissions on the parent FHIR store. For samples that show how to call `conditionalDelete`, see [Conditionally deleting a FHIR resource](/healthcare/docs/how-tos/fhir-resources#conditionally_deleting_a_fhir_resource).",
"description": "Deletes FHIR resources that match a search query. Implements the FHIR standard conditional delete interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.12.1), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13.1), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#3.1.0.7.1)). If multiple resources match, all matching resources are deleted. Search terms are provided as query parameters following the same pattern as the search method. Not all FHIR resources that match the search query might be deleted because, by default, a maximum of 100 FHIR resources can be deleted. The number of FHIR resources that can be deleted depends on the page size of the returned resources, which you can control using the `_count` query parameter. Even when using `_count`, you can delete a maximum 1,000 FHIR resources per each call of `conditionalDelete`. Note: Unless resource versioning is disabled by setting the disable_resource_versioning flag on the FHIR store, the deleted resources are moved to a history repository that can still be retrieved through vread and related methods, unless they are removed by the purge method. This method requires the`healthcare.fhirStores.searchResources` and `healthcare.fhirResources.delete` permissions on the parent FHIR store. For samples that show how to call `conditionalDelete`, see [Conditionally deleting a FHIR resource](/healthcare/docs/how-tos/fhir-resources#conditionally_deleting_a_fhir_resource).",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}",
"httpMethod": "DELETE",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalDelete",
Expand Down Expand Up @@ -4865,7 +4865,7 @@
}
}
},
"revision": "20220224",
"revision": "20220317",
"rootUrl": "https://healthcare.googleapis.com/",
"schemas": {
"ActivateConsentRequest": {
Expand Down Expand Up @@ -5587,6 +5587,10 @@
"destinationDataset": {
"description": "The name of the dataset resource to create and write the redacted data to. * The destination dataset must not exist. * The destination dataset must be in the same location as the source dataset. De-identifying data across multiple locations is not supported.",
"type": "string"
},
"gcsConfigUri": {
"description": "Cloud Storage location to read the JSON cloud.healthcare.deidentify.DeidentifyConfig from, overriding the default config. Must be of the form `gs://{bucket_id}/path/to/object`. The Cloud Storage location must grant the Cloud IAM role `roles/storage.objectViewer` to the project's Cloud Healthcare Service Agent service account. Only one of `config` and `gcs_config_uri` can be specified.",
"type": "string"
}
},
"type": "object"
Expand All @@ -5606,6 +5610,10 @@
"filterConfig": {
"$ref": "DicomFilterConfig",
"description": "Filter configuration."
},
"gcsConfigUri": {
"description": "Cloud Storage location to read the JSON cloud.healthcare.deidentify.DeidentifyConfig from, overriding the default config. Must be of the form `gs://{bucket_id}/path/to/object`. The Cloud Storage location must grant the Cloud IAM role `roles/storage.objectViewer` to the project's Cloud Healthcare Service Agent service account. Only one of `config` and `gcs_config_uri` can be specified.",
"type": "string"
}
},
"type": "object"
Expand All @@ -5622,6 +5630,10 @@
"description": "The name of the FHIR store to create and write the redacted data to. For example, `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}`. * The destination dataset must exist. * The source dataset and destination dataset must both reside in the same location. De-identifying data across multiple locations is not supported. * The destination FHIR store must exist. * The caller must have the healthcare.fhirResources.update permission to write to the destination FHIR store.",
"type": "string"
},
"gcsConfigUri": {
"description": "Cloud Storage location to read the JSON cloud.healthcare.deidentify.DeidentifyConfig from, overriding the default config. Must be of the form `gs://{bucket_id}/path/to/object`. The Cloud Storage location must grant the Cloud IAM role `roles/storage.objectViewer` to the project's Cloud Healthcare Service Agent service account. Only one of `config` and `gcs_config_uri` can be specified.",
"type": "string"
},
"resourceFilter": {
"$ref": "FhirFilter",
"description": "A filter specifying the resources to include in the output. If not specified, all resources are included in the output."
Expand Down
21 changes: 18 additions & 3 deletions src/apis/healthcare/v1beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,10 @@ export namespace healthcare_v1beta1 {
* The name of the dataset resource to create and write the redacted data to. * The destination dataset must not exist. * The destination dataset must be in the same location as the source dataset. De-identifying data across multiple locations is not supported.
*/
destinationDataset?: string | null;
/**
* Cloud Storage location to read the JSON cloud.healthcare.deidentify.DeidentifyConfig from, overriding the default config. Must be of the form `gs://{bucket_id\}/path/to/object`. The Cloud Storage location must grant the Cloud IAM role `roles/storage.objectViewer` to the project's Cloud Healthcare Service Agent service account. Only one of `config` and `gcs_config_uri` can be specified.
*/
gcsConfigUri?: string | null;
}
/**
* Creates a new DICOM store with sensitive information de-identified.
Expand All @@ -647,6 +651,10 @@ export namespace healthcare_v1beta1 {
* Filter configuration.
*/
filterConfig?: Schema$DicomFilterConfig;
/**
* Cloud Storage location to read the JSON cloud.healthcare.deidentify.DeidentifyConfig from, overriding the default config. Must be of the form `gs://{bucket_id\}/path/to/object`. The Cloud Storage location must grant the Cloud IAM role `roles/storage.objectViewer` to the project's Cloud Healthcare Service Agent service account. Only one of `config` and `gcs_config_uri` can be specified.
*/
gcsConfigUri?: string | null;
}
/**
* Creates a new FHIR store with sensitive information de-identified.
Expand All @@ -660,6 +668,10 @@ export namespace healthcare_v1beta1 {
* The name of the FHIR store to create and write the redacted data to. For example, `projects/{project_id\}/locations/{location_id\}/datasets/{dataset_id\}/fhirStores/{fhir_store_id\}`. * The destination dataset must exist. * The source dataset and destination dataset must both reside in the same location. De-identifying data across multiple locations is not supported. * The destination FHIR store must exist. * The caller must have the healthcare.fhirResources.update permission to write to the destination FHIR store.
*/
destinationStore?: string | null;
/**
* Cloud Storage location to read the JSON cloud.healthcare.deidentify.DeidentifyConfig from, overriding the default config. Must be of the form `gs://{bucket_id\}/path/to/object`. The Cloud Storage location must grant the Cloud IAM role `roles/storage.objectViewer` to the project's Cloud Healthcare Service Agent service account. Only one of `config` and `gcs_config_uri` can be specified.
*/
gcsConfigUri?: string | null;
/**
* A filter specifying the resources to include in the output. If not specified, all resources are included in the output.
*/
Expand Down Expand Up @@ -2948,7 +2960,8 @@ export namespace healthcare_v1beta1 {
* // request body parameters
* // {
* // "config": {},
* // "destinationDataset": "my_destinationDataset"
* // "destinationDataset": "my_destinationDataset",
* // "gcsConfigUri": "my_gcsConfigUri"
* // }
* },
* });
Expand Down Expand Up @@ -12479,7 +12492,8 @@ export namespace healthcare_v1beta1 {
* // {
* // "config": {},
* // "destinationStore": "my_destinationStore",
* // "filterConfig": {}
* // "filterConfig": {},
* // "gcsConfigUri": "my_gcsConfigUri"
* // }
* },
* });
Expand Down Expand Up @@ -17366,6 +17380,7 @@ export namespace healthcare_v1beta1 {
* // {
* // "config": {},
* // "destinationStore": "my_destinationStore",
* // "gcsConfigUri": "my_gcsConfigUri",
* // "resourceFilter": {}
* // }
* },
Expand Down Expand Up @@ -19330,7 +19345,7 @@ export namespace healthcare_v1beta1 {
}

/**
* Deletes FHIR resources that match a search query. Implements the FHIR standard conditional delete interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.12.1), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13.1), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#3.1.0.7.1)). If multiple resources match, all matching resources are deleted. Search terms are provided as query parameters following the same pattern as the search method. Note: Unless resource versioning is disabled by setting the disable_resource_versioning flag on the FHIR store, the deleted resources are moved to a history repository that can still be retrieved through vread and related methods, unless they are removed by the purge method. This method requires the`healthcare.fhirStores.searchResources` and `healthcare.fhirResources.delete` permissions on the parent FHIR store. For samples that show how to call `conditionalDelete`, see [Conditionally deleting a FHIR resource](/healthcare/docs/how-tos/fhir-resources#conditionally_deleting_a_fhir_resource).
* Deletes FHIR resources that match a search query. Implements the FHIR standard conditional delete interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.12.1), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13.1), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#3.1.0.7.1)). If multiple resources match, all matching resources are deleted. Search terms are provided as query parameters following the same pattern as the search method. Not all FHIR resources that match the search query might be deleted because, by default, a maximum of 100 FHIR resources can be deleted. The number of FHIR resources that can be deleted depends on the page size of the returned resources, which you can control using the `_count` query parameter. Even when using `_count`, you can delete a maximum 1,000 FHIR resources per each call of `conditionalDelete`. Note: Unless resource versioning is disabled by setting the disable_resource_versioning flag on the FHIR store, the deleted resources are moved to a history repository that can still be retrieved through vread and related methods, unless they are removed by the purge method. This method requires the`healthcare.fhirStores.searchResources` and `healthcare.fhirResources.delete` permissions on the parent FHIR store. For samples that show how to call `conditionalDelete`, see [Conditionally deleting a FHIR resource](/healthcare/docs/how-tos/fhir-resources#conditionally_deleting_a_fhir_resource).
* @example
* ```js
* // Before running the sample:
Expand Down

0 comments on commit 448c848

Please sign in to comment.