Create Healthcare Dataset and Data Store

Check my progress

/ 30

Data creation

Check my progress

/ 30

Exporting data to BigQuery

Check my progress

/ 40

This lab may incorporate AI tools to support your learning.
This content is not yet optimized for mobile devices.
For the best experience, please visit us on a desktop computer using a link sent by email.

GSP457

Google Cloud self-paced labs

Overview

The Cloud Healthcare API provides a managed solution for storing and accessing healthcare data in Google Cloud, providing a critical bridge between existing care systems and applications hosted on Google Cloud. Using the API, you can unlock significant new capabilities for data analysis, machine learning, and application development, and use these capabilities to build the next generation of healthcare solutions.

In this lab, you discover and use the basic functionality of the Cloud Healthcare API using the Fast Healthcare Interoperability Resources (FHIR) data model, export data to BigQuery, and access data in BigQuery using SQL.

What you'll learn

In this lab, you learn how to perform the following tasks:

  • Create Cloud Healthcare API datasets and FHIR data stores.
  • Import and de-identify FHIR data using the Cloud Healthcare API.
  • Export FHIR data from the Cloud Healthcare API to BigQuery using bulk and streaming export.
  • Query FHIR data in BigQuery using SQL.

Healthcare API introduction

Cloud Healthcare API provides a managed solution for storing and accessing healthcare data in Google Cloud, providing a critical bridge between existing care systems and applications hosted on Google Cloud. Using the API, you can unlock significant new capabilities for data analysis, machine learning and application development, and use these capabilities to build the next generation of healthcare solutions.

The API is comprised of three modality-specific interfaces that implement key industry-wide standards for healthcare data:

  • FHIR, an emerging standard for health data interchange
  • HL7v2, the most widely adopted method for health systems integration
  • DICOM, the dominant standard for radiology and imaging-related disciplines

Each interface is backed by a standards-compliant data store that provides read, write, search, and other operations on the data.

The Cloud Healthcare API provides a number of key features that are critical to bridging current technologies to the next generation of healthcare systems and applications:

  • Standards conformance - Google supports the use of standards-based interoperability through its participation in a number of healthcare standards bodies. In the Cloud Healthcare API each modality-specific data store and its associated API is substantially conformant with its relevant standard. For example, FHIR stores implement STU3, the current version of the FHIR specification, and DICOM stores implement DICOMweb, a web-based standard for exchanging medical images. In future updates, we expect to support additional versions of these specifications as well as the ability to request a resource in a different version than its canonical representation.
  • Compliance with privacy regulations - Google Cloud provides detailed guidance regarding how it supports compliance with HIPAA in the US, the PIPEDA in Canada, and other global privacy standards at cloud.google.com/security/compliance.
  • Data location control - The Cloud Healthcare API treats data location as a core component of the API. You have the option to select the storage location for each dataset from a list of currently available locations which correspond to distinct geographic areas aligned with Google Cloud's regional structure. Future Google Cloud regions will allow for the distribution of storage across wider geographic areas.
  • Security - The Cloud Healthcare API security model is based on Google's proven Identity and Access Management (IAM) system. IAM's fine-grained permissions give you complete control over access to your healthcare data. In addition, we've created open-source proxies for our powerful Apigee API Management system, which provides comprehensive threat detection and traffic management capabilities that allow you to securely expose sensitive ePHI with patient and provider applications.
  • Bulk import and export - The Cloud Healthcare API's DICOM and FHIR modalities support bulk import and export of data, making it easier to transfer data via the Cloud Storage system.
  • De-identification - De-identification support for DICOM is available, making it much easier to redact patient information from studies for research and other purposes. The de-identification process operates on a data store basis.
  • Auditability - Both administrative and data access requests to the Cloud Healthcare API can be audited. Logs are available through Google Cloud Observability hybrid monitoring system.
  • High availability - Availability for mission-critical scenarios is made possible through Google Cloud's robust and highly redundant infrastructure.

