Stay organized with collections
Save and categorize content based on your preferences.
Full name: projects.locations.datasets.hl7V2Stores.messages.ingest
Parses and stores an HL7v2 message. This method triggers an asynchronous notification to any Pub/Sub topic configured in Hl7V2Store.Hl7V2NotificationConfig, if the filtering matches the message. If an MLLP adapter is configured to listen to a Pub/Sub topic, the adapter transmits the message when a notification is received. If the method is successful, it generates a response containing an HL7v2 acknowledgment(ACK) message. If the method encounters an error, it returns a negative acknowledgment(NACK) message. This behavior is suitable for replying to HL7v2 interface systems that expect these acknowledgments.
HTTP request
POST https://healthcare.googleapis.com/v1/{parent=projects/*/locations/*/datasets/*/hl7V2Stores/*}/messages:ingest
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[[["\u003cp\u003eThis service ingests and stores HL7v2 messages within a specified HL7v2 store, which can trigger asynchronous notifications to Pub/Sub topics based on configured filters.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful ingestion, the method returns an HL7v2 acknowledgment (ACK) message, while errors result in a negative acknowledgment (NACK) message, suitable for interfacing with HL7v2 systems.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003eparent\u003c/code\u003e path parameter specifying the HL7v2 store and includes the HL7v2 message data in the request body's \u003ccode\u003emessage\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes an \u003ccode\u003ehl7Ack\u003c/code\u003e field containing the base64-encoded HL7v2 ACK message and a \u003ccode\u003emessage\u003c/code\u003e field representing the created message resource.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this operation necessitates either the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-healthcare\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: messages.ingest\n\n**Full name**: projects.locations.datasets.hl7V2Stores.messages.ingest\n\nParses and stores an HL7v2 message. This method triggers an asynchronous notification to any Pub/Sub topic configured in [Hl7V2Store.Hl7V2NotificationConfig](/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.hl7V2Stores#Hl7V2NotificationConfig), if the filtering matches the message. If an MLLP adapter is configured to listen to a Pub/Sub topic, the adapter transmits the message when a notification is received. If the method is successful, it generates a response containing an HL7v2 acknowledgment(`ACK`) message. If the method encounters an error, it returns a negative acknowledgment(`NACK`) message. This behavior is suitable for replying to HL7v2 interface systems that expect these acknowledgments.\n\n### HTTP request\n\n`POST https://healthcare.googleapis.com/v1/{parent=projects/*/locations/*/datasets/*/hl7V2Stores/*}/messages:ingest`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nAcknowledges that a message has been ingested into the specified HL7v2 store.\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-healthcare`\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]