diff --git a/.changelog/5889.txt b/.changelog/5889.txt new file mode 100644 index 0000000000..d078a76453 --- /dev/null +++ b/.changelog/5889.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +healthcare: added support for `ANALYTICS_V2 `and `LOSSLESS` BigQueryDestination schema types to `google_healthcare_fhir_store` +``` diff --git a/google-beta/resource_healthcare_fhir_store.go b/google-beta/resource_healthcare_fhir_store.go index 335ee8df07..58f14cde9f 100644 --- a/google-beta/resource_healthcare_fhir_store.go +++ b/google-beta/resource_healthcare_fhir_store.go @@ -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", }, }, diff --git a/website/docs/r/healthcare_fhir_store.html.markdown b/website/docs/r/healthcare_fhir_store.html.markdown index 4277658ec1..527ef75f50 100644 --- a/website/docs/r/healthcare_fhir_store.html.markdown +++ b/website/docs/r/healthcare_fhir_store.html.markdown @@ -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)