For many applications, the Cloud Healthcare API can provide a modern alternative to legacy stacks implementing DICOM, HL7v2 or FHIR STU3 standards, simplifying data integration with existing systems and enabling the application developers to focus on their differentiating features such as UX and intelligence.

Healthcare API concepts

To get the most out of the Cloud Healthcare API, there are a few key concepts you'll want to understand. The information below should give you a good sense of Cloud Healthcare API capabilities, but you can find more details in the Cloud Healthcare API documentation.

General structure of the Cloud Healthcare API

The Cloud Healthcare API exposes interfaces that enable you to perform different types of functions:

  • Administrative functions, such as creating or listing datasets and stores that will contain your data.
  • Data access functions that allow you to create, update, delete and search the data stored in Cloud Healthcare API, or to perform bulk import and export operations.
  • Security functions that allow you to impose access controls on data stored in Cloud Healthcare API.
  • De-identification functions that allow you to replace ePHI with anonymized data, or to obfuscate ePHI so that it cannot be used.
  • Metadata functions, such as retrieval of a FHIR capabilities statement for the FHIR API.

These functions may vary slightly depending on the modality of data (FHIR, HL7 v2 or DICOM) being operated on. For example, data retrieval operations against an FHIR data store use an API that conforms to the FHIR standard, but data retrieval operations against an HL7 v2 store use operations better suited to operating on HL7v2-structured data.

Datasets and stores

All Cloud Healthcare API usage occurs within the context of a Google Cloud project. Projects form the basis for creating, enabling, and using all Google Cloud services including managing APIs, enabling billing, adding and removing collaborators, and managing permissions for Google Cloud resources. Cloud Healthcare API can be used in one or many Google Cloud projects, as appropriate; this flexibility allows you to separate production from non-production usage, for example, or to segregate applications and resources in order to better manage access or accommodate different development lifecycles.

Within a project, data ingested through Cloud Healthcare API is stored in a dataset, which resides in a geographic location corresponding to a specific Google Cloud region. You use the Cloud Healthcare API's administrative functions to create a dataset in a particular location; doing so facilitates implementation of data location requirements for the countries in which your applications provide services. For example, you can choose to create a dataset in Google Cloud's "us-central1" region for US-based applications, or in an EU or UK region for applications serving those customers. This level of location control is also available in other Google Cloud products, which can be combined with Cloud Healthcare API to create a complete application architecture. A list of generally available Google Cloud products and the regions in which they are implemented can be found on Google Cloud, Cloud locations.

Because each healthcare data modality has different structural and processing characteristics, datasets are split into modality-specific stores. A single dataset can contain one or many stores, and those stores can all service the same modality or different modalities as application needs dictate. Using multiple stores in the same dataset might be appropriate if a given application processes different types of data, for example, or if you'd like to be able to separate data according to its source hospital, clinic, department, etc. An application can access as many datasets or stores as its requirements dictate with no performance penalty, so it's important to design your overall dataset and store architecture to meet the organization's broad goals for locality, partitioning, access control, and so on.

The diagram below illustrates two datasets in a Google Cloud project, each of which contains multiple stores.

Cloud Healthcare API data model page

There are many ways to structure datasets and stores. As you design systems that use the Cloud Healthcare API, you may want to take the following into consideration:

  • Security and access control: Rules can be defined at both a dataset and store level, but you may choose to group all data for a particular application into the same dataset, and set access control rules such that only that application can access the dataset.
  • Application requirements: An application processing different types of data may have all of its data for all modalities in a single dataset.
  • Source systems: Often, the structure of healthcare data can vary according to the source system and modality. Separating data for different source systems into their own datasets may facilitate processing.
  • Intended use: Data from different systems can have different intended uses, such as research, analytics, or machine learning predictions. Grouping data by intended use may facilitate ingestion into the target system.
  • Separating ePHI from de-identified data: Cloud Healthcare API data de-identification functions read from a source dataset and write the output into a new dataset that you specify. If you are preparing data to be used by researchers, for example, this approach to de-identifying data may be a consideration in how you use datasets to segregate data.

