google_healthcare_dicom_store

A DicomStore is a datastore inside a Healthcare dataset that conforms to the DICOM (https://www.dicomstandard.org/about/) standard for Healthcare information exchange

To get more information about DicomStore, see:

Open in Cloud Shell

Example Usage - Healthcare Dicom Store Basic

resource "google_healthcare_dicom_store" "default" {
  name    = "example-dicom-store"
  dataset = google_healthcare_dataset.dataset.id

  notification_config {
    pubsub_topic = google_pubsub_topic.topic.id
  }

  labels = {
    label1 = "labelvalue1"
  }
}

resource "google_pubsub_topic" "topic" {
  name     = "dicom-notifications"
}

resource "google_healthcare_dataset" "dataset" {
  name     = "example-dataset"
  location = "us-central1"
}
Open in Cloud Shell

Example Usage - Healthcare Dicom Store Bq Stream

resource "google_healthcare_dicom_store" "default" {
  provider = google-beta

  name    = "example-dicom-store"
  dataset = google_healthcare_dataset.dataset.id

  notification_config {
    pubsub_topic = google_pubsub_topic.topic.id
  }

  labels = {
    label1 = "labelvalue1"
  }

  stream_configs {
    bigquery_destination {
      table_uri = "bq://${google_bigquery_dataset.bq_dataset.project}.${google_bigquery_dataset.bq_dataset.dataset_id}.${google_bigquery_table.bq_table.table_id}"
    }
  }  
}

resource "google_pubsub_topic" "topic" {
  provider = google-beta

  name     = "dicom-notifications"
}

resource "google_healthcare_dataset" "dataset" {
  provider = google-beta

  name     = "example-dataset"
  location = "us-central1"
}

resource "google_bigquery_dataset" "bq_dataset" {
  provider = google-beta

  dataset_id    = "dicom_bq_ds"
  friendly_name = "test"
  description   = "This is a test description"
  location      = "US"
  delete_contents_on_destroy = true
}

resource "google_bigquery_table" "bq_table" {
  provider = google-beta

  deletion_protection = false
  dataset_id = google_bigquery_dataset.bq_dataset.dataset_id
  table_id   = "dicom_bq_tb"
}

Argument Reference

The following arguments are supported:


The notification_config block supports:

The stream_configs block supports:

The bigquery_destination block supports:

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

DicomStore can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import DicomStore using one of the formats above. For example:

import {
  id = "{{dataset}}/dicomStores/{{name}}"
  to = google_healthcare_dicom_store.default
}

When using the terraform import command, DicomStore can be imported using one of the formats above. For example:

$ terraform import google_healthcare_dicom_store.default {{dataset}}/dicomStores/{{name}}
$ terraform import google_healthcare_dicom_store.default {{dataset}}/{{name}}