Stay organized with collections
Save and categorize content based on your preferences.
Full name: projects.locations.datasets.hl7V2Stores.messages.create
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.
HTTP request
POST https://healthcare.googleapis.com/v1beta1/{parent=projects/*/locations/*/datasets/*/hl7V2Stores/*}/messages
[[["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 endpoint, \u003ccode\u003eprojects.locations.datasets.hl7V2Stores.messages.create\u003c/code\u003e, parses and stores an HL7v2 message within a designated HL7v2 store.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful storage, this method can trigger asynchronous notifications to configured Pub/Sub topics based on matching filters specified in the \u003ccode\u003eHl7V2NotificationConfig\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe method uses a \u003ccode\u003ePOST\u003c/code\u003e request to the specified URL, which follows gRPC Transcoding syntax and requires a \u003ccode\u003eparent\u003c/code\u003e parameter indicating the HL7v2 store's location.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include a \u003ccode\u003emessage\u003c/code\u003e field containing the HL7v2 message data, and successful requests will return a new \u003ccode\u003eMessage\u003c/code\u003e instance in the response body.\u003c/p\u003e\n"],["\u003cp\u003eAuthentication for this operation requires either the \u003ccode\u003ehealthcare.hl7V2Messages.create\u003c/code\u003e IAM permission or one of the OAuth scopes \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-healthcare\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: messages.create\n\n**Full name**: projects.locations.datasets.hl7V2Stores.messages.create\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/v1beta1/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.\n\n### HTTP request\n\n`POST https://healthcare.googleapis.com/v1beta1/{parent=projects/*/locations/*/datasets/*/hl7V2Stores/*}/messages`\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\nIf successful, the response body contains a newly created instance of [Message](/healthcare-api/docs/reference/rest/v1beta1/projects.locations.datasets.hl7V2Stores.messages#Message).\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)."]]