- release_tracks: [ALPHA, BETA, GA]

  help_text:
    brief: |
      De-identify data from the source store and write it to the destination store.
    description: |
      De-identify data from the source store and write it to the destination store.
    examples: |
      To generate a de-identified version of the FHIR store 'test-fhir-store', run the command below.

        $ {command} test-fhir-store --destination-store=projects/{projectId}/locations/us-central1/datasets/{datasetId}/fhirStores/test-deid-fhir-store
  request:
    collection: healthcare.projects.locations.datasets.fhirStores
    ALPHA:
      api_version: v1alpha2
    BETA:
      api_version: v1beta1
    GA:
      api_version: v1
    method: deidentify

  arguments:
    resource:
      help_text: Source Cloud Healthcare API FHIR store to deidentify.
      spec: !REF googlecloudsdk.command_lib.healthcare.resources:fhir_store

    params:
    - arg_name: destination-store
      api_field: deidentifyFhirStoreRequest.destinationStore
      required: true
      help_text: |
        The name of the FHIR store to which the redacted data should be written
        (e.g., projects/{projectId}/locations/{locationId}/datasets/{datasetId}/fhirStores/{fhirStoreId}).
        The destination FHIR store must already exist, or the request will fail.

  async:
    collection: healthcare.projects.locations.datasets.operations
