[][src]Crate google_healthcare1_beta1

This documentation was generated from Cloud Healthcare crate version 1.0.13+20200327, where 20200327 is the exact revision of the healthcare:v1beta1 schema built by the mako code generator v1.0.13.

Everything else about the Cloud Healthcare v1_beta1 API can be found at the official documentation site. The original source code is on github.

Features

Handle the following Resources with ease from the central hub ...

Not what you are looking for ? Find all other Google APIs in their Rust documentation index.

Structure of this Library

The API is structured into the following primary items:

  • Hub
    • a central object to maintain state and allow accessing all Activities
    • creates Method Builders which in turn allow access to individual Call Builders
  • Resources
    • primary types that you can apply Activities to
    • a collection of properties and Parts
    • Parts
      • a collection of properties
      • never directly used in Activities
  • Activities
    • operations to apply to Resources

All structures are marked with applicable traits to further categorize them and ease browsing.

Generally speaking, you can invoke Activities like this:

let r = hub.resource().activity(...).doit()

Or specifically ...

This example is not tested
let r = hub.projects().locations_datasets_fhir_stores_fhir_history(...).doit()
let r = hub.projects().locations_datasets_fhir_stores_fhir_search(...).doit()
let r = hub.projects().locations_datasets_dicom_stores_search_for_studies(...).doit()
let r = hub.projects().locations_datasets_fhir_stores_fhir_delete(...).doit()
let r = hub.projects().locations_datasets_fhir_stores_fhir_patch(...).doit()
let r = hub.projects().locations_datasets_dicom_stores_studies_series_search_for_instances(...).doit()
let r = hub.projects().locations_datasets_fhir_stores_search(...).doit()
let r = hub.projects().locations_datasets_dicom_stores_studies_series_instances_retrieve_rendered(...).doit()
let r = hub.projects().locations_datasets_dicom_stores_studies_series_instances_frames_retrieve_rendered(...).doit()
let r = hub.projects().locations_datasets_fhir_stores_fhir_conditional_update(...).doit()
let r = hub.projects().locations_datasets_dicom_stores_studies_series_retrieve_metadata(...).doit()
let r = hub.projects().locations_datasets_fhir_stores_fhir_execute_bundle(...).doit()
let r = hub.projects().locations_datasets_fhir_stores_fhir__patient_everything(...).doit()
let r = hub.projects().locations_datasets_dicom_stores_studies_series_instances_frames_retrieve_frames(...).doit()
let r = hub.projects().locations_datasets_dicom_stores_search_for_series(...).doit()
let r = hub.projects().locations_datasets_dicom_stores_studies_retrieve_study(...).doit()
let r = hub.projects().locations_datasets_dicom_stores_studies_store_instances(...).doit()
let r = hub.projects().locations_datasets_fhir_stores_fhir_conditional_patch(...).doit()
let r = hub.projects().locations_datasets_fhir_stores_fhir_update(...).doit()
let r = hub.projects().locations_datasets_dicom_stores_studies_search_for_instances(...).doit()
let r = hub.projects().locations_datasets_dicom_stores_studies_search_for_series(...).doit()
let r = hub.projects().locations_datasets_fhir_stores_fhir__observation_lastn(...).doit()
let r = hub.projects().locations_datasets_fhir_stores_fhir_vread(...).doit()
let r = hub.projects().locations_datasets_dicom_stores_studies_series_instances_retrieve_metadata(...).doit()
let r = hub.projects().locations_datasets_dicom_stores_search_for_instances(...).doit()
let r = hub.projects().locations_datasets_dicom_stores_studies_series_instances_retrieve_instance(...).doit()
let r = hub.projects().locations_datasets_dicom_stores_studies_retrieve_metadata(...).doit()
let r = hub.projects().locations_datasets_dicom_stores_studies_series_retrieve_series(...).doit()
let r = hub.projects().locations_datasets_fhir_stores_fhir_create(...).doit()
let r = hub.projects().locations_datasets_fhir_stores_fhir_read(...).doit()
let r = hub.projects().locations_datasets_fhir_stores_fhir_capabilities(...).doit()
let r = hub.projects().locations_datasets_dicom_stores_store_instances(...).doit()

