GoogleCloudPlatform / nodejs-docs-samples

Node.js samples for Google Cloud Platform products.
https://cloud.google.com/nodejs
Apache License 2.0
2.82k stars 1.95k forks source link

HL7v2Message ID #2835

Closed alexvacharat-abridge closed 1 year ago

alexvacharat-abridge commented 2 years ago

https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/d2ca7bbb436a60527379d4838c319b9c328cfc44/healthcare/hl7v2/getHl7v2Message.js#L39

Where is this hl7v2MessageID from? None of the documentation I've looked at seems to reference it, and the dataStore itself doesn't display them even after having ingested a message.

noerog commented 1 year ago

Hi @alexvacharat-abridge, the HL7v2 message ID is a unique ID returned by the Healthcare API that identifies an HL7v2 message. The ID is generated and returned in the response whenever you create or ingest a message in an HL7v2 store. If you query the HL7v2 store using healthcare/hl7v2/listHl7v2Messages.js, you should a see a list of messages with their ID at the end of the name field, like so:

{ "hl7_v2_messages": [ { "name": "projects/my-project/locations/us-central1/datasets/my-dataset/hl7V2Stores/my-hl7v2-store/messages/MESSAGE_ID", ... }, ... ] }

kweinmeister commented 1 year ago

@noerog do you recommend adding any comments or additional documentation with the information you provided above? If not, can we close the issue?

noerog commented 1 year ago

@kweinmeister I have a PR out in https://github.com/GoogleCloudPlatform/nodejs-docs-samples/pull/2948 to add a comment describing what the HL7v2 message ID is.