Skip to content

Commit

Permalink
Support ANALYTICS_V2 and LOSSLESS schema types. (#5889) (#11426)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician committed Apr 6, 2022
1 parent c6868ea commit 8dc4302
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .changelog/5889.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
healthcare: added support for `ANALYTICS_V2 `and `LOSSLESS` BigQueryDestination schema types to `google_healthcare_fhir_store`
```
8 changes: 5 additions & 3 deletions google/resource_healthcare_fhir_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,12 @@ value 2. The maximum depth allowed is 5.`,
"schema_type": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validateEnum([]string{"ANALYTICS", ""}),
Description: `Specifies the output schema type. Only ANALYTICS is supported at this time.
ValidateFunc: validateEnum([]string{"ANALYTICS", "ANALYTICS_V2", "LOSSLESS", ""}),
Description: `Specifies the output schema type.
* ANALYTICS: Analytics schema defined by the FHIR community.
See https://github.com/FHIR/sql-on-fhir/blob/master/sql-on-fhir.md. Default value: "ANALYTICS" Possible values: ["ANALYTICS"]`,
See https://github.com/FHIR/sql-on-fhir/blob/master/sql-on-fhir.md.
* ANALYTICS_V2: Analytics V2, similar to schema defined by the FHIR community, with added support for extensions with one or more occurrences and contained resources in stringified JSON.
* LOSSLESS: A data-driven schema generated from the fields present in the FHIR data being exported, with no additional simplification. Default value: "ANALYTICS" Possible values: ["ANALYTICS", "ANALYTICS_V2", "LOSSLESS"]`,
Default: "ANALYTICS",
},
},
Expand Down
6 changes: 4 additions & 2 deletions website/docs/r/healthcare_fhir_store.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,13 @@ The following arguments are supported:

* `schema_type` -
(Optional)
Specifies the output schema type. Only ANALYTICS is supported at this time.
Specifies the output schema type.
* ANALYTICS: Analytics schema defined by the FHIR community.
See https://github.com/FHIR/sql-on-fhir/blob/master/sql-on-fhir.md.
* ANALYTICS_V2: Analytics V2, similar to schema defined by the FHIR community, with added support for extensions with one or more occurrences and contained resources in stringified JSON.
* LOSSLESS: A data-driven schema generated from the fields present in the FHIR data being exported, with no additional simplification.
Default value is `ANALYTICS`.
Possible values are `ANALYTICS`.
Possible values are `ANALYTICS`, `ANALYTICS_V2`, and `LOSSLESS`.

* `recursive_structure_depth` -
(Required)
Expand Down

0 comments on commit 8dc4302

Please sign in to comment.