MLLP Adapter

The minimal lower layer protocol (MLLP) is the standard used for transmitting HL7v2 messages over TCP/IP connections within a network, such as a hospital.

MLLP does not offer an exact mapping to the Cloud Healthcare API HL7v2 REST API], which uses HTTP. Therefore, an MLLP adapter must be used to convert messages transmitted over MLLP into a format that an HTTP/REST API can accept. To transmit messages over MLLP and then to the Cloud Healthcare API, use the Google Cloud MLLP adapter.

There are many ways to structure datasets and stores. As you design systems that use the Cloud Healthcare API, you may want to take the following into consideration:

  • Security and access control: Rules can be defined at both a dataset and store level, but you may choose to group all data for a particular application into the same dataset, and set access control rules such that only that application can access the dataset.

  • Application requirements: An application processing different types of data may have all of its data for all modalities in a single dataset.

  • Source systems: Often, the structure of healthcare data can vary according to the source system and modality. Separating data for different source systems into their own datasets may facilitate processing.

  • Intended use: Data from different systems can have different intended uses, such as research, analytics, or machine learning predictions. Grouping data by intended use may facilitate ingestion into the target system.

  • Separating ePHI from de-identified data: Cloud Healthcare API data de-identification functions read from a source dataset and write the output into a new dataset that you specify. If you are preparing data to be used by researchers, for example, this approach to de-identifying data may be a consideration in how you use datasets to segregate data.

API structure

Data in the Cloud Healthcare API datasets and stores can be accessed and managed using a REST API that identifies each store using its project, location, dataset, store type, and store name. This API implements modality-specific standards for access that are consistent with industry standards for that modality. For example, the Cloud Healthcare DICOM API natively provides operations for reading DICOM studies and series that are consistent with the DICOMweb standard, and supports the DICOM DIMSE C-STORE protocol via an open-source adapter. Similarly, the FHIR API provides operations for accessing or searching FHIR entity types that are based on the FHIR standard, and the HL7v2 API provides operations for reading and searching HL7v2 messages based on HL7v2 message or segment criteria.

Operations that access a modality-specific store use a request path that is comprised of two pieces: a base path, and a modality-specific request path. Administrative operations—which generally operate only on locations, datasets, and stores—may only use the base path, but data modality-specific retrieval operations use both the base path (for identifying the store to be accessed) and request path (for identifying the actual data to be retrieved).

To reference a particular store within a Cloud Healthcare API dataset, you would use a base path structured like this:

/projects/<PROJECT>/locations/<LOCATION>/datasets/<DATASET>/<STORE-TYPE>/<STORE-NAME>

A concrete base path example might look like this:

/projects/myProj/locations//datasets/central-ds1/hl7V2Stores/clinical-store1

which references a Cloud Healthcare HL7 v2 store in the Google Cloud project "myProj", in the "" region, in a dataset called "central-ds1", and with a name of "clinical-store1". This is an HL7 v2 store because of the "hl7V2Stores" type; if you want to access a FHIR store in the same dataset you can use the "fhirStores" type, and if the store contains DICOM data, you can use the "dicomStores" type.

To access a specific piece of data, the base path is used in combination with a request path that is formatted according to the appropriate modality standard. For example, a request to read a specific FHIR "Patient" entity using the entity ID might look like this:

<basePath>/resources/Patient/{patient_id}

with /Patient/{patient_id} being a path—structured according to the FHIR standard—for the Patient resource whose identifier is specified by {patient_id}. Similarly, DICOMweb requests to a DICOM store might look like this:

<basePath>/dicomWeb/studies/{study_id}/series?PatientName={patient_name}

where {study_id} identifies a particular DICOM study, and the patient's name is specified by {patient_name}. In this example, the path specification is consistent with the DICOMweb standard path structure.

Setup and requirements

Before you click the Start Lab button

Read these instructions. Labs are timed and you cannot pause them. The timer, which starts when you click Start Lab, shows how long Google Cloud resources are made available to you.

