HealthRecordCommunity
HL7🌏 International🏛 Google CloudEnriched

How to Export HL7v2 Messages to Pub/Sub

Exporta mensajes de HL7v2 a Pub/Sub | Cloud Healthcare API

November 15, 2025Google Cloud

Summary

This guide explains how to export messages from an HL7v2 data store within Google Cloud Healthcare API to a Pub/Sub topic. This method addresses the lack of automatic notification mechanism when new HL7v2 messages are imported into a data warehouse.

Details

This article provides technical instructions on exporting HL7v2 medical messages to a Pub/Sub topic using the Google Cloud Healthcare API. Since importing new HL7v2 messages into a data store does not automatically trigger Pub/Sub notifications, the `hl7V2Stores.export` method must be used. To perform this process, it is necessary to first enable the Pub/Sub API and grant appropriate permissions (the `pubsub.publisher` role) to the service account. The export requires a POST request specifying the target dataset, HL7v2 store ID, and the destination Pub/Sub topic. Furthermore, filtering functionality allows users to selectively export only messages that meet specific criteria, such as message type (e.g., ADT), send date (`send_date`), or send time (`send_time`). This provides crucial technical information for enhancing data processing flexibility and efficiency in healthcare IT systems.

📰
Read Original Article
docs.cloud.google.com

Original content copyright by respective publishers