The resource() and activity(...) calls create builders. The second one dealing with Activities supports various methods to configure the impending operation (not shown here). It is made such that all required arguments have to be specified right away (i.e. (...)), whereas all optional ones can be build up as desired. The doit() method performs the actual communication with the server and returns the respective result.

Usage

Setting up your Project

To use this library, you would put the following lines into your Cargo.toml file:

[dependencies]
google-healthcare1_beta1 = "*"
# This project intentionally uses an old version of Hyper. See
# https://github.com/Byron/google-apis-rs/issues/173 for more
# information.
hyper = "^0.10"
hyper-rustls = "^0.6"
serde = "^1.0"
serde_json = "^1.0"
yup-oauth2 = "^1.0"

A complete example

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_healthcare1_beta1 as healthcare1_beta1;
use healthcare1_beta1::{Result, Error};
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use healthcare1_beta1::CloudHealthcare;
 
// Get an ApplicationSecret instance by some means. It contains the `client_id` and 
// `client_secret`, among other things.
let secret: ApplicationSecret = Default::default();
// Instantiate the authenticator. It will choose a suitable authentication flow for you, 
// unless you replace  `None` with the desired Flow.
// Provide your own `AuthenticatorDelegate` to adjust the way it operates and get feedback about 
// what's going on. You probably want to bring in your own `TokenStorage` to persist tokens and
// retrieve them from storage.
let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate,
                              hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())),
                              <MemoryStorage as Default>::default(), None);
let mut hub = CloudHealthcare::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth);
// You can configure optional parameters by calling the respective setters at will, and
// execute the final call using `doit()`.
// Values shown here are possibly random and not representative !
let result = hub.projects().locations_datasets_fhir_stores_fhir_history("name")
             ._since("kasd")
             ._page_token("accusam")
             ._count(-8)
             ._at("justo")
             .doit();
 
match result {
    Err(e) => match e {
        // The Error enum provides details about what exactly happened.
        // You can also just use its `Debug`, `Display` or `Error` traits
         Error::HttpError(_)
        |Error::MissingAPIKey
        |Error::MissingToken(_)
        |Error::Cancelled
        |Error::UploadSizeLimitExceeded(_, _)
        |Error::Failure(_)
        |Error::BadRequest(_)
        |Error::FieldClash(_)
        |Error::JsonDecodeError(_, _) => println!("{}", e),
    },
    Ok(res) => println!("Success: {:?}", res),
}

Handling Errors

All errors produced by the system are provided either as Result enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the Hub Delegate, or the Authenticator Delegate.

When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors.

Uploads and Downloads

If a method supports downloads, the response body, which is part of the Result, should be read by you to obtain the media. If such a method also supports a Response Result, it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: .param("alt", "media").

Methods supporting uploads can do so using up to 2 different protocols: simple and resumable. The distinctiveness of each is represented by customized doit(...) methods, which are then named upload(...) and upload_resumable(...) respectively.

Customization and Callbacks

You may alter the way an doit() method is called by providing a delegate to the Method Builder before making the final doit() call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure.

The delegate trait is default-implemented, allowing you to customize it with minimal effort.

Optional Parts in Server-Requests

All structures provided by this library are made to be enocodable and decodable via json. Optionals are used to indicate that partial requests are responses are valid. Most optionals are are considered Parts which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response.

Builder Arguments

Using method builders, you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true.

Arguments will always be copied or cloned into the builder, to make them independent of their original life times.

Structs

AuditConfig

Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.

AuditLogConfig

Provides the configuration for logging a type of permissions. Example:

Binding

Associates members with a role.

CancelOperationRequest

The request message for Operations.CancelOperation.

CharacterMaskConfig

Mask a string by replacing its characters with a fixed character.

Chunk
CloudHealthcare

Central instance to access all CloudHealthcare related resource activities

ContentRange

Implements the Content-Range header, for serialization only

CreateMessageRequest

Creates a new message.

CryptoHashConfig

Pseudonymization method that generates surrogates via cryptographic hashing. Uses SHA-256. Outputs a base64-encoded representation of the hashed output (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=).

Dataset

A message representing a health dataset.

DateShiftConfig

Shift a date forward or backward in time by a random amount which is consistent for a given patient and crypto key combination.