This hands-on lab lets you do the lab activities in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials you use to sign in and access Google Cloud for the duration of the lab.

To complete this lab, you need:

  • Access to a standard internet browser (Chrome browser recommended).
Note: Use an Incognito (recommended) or private browser window to run this lab. This prevents conflicts between your personal account and the student account, which may cause extra charges incurred to your personal account.
  • Time to complete the lab—remember, once you start, you cannot pause a lab.
Note: Use only the student account for this lab. If you use a different Google Cloud account, you may incur charges to that account.

How to start your lab and sign in to the Google Cloud console

  1. Click the Start Lab button. If you need to pay for the lab, a dialog opens for you to select your payment method. On the right is the Lab setup and access panel with the following:

    • The Open Google Cloud console button
    • The temporary credentials (username and password) that you must use for this lab
    • Other information, if needed, to step through this lab

    Note that the lab timer is located near the top of the page, showing the remaining time.

  2. Click Open Google Cloud console (or right-click and select Open Link in Incognito Window if you are running the Chrome browser).

    The lab spins up resources, and then opens another tab that shows the Sign in page.

    Tip: Arrange the tabs in separate windows, side-by-side.

    Note: If you see the Choose an account dialog, click Use Another Account.
  3. If necessary, copy the Username below and paste it into the Sign in dialog.

    {{{user_0.username | "Username"}}}

    You can also find the Username in the Lab setup and access panel.

  4. Click Next.

  5. Copy the Password below and paste it into the Welcome dialog.

    {{{user_0.password | "Password"}}}

    You can also find the Password in the Lab setup and access panel.

  6. Click Next.

    Important: You must use the credentials the lab provides you. Do not use your Google Cloud account credentials. Note: Using your own Google Cloud account for this lab may incur extra charges.
  7. Click through the subsequent pages:

    • Accept the terms and conditions.
    • Do not add recovery options or two-factor authentication (because this is a temporary account).
    • Do not sign up for free trials.

After a few moments, the Google Cloud console opens in this tab.

Note: To access Google Cloud products and services, click the Navigation menu or type the service or product name in the Search field. Navigation menu icon and Search field

Activate Cloud Shell

Cloud Shell is a virtual machine that is loaded with development tools. It offers a persistent 5GB home directory and runs on the Google Cloud. Cloud Shell provides command-line access to your Google Cloud resources.

  1. Click Activate Cloud Shell Activate Cloud Shell icon at the top of the Google Cloud console.

  2. Click through the following windows:

    • Continue through the Cloud Shell information window.
    • Authorize Cloud Shell to use your credentials to make Google Cloud API calls.

When you are connected, you are already authenticated, and the project is set to your Project_ID, . The output contains a line that declares the Project_ID for this session:

Your Cloud Platform project in this session is set to {{{project_0.project_id | "PROJECT_ID"}}}

gcloud is the command-line tool for Google Cloud. It comes pre-installed on Cloud Shell and supports tab-completion.

  1. (Optional) You can list the active account name with this command:
gcloud auth list
  1. Click Authorize.

Output:

ACTIVE: * ACCOUNT: {{{user_0.username | "ACCOUNT"}}} To set the active account, run: $ gcloud config set account `ACCOUNT`
  1. (Optional) You can list the project ID with this command:
gcloud config list project

Output:

[core] project = {{{project_0.project_id | "PROJECT_ID"}}} Note: For full documentation of gcloud, in Google Cloud, refer to the gcloud CLI overview guide.

Task 1. Define the variables needed

  • In Cloud Shell, run the following command to set the variables needed for this lab:
export PROJECT_ID=$(gcloud config list --format 'value(core.project)') export PROJECT_NUMBER=$(gcloud projects list --filter=projectId:$PROJECT_ID \ --format="value(projectNumber)") export LOCATION={{{project_0.default_region|REGION}}} export DATASET_ID=dataset1 export FHIR_STORE_ID=fhirstore1 export TOPIC=fhir-topic export HL7_STORE_ID=hl7v2store1

