Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ANALYTICS_V2 and LOSSLESS schema types. #4186

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-beta/resource_healthcare_fhir_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,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