DefaultDelegate

A delegate with a conservative default implementation, which is used if no other delegate is set.

DeidentifyConfig

Configures de-id options specific to different types of content. Each submessage customizes the handling of an https://tools.ietf.org/html/rfc6838 media type or subtype. Configs are applied in a nested manner at runtime.

DeidentifyDatasetRequest

Redacts identifying information from the specified dataset.

DeidentifyDicomStoreRequest

Creates a new DICOM store with sensitive information de-identified.

DeidentifyFhirStoreRequest

Creates a new FHIR store with sensitive information de-identified.

DicomConfig

Specifies the parameters needed for de-identification of DICOM stores.

DicomFilterConfig

Specifies the filter configuration for DICOM resources.

DicomStore

Represents a DICOM store.

DummyNetworkStream
Empty

A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:

ErrorResponse

A utility to represent detailed errors we might see in case there are BadRequests. The latter happen if the sent parameters or request structures are unsound

ExportDicomDataRequest

Exports data from the specified DICOM store. If a given resource, such as a DICOM object with the same SOPInstance UID, already exists in the output, it is overwritten with the version in the source dataset. Exported DICOM data persists when the DICOM store from which it was exported is deleted.

ExportResourcesRequest

Request to export resources.

Expr

Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.

FhirConfig

Specifies how to handle de-identification of a FHIR store.

FhirFilter

Filter configuration.

FhirStore

Represents a FHIR store.

Field

A (sub) field of a type.

FieldMetadata

Specifies FHIR paths to match, and how to handle de-identification of matching fields.

GoogleCloudHealthcareV1beta1DicomGcsDestination

The Cloud Storage location where the server writes the output and the export configuration.

GoogleCloudHealthcareV1beta1DicomBigQueryDestination

The BigQuery table where the server writes the output.

GoogleCloudHealthcareV1beta1FhirRestGcsDestination

The configuration for exporting to Cloud Storage.

GoogleCloudHealthcareV1beta1DicomGcsSource

Specifies the configuration for importing data from Cloud Storage.

GoogleCloudHealthcareV1beta1FhirBigQueryDestination

The configuration for exporting to BigQuery.

GoogleCloudHealthcareV1beta1FhirRestGcsSource

Specifies the configuration for importing data from Cloud Storage.

GroupOrSegment

Construct representing a logical group or a segment.

Hl7TypesConfig

Root config for HL7v2 datatype definitions for a specific HL7v2 version.

Hl7SchemaConfig

Root config message for HL7v2 schema. This contains a schema structure of groups and segments, and filters that determine which messages to apply the schema structure to.

Hl7V2NotificationConfig

Specifies where and whether to send notifications upon changes to a data store.

Hl7V2Store

Represents an HL7v2 store.

HttpBody

Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page.

ImageConfig

Specifies how to handle de-identification of image pixels.

ImportDicomDataRequest

Imports data into the specified DICOM store. Returns an error if any of the files to import are not DICOM files. This API accepts duplicate DICOM instances by ignoring the newly-pushed instance. It does not overwrite.

ImportResourcesRequest

Request to import resources.

InfoTypeTransformation

A transformation to apply to text that is identified as a specific info_type.

IngestMessageRequest

Ingests a message into the specified HL7v2 store.

IngestMessageResponse

Acknowledges that a message has been ingested into the specified HL7v2 store.

JsonServerError

A utility type which can decode a server response that indicates error

ListDatasetsResponse

Lists the available datasets.

ListDicomStoresResponse

Lists the DICOM stores in the given dataset.

ListFhirStoresResponse

Lists the FHIR stores in the given dataset.

ListHl7V2StoresResponse

Lists the HL7v2 stores in the given dataset.

ListLocationsResponse

The response message for Locations.ListLocations.

ListMessagesResponse

Lists the messages in the specified HL7v2 store.

ListOperationsResponse

The response message for Operations.ListOperations.

Location

A resource that represents Google Cloud Platform location.

Message

A complete HL7v2 message. See http://www.hl7.org/implement/standards/index.cfm?ref=common for details on the standard.

MethodInfo

Contains information about an API request.

MultiPartReader

Provides a Read interface that converts multiple parts into the protocol identified by RFC2387. Note: This implementation is just as rich as it needs to be to perform uploads to google APIs, and might not be a fully-featured implementation.

NotificationConfig

Specifies where to send notifications upon changes to a data store.

Operation

This resource represents a long-running operation that is the result of a network API call.

ParsedData

The content of an HL7v2 message in a structured format.

ParserConfig

The configuration for the parser. It determines how the server parses the messages.

PatientId

A patient identifier and associated type.

Policy

An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.

ProjectLocationDatasetAnnotationStoreGetIamPolicyCall

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

ProjectLocationDatasetAnnotationStoreSetIamPolicyCall

Sets the access control policy on the specified resource. Replaces any existing policy.

ProjectLocationDatasetAnnotationStoreTestIamPermissionCall

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

ProjectLocationDatasetCreateCall

Creates a new health dataset. Results are returned through the Operation interface which returns either an Operation.response which contains a Dataset or Operation.error. The metadata field type is OperationMetadata. A Google Cloud Platform project can contain up to 500 datasets across all regions.

ProjectLocationDatasetDeidentifyCall

Creates a new dataset containing de-identified data from the source dataset. The metadata field type is OperationMetadata. If the request is successful, the response field type is DeidentifySummary. If errors occur, error details field type is DeidentifyErrorDetails. The LRO result may still be successful if de-identification fails for some DICOM instances. The new de-identified dataset will not contain these failed resources. Failed resource totals are tracked in DeidentifySummary.failure_resource_count. Error details are also logged to Stackdriver Logging. For more information, see Viewing logs.

ProjectLocationDatasetDeleteCall

Deletes the specified health dataset and all data contained in the dataset. Deleting a dataset does not affect the sources from which the dataset was imported (if any).

ProjectLocationDatasetDicomStoreCreateCall

Creates a new DICOM store within the parent dataset.

ProjectLocationDatasetDicomStoreDeidentifyCall

De-identifies data from the source store and writes it to the destination store. The metadata field type is OperationMetadata. If the request is successful, the response field type is DeidentifyDicomStoreSummary. If errors occur, error details field type is DeidentifyErrorDetails. The LRO result may still be successful if de-identification fails for some DICOM instances. The output DICOM store will not contain these failed resources. Failed resource totals are tracked in DeidentifySummary.failure_resource_count. Error details are also logged to Stackdriver (see Viewing logs).

ProjectLocationDatasetDicomStoreDeleteCall

Deletes the specified DICOM store and removes all images that are contained within it.

ProjectLocationDatasetDicomStoreExportCall

Exports data to the specified destination by copying it from the DICOM store. Errors are also logged to Stackdriver Logging. For more information, see Viewing logs. The metadata field type is OperationMetadata.

ProjectLocationDatasetDicomStoreGetCall

Gets the specified DICOM store.

ProjectLocationDatasetDicomStoreGetIamPolicyCall

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

ProjectLocationDatasetDicomStoreImportCall

Imports data into the DICOM store by copying it from the specified source. For errors, the Operation is populated with error details (in the form of ImportDicomDataErrorDetails in error.details), which hold finer-grained error information. Errors are also logged to Stackdriver Logging. For more information, see Viewing logs. The metadata field type is OperationMetadata.

ProjectLocationDatasetDicomStoreListCall

Lists the DICOM stores in the given dataset.

ProjectLocationDatasetDicomStorePatchCall

Updates the specified DICOM store.

ProjectLocationDatasetDicomStoreSearchForInstanceCall

SearchForInstances returns a list of matching instances. See http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.

ProjectLocationDatasetDicomStoreSearchForSeryCall

SearchForSeries returns a list of matching series. See http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.

ProjectLocationDatasetDicomStoreSearchForStudyCall

SearchForStudies returns a list of matching studies. See http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.

ProjectLocationDatasetDicomStoreSetIamPolicyCall

Sets the access control policy on the specified resource. Replaces any existing policy.

ProjectLocationDatasetDicomStoreStoreInstanceCall

StoreInstances stores DICOM instances associated with study instance unique identifiers (SUID). See http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.5.

ProjectLocationDatasetDicomStoreStudyDeleteCall

DeleteStudy deletes all instances within the given study. Delete requests are equivalent to the GET requests specified in the Retrieve transaction.

ProjectLocationDatasetDicomStoreStudyRetrieveMetadataCall

RetrieveStudyMetadata returns instance associated with the given study presented as metadata with the bulk data removed. See http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.

ProjectLocationDatasetDicomStoreStudyRetrieveStudyCall

RetrieveStudy returns all instances within the given study. See http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.

ProjectLocationDatasetDicomStoreStudySearchForInstanceCall

SearchForInstances returns a list of matching instances. See http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.

ProjectLocationDatasetDicomStoreStudySearchForSeryCall

SearchForSeries returns a list of matching series. See http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.

ProjectLocationDatasetDicomStoreStudySeryDeleteCall

DeleteSeries deletes all instances within the given study and series. Delete requests are equivalent to the GET requests specified in the Retrieve transaction.

ProjectLocationDatasetDicomStoreStudySeryInstanceDeleteCall

DeleteInstance deletes an instance associated with the given study, series, and SOP Instance UID. Delete requests are equivalent to the GET requests specified in the Retrieve transaction.

ProjectLocationDatasetDicomStoreStudySeryInstanceFrameRetrieveFrameCall

RetrieveFrames returns instances associated with the given study, series, SOP Instance UID and frame numbers. See http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.

ProjectLocationDatasetDicomStoreStudySeryInstanceFrameRetrieveRenderedCall

RetrieveRenderedFrames returns instances associated with the given study, series, SOP Instance UID and frame numbers in an acceptable Rendered Media Type. See http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.

ProjectLocationDatasetDicomStoreStudySeryInstanceRetrieveInstanceCall

RetrieveInstance returns instance associated with the given study, series, and SOP Instance UID. See http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.

ProjectLocationDatasetDicomStoreStudySeryInstanceRetrieveMetadataCall

RetrieveInstanceMetadata returns instance associated with the given study, series, and SOP Instance UID presented as metadata with the bulk data removed. See http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.

ProjectLocationDatasetDicomStoreStudySeryInstanceRetrieveRenderedCall

RetrieveRenderedInstance returns instance associated with the given study, series, and SOP Instance UID in an acceptable Rendered Media Type. See http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.

ProjectLocationDatasetDicomStoreStudySeryRetrieveMetadataCall

RetrieveSeriesMetadata returns instance associated with the given study and series, presented as metadata with the bulk data removed. See http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.

ProjectLocationDatasetDicomStoreStudySeryRetrieveSeryCall

RetrieveSeries returns all instances within the given study and series. See http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.

ProjectLocationDatasetDicomStoreStudySerySearchForInstanceCall

SearchForInstances returns a list of matching instances. See http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.

ProjectLocationDatasetDicomStoreStudyStoreInstanceCall

StoreInstances stores DICOM instances associated with study instance unique identifiers (SUID). See http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.5.

ProjectLocationDatasetDicomStoreTestIamPermissionCall

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

ProjectLocationDatasetFhirStoreCreateCall

Creates a new FHIR store within the parent dataset.

ProjectLocationDatasetFhirStoreDeidentifyCall

De-identifies data from the source store and writes it to the destination store. The metadata field type is OperationMetadata. If the request is successful, the response field type is DeidentifyFhirStoreSummary. If errors occur, error details field type is DeidentifyErrorDetails. Errors are also logged to Stackdriver (see Viewing logs).

ProjectLocationDatasetFhirStoreDeleteCall

Deletes the specified FHIR store and removes all resources within it.

ProjectLocationDatasetFhirStoreExportCall

Export resources from the FHIR store to the specified destination.

ProjectLocationDatasetFhirStoreFhirCapabilityCall

Gets the FHIR capability statement (STU3, R4), or the conformance statement in the DSTU2 case for the store, which contains a description of functionality supported by the server.

ProjectLocationDatasetFhirStoreFhirConditionalDeleteCall

Deletes FHIR resources that match a search query.

ProjectLocationDatasetFhirStoreFhirConditionalPatchCall

If a resource is found based on the search criteria specified in the query parameters, updates part of that resource by applying the operations specified in a JSON Patch document.

ProjectLocationDatasetFhirStoreFhirConditionalUpdateCall

If a resource is found based on the search criteria specified in the query parameters, updates the entire contents of that resource.

ProjectLocationDatasetFhirStoreFhirCreateCall

Creates a FHIR resource.

ProjectLocationDatasetFhirStoreFhirDeleteCall

Deletes a FHIR resource.

ProjectLocationDatasetFhirStoreFhirExecuteBundleCall

Executes all the requests in the given Bundle.

ProjectLocationDatasetFhirStoreFhirHistoryCall

Lists all the versions of a resource (including the current version and deleted versions) from the FHIR store.

ProjectLocationDatasetFhirStoreFhirObservationLastnCall

Retrieves the N most recent Observation resources for a subject matching search criteria specified as query parameters, grouped by Observation.code, sorted from most recent to oldest.

ProjectLocationDatasetFhirStoreFhirPatchCall

Updates part of an existing resource by applying the operations specified in a JSON Patch document.

ProjectLocationDatasetFhirStoreFhirPatientEverythingCall

On success, the response body will contain a JSON-encoded representation of a Bundle resource of type searchset, containing the results of the operation. Errors generated by the FHIR store will contain a JSON-encoded OperationOutcome resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead.

ProjectLocationDatasetFhirStoreFhirReadCall

Gets the contents of a FHIR resource.

ProjectLocationDatasetFhirStoreFhirResourcePurgeCall

Deletes all the historical versions of a resource (excluding the current version) from the FHIR store. To remove all versions of a resource, first delete the current version and then call this method.

ProjectLocationDatasetFhirStoreFhirSearchCall

Searches for resources in the given FHIR store according to criteria specified as query parameters.

ProjectLocationDatasetFhirStoreFhirUpdateCall

Updates the entire contents of a resource.

ProjectLocationDatasetFhirStoreFhirVreadCall

Gets the contents of a version (current or historical) of a FHIR resource by version ID.

ProjectLocationDatasetFhirStoreGetCall

Gets the configuration of the specified FHIR store.

ProjectLocationDatasetFhirStoreGetIamPolicyCall

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

ProjectLocationDatasetFhirStoreImportCall

Import resources to the FHIR store by loading data from the specified sources. This method is optimized to load large quantities of data using import semantics that ignore some FHIR store configuration options and are not suitable for all use cases. It is primarily intended to load data into an empty FHIR store that is not being used by other clients. In cases where this method is not appropriate, consider using ExecuteBundle to load data.

ProjectLocationDatasetFhirStoreListCall

Lists the FHIR stores in the given dataset.

ProjectLocationDatasetFhirStorePatchCall

Updates the configuration of the specified FHIR store.

ProjectLocationDatasetFhirStoreSearchCall

Searches for resources in the given FHIR store according to criteria specified as query parameters.

ProjectLocationDatasetFhirStoreSetIamPolicyCall

Sets the access control policy on the specified resource. Replaces any existing policy.

ProjectLocationDatasetFhirStoreTestIamPermissionCall

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

ProjectLocationDatasetGetCall

Gets any metadata associated with a dataset.

ProjectLocationDatasetGetIamPolicyCall

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

ProjectLocationDatasetHl7V2StoreMessageDeleteCall

Deletes an HL7v2 message.

ProjectLocationDatasetHl7V2StoreMessagePatchCall

Update the message.

ProjectLocationDatasetHl7V2StoreMessageCreateCall

Creates a message and sends a notification to the Cloud Pub/Sub topic. If configured, the MLLP adapter listens to messages created by this method and sends those back to the hospital. A successful response indicates the message has been persisted to storage and a Cloud Pub/Sub notification has been sent. Sending to the hospital by the MLLP adapter happens asynchronously.

ProjectLocationDatasetHl7V2StoreMessageIngestCall

Ingests a new HL7v2 message from the hospital and sends a notification to the Cloud Pub/Sub topic. Return is an HL7v2 ACK message if the message was successfully stored. Otherwise an error is returned.

ProjectLocationDatasetHl7V2StoreCreateCall

Creates a new HL7v2 store within the parent dataset.

ProjectLocationDatasetHl7V2StoreMessageListCall

Lists all the messages in the given HL7v2 store with support for filtering.

ProjectLocationDatasetHl7V2StoreGetCall

Gets the specified HL7v2 store.

ProjectLocationDatasetHl7V2StorePatchCall