Task 2. Enable the Healthcare API

  1. In the Google Cloud console, on the Navigation menu (Navigation menu icon), click View all products, and then under Analytics, click Healthcare.

  2. Click Enable.

Note: If you do not see the Enable button, use the search bar to search for Healthcare, and then select Healthcare from the results.

Task 3. Create BigQuery datasets

  1. In Cloud Shell, run the following command to create a dataset in BigQuery:
bq --location={{{project_0.default_region|REGION}}} mk --dataset --description HCAPI-dataset $PROJECT_ID:$DATASET_ID

You see a success message:

Dataset '{project_id}:{dataset_id}' successfully created.
  1. Run the following command to create a second dataset in BigQuery:
bq --location={{{project_0.default_region|REGION}}} mk --dataset --description HCAPI-dataset-de-id $PROJECT_ID:de_id

Output:

Dataset '{project_id}:de_id' successfully created.
  1. Run the following commands to set up the BigQuery permissions for the Cloud Healthcare API to enable exporting data from the FHIR store to BigQuery:
gcloud projects add-iam-policy-binding $PROJECT_ID \ --member=serviceAccount:service-$PROJECT_NUMBER@gcp-sa-healthcare.iam.gserviceaccount.com \ --role=roles/bigquery.dataEditor \ --condition=None gcloud projects add-iam-policy-binding $PROJECT_ID \ --member=serviceAccount:service-$PROJECT_NUMBER@gcp-sa-healthcare.iam.gserviceaccount.com \ --role=roles/bigquery.jobUser \ --condition=None

Task 4. Create a Cloud Healthcare API dataset

  • In Cloud Shell, run the following command to create a dataset for the Cloud Healthcare API data stores:
gcloud healthcare datasets create $DATASET_ID \ --location=$LOCATION

Task 5. Create FHIR data stores

  1. In the Google Cloud console, on the Healthcare Browser page, click Refresh.

  2. Click dataset1.

  3. Click Create data store.

  4. For Type, select FHIR.

  5. For ID, enter fhirstore1.

  6. Click Next.

  1. In the Configure your FHIR store section, select R4.

  2. Click Next.

  3. In the Stream resource changes to BigQuery section, leave the remaining settings as their defaults, and then click Next.

  4. In the Receive Cloud Pub/Sub notifications section, click Add a Cloud Pub/Sub topic, click Select a Cloud Pub/Sub topic, and then click Create a topic.

  5. For Topic ID, enter fhir-topic, and then click Create.

  6. Click Create.

Your first FHIR store is now created.

  1. To create a second data store, click Create data store.

  2. For Type, select FHIR.

  3. For ID, enter de_id.

  4. Click Next.

  5. In the Configure your FHIR store section, select R4.

  6. Click Create.

Your second FHIR store is now created, and you see the two FHIR stores listed on the Data stores view.

Click Check my progress to verify the objective.

Create Healthcare Dataset and Data Store

Task 6. Import, de-identify, and export FHIR data

Import data into the FHIR data store

Now you import sample data into the FHIR stores and export it to BigQuery.

  1. In Cloud Shell, run the following command to load the sample FHIR data from an existing Cloud Storage bucket into your FHIR store:
gcloud healthcare fhir-stores import gcs $FHIR_STORE_ID \ --dataset=$DATASET_ID \ --location=$LOCATION \ --gcs-uri=gs://spls/gsp457/fhir_devdays_gcp/fhir1/* \ --content-structure=BUNDLE_PRETTY

This may take a couple of minutes to complete.

  1. In the Google Cloud console, click the Operations tab to monitor the process.

The CreateDataset was a success and the ImportResources1 may still be running. Wait until the operation has been completed before moving on.

  1. Click the Data stores tab to view the data stores again.

Bulk export FHIR data to BigQuery

  1. In Cloud Shell, run the following command to bulk export the FHIR data in fhirstore1 to the first BigQuery dataset created:
gcloud healthcare fhir-stores export bq $FHIR_STORE_ID \ --dataset=$DATASET_ID \ --location=$LOCATION \ --bq-dataset=bq://$PROJECT_ID.$DATASET_ID \ --schema-type=analytics

This may take a couple of minutes to complete.

  1. Click the Operations tab in the Google Cloud console to view the progress.

  2. After the operation completes, click the Data stores tab to view the data stores again.

De-identify FHIR data

  1. On the row for fhirstore1, click Actions (three dots).

  2. From the menu, select De-identify.

  3. For Dataset, select dataset1, and for Data store, select de_id.

  4. In the confirmation dialog, click Append.

  5. Click Next.

  6. Click De-identify.

  7. Click the Operations tab in the Google Cloud console to view the progress.

  8. After the operation completes, click the Data stores tab to view the data stores again.

Note: Wait for this operation to complete before moving to the next step.

Bulk export de-identified FHIR data

  • In Cloud Shell, run the following command to bulk export the FHIR data in de_id to the second BigQuery dataset created earlier (ensure that the previous bulk export has completed before running the command):
gcloud healthcare fhir-stores export bq de_id \ --dataset=$DATASET_ID \ --location=$LOCATION \ --bq-dataset=bq://$PROJECT_ID.de_id \ --schema-type=analytics

Click Check my progress to verify the objective.

Data creation

Task 7. Explore data in BigQuery

  1. In the Google Cloud console, on the Navigation menu (Navigation menu icon), select BigQuery. If a welcome dialog appears, click Done.

  2. In the Data Explorer pane, select your Project ID and expand the drop-down. You see the two recently created datasets named dataset1 and de_id.

  3. Select dataset1 and expand the drop-down.

  4. Click the Patient table and view the Schema tab.

  5. Click SQL query (+) to open a new Query editor tab, and then enter the following SQL command to view patient data exported from the FHIR stores:

SELECT id AS patient_id, name[safe_offset(0)].given AS given_name, name[safe_offset(0)].family AS family, birthDate AS birth_date FROM dataset1.Patient LIMIT 10
  1. Click Run.

Click Check my progress to verify the objective.

Exploring data in BigQuery
  1. In the Query editor, run the following SQL command to view de-identified patient data exported from the de-identified FHIR store:
SELECT id AS patient_id, name[safe_offset(0)].given AS given_name, name[safe_offset(0)].family AS family, birthDate AS birth_date FROM de_id.Patient LIMIT 10

Notice the difference in the data. In the query on the de-identified data, given_name and family have been redacted, and birth_date has been date-shifted, while retaining the non-PHI patient_id.

Task 8. Export streaming data to BigQuery

In this task, you create a new FHIR Patient resource in the FHIR store and export the newly created FHIR resource to BigQuery using streaming export.

  1. In the BigQuery Query editor, run the following query to search for Darcy (Smith) in the database:
SELECT id AS patient_id, name[safe_offset(0)].given AS given_name, name[safe_offset(0)].family AS family, birthDate AS birth_date FROM `dataset1.Patient` where name[safe_offset(0)].family="Smith"

This query does not return any results. Next, you stream this patient into the dataset and query again to demonstrate the newly created resource.

To enable BigQuery streaming, you must update the FHIR store's streamConfigs field. To update the FHIR store, make a PATCH request with the following information:

  • The parent dataset
  • The FHIR store
  • The BigQuery dataset
  • The BigQuery project
  • An update mask
  • An access token
  1. In Cloud Shell, run the following PATCH command:
curl -X PATCH \ -H "Authorization: Bearer $(gcloud auth application-default print-access-token)" \ -H "Content-Type: application/json; charset=utf-8" \ --data "{ 'streamConfigs': [ { 'bigqueryDestination': { 'datasetUri': 'bq://$PROJECT_ID.$DATASET_ID', 'schemaConfig': { 'schemaType': 'ANALYTICS' } } } ] }" \ "https://healthcare.googleapis.com/v1/projects/$PROJECT_ID/locations/$LOCATION/datasets/$DATASET_ID/fhirStores/$FHIR_STORE_ID?updateMask=streamConfigs"
  1. Run the following command to load the sample FHIR data into your FHIR store:
curl -X POST \ -H "Authorization: Bearer $(gcloud auth application-default print-access-token)" \ -H "Content-Type: application/fhir+json; charset=utf-8" \ --data "{ \"name\": [ { \"use\": \"official\", \"family\": \"Smith\", \"given\": [ \"Darcy\" ] } ], \"gender\": \"female\", \"birthDate\": \"1970-01-01\", \"resourceType\": \"Patient\" }" \ "https://healthcare.googleapis.com/v1/projects/$PROJECT_ID/locations/$LOCATION/datasets/$DATASET_ID/fhirStores/$FHIR_STORE_ID/fhir/Patient"

In this API call, you create a new FHIR Patient resource in the fhirstore1 FHIR store.

  1. In the BigQuery Query editor, run the following query to search for Darcy in the dataset again:
SELECT id AS patient_id, name[safe_offset(0)].given AS given_name, name[safe_offset(0)].family AS family, birthDate AS birth_date FROM dataset1.Patient where name[safe_offset(0)].family='Smith'

You see a new patient created—the recently imported Darcy patient. This is a result of the streaming FHIR data export of the newly created FHIR Patient resource to the BigQuery dataset.

Lab review

Cloud Healthcare API provides a comprehensive facility for ingesting, storing, managing, and securely exposing healthcare data in FHIR, DICOM, and HL7 v2 formats. Using Cloud Healthcare API, you can ingest and store data from electronic health records systems (EHRs), radiological information systems (RISs), and custom healthcare applications. You can then immediately make that data available to applications for analysis, machine learning prediction and inference, and consumer access.

Cloud Healthcare API enables application access to healthcare data via widely-accepted, standards-based interfaces such as FHIR STU3 and DICOMweb. These APIs allow data ingestion into modality-specific data stores, which support data retrieval, update, search and other functions using familiar standards-based interfaces.

Further, the API integrates with other capabilities in Google Cloud through two primary mechanisms:

  • Pub/Sub, which provides near-real-time updates when data is ingested into a Cloud Healthcare API data store, and
  • Import/export APIs, which allow you to integrate Cloud Healthcare API into both Cloud Storage and BigQuery.

Using Pub/Sub with Cloud Run functions enables you to invoke machine learning models on healthcare data, storing the resulting predictions back in Cloud Healthcare API data store. A similar integration with Cloud Dataflow supports transformation and cleansing of healthcare data prior to use by applications.

To support healthcare research, Cloud Healthcare API offers de-identification capabilities for FHIR and DICOM. This feature allows customers to share data with researchers working on new cutting-edge diagnostics and medicines.

Congratulations!

In this lab, you completed the following tasks:

  • Gained a general understanding of the Cloud Healthcare API and its role in managing healthcare data.
  • Created datasets and stores for FHIR data.
  • Imported FHIR data from Cloud Storage.
  • Exported FHIR data to BigQuery using both bulk data export and streaming export.
  • Executed SQL queries against FHIR data in BigQuery.

Manual Last Updated on November 06, 2026

Lab Last Tested November 05, 2026

Copyright 2026 Google LLC. All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.

Before you begin

  1. Labs create a Google Cloud project and resources for a fixed time
  2. Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
  3. On the top left of your screen, click Start lab to begin

Use private browsing

  1. Copy the provided Username and Password for the lab
  2. Click Open console in private mode

Sign in to the Console

  1. Sign in using your lab credentials. Using other credentials might cause errors or incur charges.
  2. Accept the terms, and skip the recovery resource page
  3. Don't click End lab unless you've finished the lab or want to restart it, as it will clear your work and remove the project

This content is not currently available

We can notify you via email when it becomes available

Great!

We can contact you via email if it becomes available

One lab at a time

Confirm to end all existing labs and start this one

Use private browsing to run the lab

Using an Incognito or private browser window is the best way to run this lab. This prevents any conflicts between your personal account and the Student account, which may cause extra charges incurred to your personal account.