# Google Cloud Discovery Engine V1 Client - Class FhirStoreSource (1.11.1)

1.11.1 (latest) 1.11.0 1.10.1 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.3 1.2.0 1.1.0 1.0.0 0.11.3 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class FhirStoreSource.

Cloud FhirStore source import data from.

Generated from protobuf message `google.cloud.discoveryengine.v1.FhirStoreSource`

## Namespace

Google \\ Cloud \\ DiscoveryEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ fhir_store` | `string` Required. The full resource name of the FHIR store to import data from, in the format of `projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}`. |
| `↳ gcs_staging_dir` | `string` Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the FhirStore export to a specific Cloud Storage directory. |
| `↳ resource_types` | `string[]` The FHIR resource types to import. The resource types should be a subset of all [supported FHIR resource types](https://cloud.google.com/generative-ai-app-builder/docs/fhir-schema-reference#resource-level-specification). Default to all supported FHIR resource types if empty. |
| `↳ update_from_latest_predefined_schema` | `bool` Optional. Whether to update the DataStore schema to the latest predefined schema. If true, the DataStore schema will be updated to include any FHIR fields or resource types that have been added since the last import and corresponding FHIR resources will be imported from the FHIR store. Note this field cannot be used in conjunction with `resource_types`. It should be used after initial import. |

### getFhirStore

Required. The full resource name of the FHIR store to import data from, in
the format of
`projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setFhirStore

Required. The full resource name of the FHIR store to import data from, in
the format of
`projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGcsStagingDir

Intermediate Cloud Storage directory used for the import with a length
limit of 2,000 characters. Can be specified if one wants to have the
FhirStore export to a specific Cloud Storage directory.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setGcsStagingDir

Intermediate Cloud Storage directory used for the import with a length
limit of 2,000 characters. Can be specified if one wants to have the
FhirStore export to a specific Cloud Storage directory.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getResourceTypes

The FHIR resource types to import. The resource types should be a subset of
all [supported FHIR resource
types](https://cloud.google.com/generative-ai-app-builder/docs/fhir-schema-reference#resource-level-specification).

Default to all supported FHIR resource types if empty.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setResourceTypes

The FHIR resource types to import. The resource types should be a subset of
all [supported FHIR resource
types](https://cloud.google.com/generative-ai-app-builder/docs/fhir-schema-reference#resource-level-specification).

Default to all supported FHIR resource types if empty.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUpdateFromLatestPredefinedSchema

Optional. Whether to update the DataStore schema to the latest predefined
schema.

If true, the DataStore schema will be updated to include any FHIR fields
or resource types that have been added since the last import and
corresponding FHIR resources will be imported from the FHIR store.
Note this field cannot be used in conjunction with `resource_types`. It
should be used after initial import.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setUpdateFromLatestPredefinedSchema

Optional. Whether to update the DataStore schema to the latest predefined
schema.

If true, the DataStore schema will be updated to include any FHIR fields
or resource types that have been added since the last import and
corresponding FHIR resources will be imported from the FHIR store.
Note this field cannot be used in conjunction with `resource_types`. It
should be used after initial import.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |