Skip to content

Commit

Permalink
add version field for unschematized hl7 stores (#3983) (#7357)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Sep 25, 2020
1 parent 2990c7f commit b6509a4
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .changelog/3983.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
healthcare: Added field `parser_config.version` to `google_healthcare_hl7_v2_store`
```
4 changes: 2 additions & 2 deletions google/resource_healthcare_hl7_v2_store_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func TestAccHealthcareHl7V2Store_healthcareHl7V2StoreBasicExample(t *testing.T)
Config: testAccHealthcareHl7V2Store_healthcareHl7V2StoreBasicExample(context),
},
{
ResourceName: "google_healthcare_hl7_v2_store.default",
ResourceName: "google_healthcare_hl7_v2_store.store",
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"self_link", "dataset"},
Expand All @@ -53,7 +53,7 @@ func TestAccHealthcareHl7V2Store_healthcareHl7V2StoreBasicExample(t *testing.T)

func testAccHealthcareHl7V2Store_healthcareHl7V2StoreBasicExample(context map[string]interface{}) string {
return Nprintf(`
resource "google_healthcare_hl7_v2_store" "default" {
resource "google_healthcare_hl7_v2_store" "store" {
name = "tf-test-example-hl7-v2-store%{random_suffix}"
dataset = google_healthcare_dataset.dataset.id
Expand Down
31 changes: 29 additions & 2 deletions website/docs/r/healthcare_hl7_v2_store.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ To get more information about Hl7V2Store, see:


```hcl
resource "google_healthcare_hl7_v2_store" "default" {
resource "google_healthcare_hl7_v2_store" "store" {
name = "example-hl7-v2-store"
dataset = google_healthcare_dataset.dataset.id
Expand Down Expand Up @@ -72,7 +72,7 @@ resource "google_healthcare_dataset" "dataset" {


```hcl
resource "google_healthcare_hl7_v2_store" "default" {
resource "google_healthcare_hl7_v2_store" "store" {
provider = google-beta
name = "example-hl7-v2-store"
dataset = google_healthcare_dataset.dataset.id
Expand Down Expand Up @@ -163,6 +163,33 @@ EOF
}
}
resource "google_healthcare_dataset" "dataset" {
provider = google-beta
name = "example-dataset"
location = "us-central1"
}
```
<div class = "oics-button" style="float: right; margin: 0 0 -15px">
<a href="https://console.cloud.google.com/cloudshell/open?cloudshell_git_repo=https%3A%2F%2Fgithub.com%2Fterraform-google-modules%2Fdocs-examples.git&cloudshell_working_dir=healthcare_hl7_v2_store_unschematized&cloudshell_image=gcr.io%2Fgraphite-cloud-shell-images%2Fterraform%3Alatest&open_in_editor=main.tf&cloudshell_print=.%2Fmotd&cloudshell_tutorial=.%2Ftutorial.md" target="_blank">
<img alt="Open in Cloud Shell" src="//gstatic.com/cloudssh/images/open-btn.svg" style="max-height: 44px; margin: 32px auto; max-width: 100%;">
</a>
</div>
## Example Usage - Healthcare Hl7 V2 Store Unschematized


```hcl
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"
Expand Down

0 comments on commit b6509a4

Please sign in to comment.