google_healthcare_hl7_v2_store

A Hl7V2Store is a datastore inside a Healthcare dataset that conforms to the FHIR (https://www.hl7.org/hl7V2/STU3/) standard for Healthcare information exchange

To get more information about Hl7V2Store, see:

Open in Cloud Shell

Example Usage - Healthcare Hl7 V2 Store Basic

resource "google_healthcare_hl7_v2_store" "store" {
  name    = "example-hl7-v2-store"
  dataset = google_healthcare_dataset.dataset.id
  reject_duplicate_message = true

  notification_configs {
    pubsub_topic = google_pubsub_topic.topic.id
  }

  labels = {
    label1 = "labelvalue1"
  }
}

resource "google_pubsub_topic" "topic" {
  name     = "hl7-v2-notifications"
}

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

Example Usage - Healthcare Hl7 V2 Store Parser Config

resource "google_healthcare_hl7_v2_store" "store" {
  provider = google-beta
  name    = "example-hl7-v2-store"
  dataset = google_healthcare_dataset.dataset.id

  parser_config {
    allow_null_header  = false
    segment_terminator = "Jw=="
    schema = <<EOF
{
  "schemas": [{
    "messageSchemaConfigs": {
      "ADT_A01": {
        "name": "ADT_A01",
        "minOccurs": 1,
        "maxOccurs": 1,
        "members": [{
            "segment": {
              "type": "MSH",
              "minOccurs": 1,
              "maxOccurs": 1
            }
          },
          {
            "segment": {
              "type": "EVN",
              "minOccurs": 1,
              "maxOccurs": 1
            }
          },
          {
            "segment": {
              "type": "PID",
              "minOccurs": 1,
              "maxOccurs": 1
            }
          },
          {
            "segment": {
              "type": "ZPD",
              "minOccurs": 1,
              "maxOccurs": 1
            }
          },
          {
            "segment": {
              "type": "OBX"
            }
          },
          {
            "group": {
              "name": "PROCEDURE",
              "members": [{
                  "segment": {
                    "type": "PR1",
                    "minOccurs": 1,
                    "maxOccurs": 1
                  }
                },
                {
                  "segment": {
                    "type": "ROL"
                  }
                }
              ]
            }
          },
          {
            "segment": {
              "type": "PDA",
              "maxOccurs": 1
            }
          }
        ]
      }
    }
  }],
  "types": [{
    "type": [{
        "name": "ZPD",
        "primitive": "VARIES"
      }

    ]
  }],
  "ignoreMinOccurs": true
}
EOF
  }
}

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

Example Usage - Healthcare Hl7 V2 Store Unschematized

resource "google_healthcare_hl7_v2_store" "store" {
  provider = google-beta
  name    = "example-hl7-v2-store"
  dataset = google_healthcare_dataset.dataset.id

  parser_config {
    allow_null_header  = false
    segment_terminator = "Jw=="
    version            = "V2"
  }
}

resource "google_healthcare_dataset" "dataset" {
  provider = google-beta
  name     = "example-dataset"
  location = "us-central1"
}

Argument Reference

The following arguments are supported:


The parser_config block supports:

The notification_configs block supports:

The notification_config 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

Hl7V2Store can be imported using any of these accepted formats:

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

import {
  id = "{{dataset}}/hl7V2Stores/{{name}}"
  to = google_healthcare_hl7_v2_store.default
}

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

$ terraform import google_healthcare_hl7_v2_store.default {{dataset}}/hl7V2Stores/{{name}}
$ terraform import google_healthcare_hl7_v2_store.default {{dataset}}/{{name}}