healthcare.projects.locations.datasets.hl7V2Stores.messages.list

GET {{baseUrl}}/v1/:parent/messages?filter=<string>&orderBy=<string>&pageSize=<integer>&pageToken=<string>&view=<string>&$.xgafv=<string>&access_token=<string>&alt=<string>&callback=<string>&fields=<string>&key=<string>&oauth_token=<string>&prettyPrint=<boolean>&quotaUser=<string>&upload_protocol=<string>&uploadType=<string>

Lists all the messages in the given HL7v2 store with support for filtering. Note: HL7v2 messages are indexed asynchronously, so there might be a slight delay between the time a message is created and when it can be found through a filter.

Request Params

KeyDatatypeRequiredDescription
filterstringRestricts messages returned to those matching a filter. Syntax: https://cloud.google.com/appengine/docs/standard/python/search/query_strings Fields/functions available for filtering are: * message_type, from the MSH-9.1 field. For example, NOT message_type = &quot;ADT&quot;. * send_date or sendDate, the YYYY-MM-DD date the message was sent in the dataset's time_zone, from the MSH-7 segment. For example, send_date &lt; &quot;2017-01-02&quot;. * send_time, the timestamp when the message was sent, using the RFC3339 time format for comparisons, from the MSH-7 segment. For example, send_time &lt; &quot;2017-01-02T00:00:00-05:00&quot;. * send_facility, the care center that the message came from, from the MSH-4 segment. For example, send_facility = &quot;ABC&quot;. * PatientId(value, type), which matches if the message lists a patient having an ID of the given value and type in the PID-2, PID-3, or PID-4 segments. For example, PatientId(&quot;123456&quot;, &quot;MRN&quot;). * labels.x, a string value of the label with key x as set using the Message.labels map. For example, labels.&quot;priority&quot;=&quot;high&quot;. The operator :* can be used to assert the existence of a label. For example, labels.&quot;priority&quot;:*.
orderBystringOrders messages returned by the specified order_by clause. Syntax: https://cloud.google.com/apis/design/design_patterns#sorting_order Fields available for ordering are: * send_time
pageSizestringLimit on the number of messages to return in a single response. If zero the default page size of 100 is used.
pageTokenstringThe next_page_token value returned from the previous List request, if any.
viewstringSpecifies the parts of the Message to return in the response. When unspecified, equivalent to BASIC. Setting this to anything other than BASIC with a page_size larger than the default can generate a large response, which impacts the performance of this method.
$.xgafvstringV1 error format.
access_tokenstringOAuth access token.
altstringData format for response.
callbackstringJSONP
fieldsstringSelector specifying which fields to include in a partial response.
keystringAPI key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_tokenstringOAuth 2.0 token for the current user.
prettyPrintstringReturns response with indentations and line breaks.
quotaUserstringAvailable to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocolstringUpload protocol for media (e.g. "raw", "multipart").
uploadTypestringLegacy upload protocol for media (e.g. "media", "multipart").

RESPONSES

status: OK

{&quot;hl7V2Messages&quot;:[{&quot;createTime&quot;:&quot;in cillum deserunt id&quot;,&quot;data&quot;:&quot;\u003cbyte\u003e&quot;,&quot;labels&quot;:&quot;\u003cobject\u003e&quot;,&quot;messageType&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;parsedData&quot;:{&quot;segments&quot;:[{&quot;fields&quot;:{},&quot;segmentId&quot;:&quot;voluptate nisi in&quot;,&quot;setId&quot;:&quot;ipsum&quot;},{&quot;fields&quot;:{},&quot;segmentId&quot;:&quot;et enim eiusmod&quot;,&quot;setId&quot;:&quot;cillum eiusmod&quot;}]},&quot;patientIds&quot;:[{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003cstring\u003e&quot;},{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003cstring\u003e&quot;}],&quot;sendFacility&quot;:&quot;\u003cstring\u003e&quot;,&quot;sendTime&quot;:&quot;\u003cgoogle-datetime\u003e&quot;},{&quot;createTime&quot;:&quot;labore veniam&quot;,&quot;data&quot;:&quot;\u003cbyte\u003e&quot;,&quot;labels&quot;:&quot;\u003cobject\u003e&quot;,&quot;messageType&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;parsedData&quot;:{&quot;segments&quot;:[{&quot;fields&quot;:{},&quot;segmentId&quot;:&quot;in tempor veniam&quot;,&quot;setId&quot;:&quot;velit&quot;},{&quot;fields&quot;:{},&quot;segmentId&quot;:&quot;cillum enim elit non est&quot;,&quot;setId&quot;:&quot;nostrud deserunt ipsum magna&quot;}]},&quot;patientIds&quot;:[{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003cstring\u003e&quot;},{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003cstring\u003e&quot;}],&quot;sendFacility&quot;:&quot;\u003cstring\u003e&quot;,&quot;sendTime&quot;:&quot;\u003cgoogle-datetime\u003e&quot;}],&quot;nextPageToken&quot;:&quot;irure quis officia&quot;}