Updates the HL7v2 store.

ProjectLocationDatasetHl7V2StoreListCall

Lists the HL7v2 stores in the given dataset.

ProjectLocationDatasetHl7V2StoreMessageGetCall

Gets an HL7v2 message.

ProjectLocationDatasetHl7V2StoreDeleteCall

Deletes the specified HL7v2 store and removes all messages that are contained within it.

ProjectLocationDatasetHl7V2StoreSetIamPolicyCall

Sets the access control policy on the specified resource. Replaces any existing policy.

ProjectLocationDatasetHl7V2StoreTestIamPermissionCall

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

ProjectLocationDatasetHl7V2StoreGetIamPolicyCall

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

ProjectLocationDatasetListCall

Lists the health datasets in the current project.

ProjectLocationDatasetOperationCancelCall

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.

ProjectLocationDatasetOperationGetCall

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

ProjectLocationDatasetOperationListCall

Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.

ProjectLocationDatasetPatchCall

Updates dataset metadata.

ProjectLocationDatasetSetIamPolicyCall

Sets the access control policy on the specified resource. Replaces any existing policy.

ProjectLocationDatasetTestIamPermissionCall

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

ProjectLocationGetCall

Gets information about a location.

ProjectLocationListCall

Lists information about the supported locations for this service.

ProjectMethods

A builder providing access to all methods supported on project resources. It is not used directly, but through the CloudHealthcare hub.

RangeResponseHeader
RedactConfig

Define how to redact sensitive values. Default behaviour is erase. For example, "My name is Jane." becomes "My name is ."

ReplaceWithInfoTypeConfig

When using the INSPECT_AND_TRANSFORM action, each match is replaced with the name of the info_type. For example, "My name is Jane" becomes "My name is [PERSON_NAME]." The TRANSFORM action is equivalent to redacting.

Resources

A list of FHIR resources.

ResumableUploadHelper

A utility type to perform a resumable upload from start to end.

SchemaConfig

Configuration for the FHIR BigQuery schema. Determines how the server generates the schema.

SchemaGroup

An HL7v2 logical group construct.

SchemaPackage

A schema package contains a set of schemas and type definitions.

SchemaSegment

An HL7v2 Segment.

SchematizedData

The content of an HL7v2 message in a structured format as specified by a schema.

SearchResourcesRequest

Request to search the resources in the specified FHIR store.

Segment

A segment in a structured format.

ServerError
ServerMessage
SetIamPolicyRequest

Request message for SetIamPolicy method.

Status

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details.

StreamConfig

This structure contains configuration for streaming FHIR export.

TagFilterList

List of tags to be filtered.

TestIamPermissionsRequest

Request message for TestIamPermissions method.

TestIamPermissionsResponse

Response message for TestIamPermissions method.

TextConfig

There is no detailed description.

Type

A type definition for some HL7v2 type (incl. Segments and Datatypes).

VersionSource

Describes a selector for extracting and matching an MSH field to a value.

XUploadContentType

The X-Upload-Content-Type header.

Enums

Error
Scope

Identifies the an OAuth2 authorization scope. A scope is needed when requesting an authorization token.

Traits

CallBuilder

Identifies types which represent builders for a particular resource method

Delegate

A trait specifying functionality to help controlling any request performed by the API. The trait has a conservative default implementation.

Hub

Identifies the Hub. There is only one per library, this trait is supposed to make intended use more explicit. The hub allows to access all resource methods more easily.

MethodsBuilder

Identifies types for building methods of a particular resource type

NestedType

Identifies types which are only used by other types internally. They have no special meaning, this trait just marks them for completeness.

Part

Identifies types which are only used as part of other types, which usually are carrying the Resource trait.

ReadSeek

A utility to specify reader types which provide seeking capabilities too

RequestValue

Identifies types which are used in API requests.

Resource

Identifies types which can be inserted and deleted. Types with this trait are most commonly used by clients of this API.

ResponseResult

Identifies types which are used in API responses.

ToParts

A trait for all types that can convert themselves into a parts string

UnusedType

Identifies types which are not actually used by the API This might be a bug within the google API schema.

Functions

remove_json_null_values

Type Definitions

Result

A universal result type used as return for all calls.