#[non_exhaustive]pub struct FhirStoreSource {
pub fhir_store: String,
pub gcs_staging_dir: String,
pub resource_types: Vec<String>,
pub update_from_latest_predefined_schema: bool,
/* private fields */
}document-service only.Expand description
Cloud FhirStore source import data from.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.fhir_store: StringRequired. 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: StringIntermediate 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: Vec<String>The FHIR resource types to import. The resource types should be a subset of all supported FHIR resource types. Default to all supported FHIR resource types if empty.
update_from_latest_predefined_schema: boolOptional. 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.
Implementations§
Source§impl FhirStoreSource
impl FhirStoreSource
pub fn new() -> Self
Sourcepub fn set_fhir_store<T: Into<String>>(self, v: T) -> Self
pub fn set_fhir_store<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_gcs_staging_dir<T: Into<String>>(self, v: T) -> Self
pub fn set_gcs_staging_dir<T: Into<String>>(self, v: T) -> Self
Sets the value of gcs_staging_dir.
§Example
let x = FhirStoreSource::new().set_gcs_staging_dir("example");Sourcepub fn set_resource_types<T, V>(self, v: T) -> Self
pub fn set_resource_types<T, V>(self, v: T) -> Self
Sets the value of resource_types.
§Example
let x = FhirStoreSource::new().set_resource_types(["a", "b", "c"]);Sourcepub fn set_update_from_latest_predefined_schema<T: Into<bool>>(
self,
v: T,
) -> Self
pub fn set_update_from_latest_predefined_schema<T: Into<bool>>( self, v: T, ) -> Self
Sets the value of update_from_latest_predefined_schema.
§Example
let x = FhirStoreSource::new().set_update_from_latest_predefined_schema(true);Trait Implementations§
Source§impl Clone for FhirStoreSource
impl Clone for FhirStoreSource
Source§fn clone(&self) -> FhirStoreSource
fn clone(&self) -> FhirStoreSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more