1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="healthcare_v1.html">Cloud Healthcare API</a> . <a href="healthcare_v1.projects.html">projects</a> . <a href="healthcare_v1.projects.locations.html">locations</a> . <a href="healthcare_v1.projects.locations.datasets.html">datasets</a> . <a href="healthcare_v1.projects.locations.datasets.hl7V2Stores.html">hl7V2Stores</a> . <a href="healthcare_v1.projects.locations.datasets.hl7V2Stores.messages.html">messages</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#close">close()</a></code></p> 79<p class="firstline">Close httplib2 connections.</p> 80<p class="toc_element"> 81 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p> 82<p class="firstline">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.</p> 83<p class="toc_element"> 84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> 85<p class="firstline">Deletes an HL7v2 message.</p> 86<p class="toc_element"> 87 <code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p> 88<p class="firstline">Gets an HL7v2 message.</p> 89<p class="toc_element"> 90 <code><a href="#ingest">ingest(parent, body=None, x__xgafv=None)</a></code></p> 91<p class="firstline">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.</p> 92<p class="toc_element"> 93 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p> 94<p class="firstline">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.</p> 95<p class="toc_element"> 96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 97<p class="firstline">Retrieves the next page of results.</p> 98<p class="toc_element"> 99 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p> 100<p class="firstline">Update the message. The contents of the message in Message.data and data extracted from the contents such as Message.create_time cannot be altered. Only the Message.labels field is allowed to be updated. The labels in the request are merged with the existing set of labels. Existing labels with the same keys are updated.</p> 101<h3>Method Details</h3> 102<div class="method"> 103 <code class="details" id="close">close()</code> 104 <pre>Close httplib2 connections.</pre> 105</div> 106 107<div class="method"> 108 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code> 109 <pre>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. 110 111Args: 112 parent: string, The name of the dataset this message belongs to. (required) 113 body: object, The request body. 114 The object takes the form of: 115 116{ # Creates a new message. 117 "message": { # A complete HL7v2 message. See [Introduction to HL7 Standards] (https://www.hl7.org/implement/standards/index.cfm?ref=common) for details on the standard. # HL7v2 message. 118 "createTime": "A String", # Output only. The datetime when the message was created. Set by the server. 119 "data": "A String", # Raw message bytes. 120 "labels": { # User-supplied key-value pairs used to organize HL7v2 stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label values are optional, must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given store. 121 "a_key": "A String", 122 }, 123 "messageType": "A String", # The message type for this message. MSH-9.1. 124 "name": "A String", # Resource name of the Message, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server. 125 "parsedData": { # The content of a HL7v2 message in a structured format. # Output only. The parsed version of the raw message data. 126 "segments": [ 127 { # A segment in a structured format. 128 "fields": { # A mapping from the positional location to the value. The key string uses zero-based indexes separated by dots to identify Fields, components and sub-components. A bracket notation is also used to identify different instances of a repeated field. Regex for key: (\d+)(\[\d+\])?(.\d+)?(.\d+)? Examples of (key, value) pairs: * (0.1, "hemoglobin") denotes that the first component of Field 0 has the value "hemoglobin". * (1.1.2, "CBC") denotes that the second sub-component of the first component of Field 1 has the value "CBC". * (1[0].1, "HbA1c") denotes that the first component of the first Instance of Field 1, which is repeated, has the value "HbA1c". 129 "a_key": "A String", 130 }, 131 "segmentId": "A String", # A string that indicates the type of segment. For example, EVN or PID. 132 "setId": "A String", # Set ID for segments that can be in a set. This can be empty if it's missing or isn't applicable. 133 }, 134 ], 135 }, 136 "patientIds": [ # All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message. 137 { # A patient identifier and associated type. 138 "type": "A String", # ID type. For example, MRN or NHS. 139 "value": "A String", # The patient's unique identifier. 140 }, 141 ], 142 "schematizedData": { # The content of an HL7v2 message in a structured format as specified by a schema. # The parsed version of the raw message data schematized according to this store's schemas and type definitions. 143 "data": "A String", # JSON output of the parser. 144 "error": "A String", # The error output of the parser. 145 }, 146 "sendFacility": "A String", # The hospital that this message came from. MSH-4. 147 "sendTime": "A String", # The datetime the sending application sent this message. MSH-7. 148 }, 149} 150 151 x__xgafv: string, V1 error format. 152 Allowed values 153 1 - v1 error format 154 2 - v2 error format 155 156Returns: 157 An object of the form: 158 159 { # A complete HL7v2 message. See [Introduction to HL7 Standards] (https://www.hl7.org/implement/standards/index.cfm?ref=common) for details on the standard. 160 "createTime": "A String", # Output only. The datetime when the message was created. Set by the server. 161 "data": "A String", # Raw message bytes. 162 "labels": { # User-supplied key-value pairs used to organize HL7v2 stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label values are optional, must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given store. 163 "a_key": "A String", 164 }, 165 "messageType": "A String", # The message type for this message. MSH-9.1. 166 "name": "A String", # Resource name of the Message, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server. 167 "parsedData": { # The content of a HL7v2 message in a structured format. # Output only. The parsed version of the raw message data. 168 "segments": [ 169 { # A segment in a structured format. 170 "fields": { # A mapping from the positional location to the value. The key string uses zero-based indexes separated by dots to identify Fields, components and sub-components. A bracket notation is also used to identify different instances of a repeated field. Regex for key: (\d+)(\[\d+\])?(.\d+)?(.\d+)? Examples of (key, value) pairs: * (0.1, "hemoglobin") denotes that the first component of Field 0 has the value "hemoglobin". * (1.1.2, "CBC") denotes that the second sub-component of the first component of Field 1 has the value "CBC". * (1[0].1, "HbA1c") denotes that the first component of the first Instance of Field 1, which is repeated, has the value "HbA1c". 171 "a_key": "A String", 172 }, 173 "segmentId": "A String", # A string that indicates the type of segment. For example, EVN or PID. 174 "setId": "A String", # Set ID for segments that can be in a set. This can be empty if it's missing or isn't applicable. 175 }, 176 ], 177 }, 178 "patientIds": [ # All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message. 179 { # A patient identifier and associated type. 180 "type": "A String", # ID type. For example, MRN or NHS. 181 "value": "A String", # The patient's unique identifier. 182 }, 183 ], 184 "schematizedData": { # The content of an HL7v2 message in a structured format as specified by a schema. # The parsed version of the raw message data schematized according to this store's schemas and type definitions. 185 "data": "A String", # JSON output of the parser. 186 "error": "A String", # The error output of the parser. 187 }, 188 "sendFacility": "A String", # The hospital that this message came from. MSH-4. 189 "sendTime": "A String", # The datetime the sending application sent this message. MSH-7. 190}</pre> 191</div> 192 193<div class="method"> 194 <code class="details" id="delete">delete(name, x__xgafv=None)</code> 195 <pre>Deletes an HL7v2 message. 196 197Args: 198 name: string, The resource name of the HL7v2 message to delete. (required) 199 x__xgafv: string, V1 error format. 200 Allowed values 201 1 - v1 error format 202 2 - v2 error format 203 204Returns: 205 An object of the form: 206 207 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`. 208}</pre> 209</div> 210 211<div class="method"> 212 <code class="details" id="get">get(name, view=None, x__xgafv=None)</code> 213 <pre>Gets an HL7v2 message. 214 215Args: 216 name: string, The resource name of the HL7v2 message to retrieve. (required) 217 view: string, Specifies which parts of the Message resource to return in the response. When unspecified, equivalent to FULL. 218 Allowed values 219 MESSAGE_VIEW_UNSPECIFIED - Not specified, equivalent to FULL. 220 RAW_ONLY - Server responses include all the message fields except parsed_data field, and schematized_data fields. 221 PARSED_ONLY - Server responses include all the message fields except data field, and schematized_data fields. 222 FULL - Server responses include all the message fields. 223 SCHEMATIZED_ONLY - Server responses include all the message fields except data and parsed_data fields. 224 BASIC - Server responses include only the name field. 225 x__xgafv: string, V1 error format. 226 Allowed values 227 1 - v1 error format 228 2 - v2 error format 229 230Returns: 231 An object of the form: 232 233 { # A complete HL7v2 message. See [Introduction to HL7 Standards] (https://www.hl7.org/implement/standards/index.cfm?ref=common) for details on the standard. 234 "createTime": "A String", # Output only. The datetime when the message was created. Set by the server. 235 "data": "A String", # Raw message bytes. 236 "labels": { # User-supplied key-value pairs used to organize HL7v2 stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label values are optional, must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given store. 237 "a_key": "A String", 238 }, 239 "messageType": "A String", # The message type for this message. MSH-9.1. 240 "name": "A String", # Resource name of the Message, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server. 241 "parsedData": { # The content of a HL7v2 message in a structured format. # Output only. The parsed version of the raw message data. 242 "segments": [ 243 { # A segment in a structured format. 244 "fields": { # A mapping from the positional location to the value. The key string uses zero-based indexes separated by dots to identify Fields, components and sub-components. A bracket notation is also used to identify different instances of a repeated field. Regex for key: (\d+)(\[\d+\])?(.\d+)?(.\d+)? Examples of (key, value) pairs: * (0.1, "hemoglobin") denotes that the first component of Field 0 has the value "hemoglobin". * (1.1.2, "CBC") denotes that the second sub-component of the first component of Field 1 has the value "CBC". * (1[0].1, "HbA1c") denotes that the first component of the first Instance of Field 1, which is repeated, has the value "HbA1c". 245 "a_key": "A String", 246 }, 247 "segmentId": "A String", # A string that indicates the type of segment. For example, EVN or PID. 248 "setId": "A String", # Set ID for segments that can be in a set. This can be empty if it's missing or isn't applicable. 249 }, 250 ], 251 }, 252 "patientIds": [ # All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message. 253 { # A patient identifier and associated type. 254 "type": "A String", # ID type. For example, MRN or NHS. 255 "value": "A String", # The patient's unique identifier. 256 }, 257 ], 258 "schematizedData": { # The content of an HL7v2 message in a structured format as specified by a schema. # The parsed version of the raw message data schematized according to this store's schemas and type definitions. 259 "data": "A String", # JSON output of the parser. 260 "error": "A String", # The error output of the parser. 261 }, 262 "sendFacility": "A String", # The hospital that this message came from. MSH-4. 263 "sendTime": "A String", # The datetime the sending application sent this message. MSH-7. 264}</pre> 265</div> 266 267<div class="method"> 268 <code class="details" id="ingest">ingest(parent, body=None, x__xgafv=None)</code> 269 <pre>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. 270 271Args: 272 parent: string, The name of the HL7v2 store this message belongs to. (required) 273 body: object, The request body. 274 The object takes the form of: 275 276{ # Ingests a message into the specified HL7v2 store. 277 "message": { # A complete HL7v2 message. See [Introduction to HL7 Standards] (https://www.hl7.org/implement/standards/index.cfm?ref=common) for details on the standard. # HL7v2 message to ingest. 278 "createTime": "A String", # Output only. The datetime when the message was created. Set by the server. 279 "data": "A String", # Raw message bytes. 280 "labels": { # User-supplied key-value pairs used to organize HL7v2 stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label values are optional, must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given store. 281 "a_key": "A String", 282 }, 283 "messageType": "A String", # The message type for this message. MSH-9.1. 284 "name": "A String", # Resource name of the Message, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server. 285 "parsedData": { # The content of a HL7v2 message in a structured format. # Output only. The parsed version of the raw message data. 286 "segments": [ 287 { # A segment in a structured format. 288 "fields": { # A mapping from the positional location to the value. The key string uses zero-based indexes separated by dots to identify Fields, components and sub-components. A bracket notation is also used to identify different instances of a repeated field. Regex for key: (\d+)(\[\d+\])?(.\d+)?(.\d+)? Examples of (key, value) pairs: * (0.1, "hemoglobin") denotes that the first component of Field 0 has the value "hemoglobin". * (1.1.2, "CBC") denotes that the second sub-component of the first component of Field 1 has the value "CBC". * (1[0].1, "HbA1c") denotes that the first component of the first Instance of Field 1, which is repeated, has the value "HbA1c". 289 "a_key": "A String", 290 }, 291 "segmentId": "A String", # A string that indicates the type of segment. For example, EVN or PID. 292 "setId": "A String", # Set ID for segments that can be in a set. This can be empty if it's missing or isn't applicable. 293 }, 294 ], 295 }, 296 "patientIds": [ # All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message. 297 { # A patient identifier and associated type. 298 "type": "A String", # ID type. For example, MRN or NHS. 299 "value": "A String", # The patient's unique identifier. 300 }, 301 ], 302 "schematizedData": { # The content of an HL7v2 message in a structured format as specified by a schema. # The parsed version of the raw message data schematized according to this store's schemas and type definitions. 303 "data": "A String", # JSON output of the parser. 304 "error": "A String", # The error output of the parser. 305 }, 306 "sendFacility": "A String", # The hospital that this message came from. MSH-4. 307 "sendTime": "A String", # The datetime the sending application sent this message. MSH-7. 308 }, 309} 310 311 x__xgafv: string, V1 error format. 312 Allowed values 313 1 - v1 error format 314 2 - v2 error format 315 316Returns: 317 An object of the form: 318 319 { # Acknowledges that a message has been ingested into the specified HL7v2 store. 320 "hl7Ack": "A String", # HL7v2 ACK message. 321 "message": { # A complete HL7v2 message. See [Introduction to HL7 Standards] (https://www.hl7.org/implement/standards/index.cfm?ref=common) for details on the standard. # Created message resource. 322 "createTime": "A String", # Output only. The datetime when the message was created. Set by the server. 323 "data": "A String", # Raw message bytes. 324 "labels": { # User-supplied key-value pairs used to organize HL7v2 stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label values are optional, must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given store. 325 "a_key": "A String", 326 }, 327 "messageType": "A String", # The message type for this message. MSH-9.1. 328 "name": "A String", # Resource name of the Message, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server. 329 "parsedData": { # The content of a HL7v2 message in a structured format. # Output only. The parsed version of the raw message data. 330 "segments": [ 331 { # A segment in a structured format. 332 "fields": { # A mapping from the positional location to the value. The key string uses zero-based indexes separated by dots to identify Fields, components and sub-components. A bracket notation is also used to identify different instances of a repeated field. Regex for key: (\d+)(\[\d+\])?(.\d+)?(.\d+)? Examples of (key, value) pairs: * (0.1, "hemoglobin") denotes that the first component of Field 0 has the value "hemoglobin". * (1.1.2, "CBC") denotes that the second sub-component of the first component of Field 1 has the value "CBC". * (1[0].1, "HbA1c") denotes that the first component of the first Instance of Field 1, which is repeated, has the value "HbA1c". 333 "a_key": "A String", 334 }, 335 "segmentId": "A String", # A string that indicates the type of segment. For example, EVN or PID. 336 "setId": "A String", # Set ID for segments that can be in a set. This can be empty if it's missing or isn't applicable. 337 }, 338 ], 339 }, 340 "patientIds": [ # All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message. 341 { # A patient identifier and associated type. 342 "type": "A String", # ID type. For example, MRN or NHS. 343 "value": "A String", # The patient's unique identifier. 344 }, 345 ], 346 "schematizedData": { # The content of an HL7v2 message in a structured format as specified by a schema. # The parsed version of the raw message data schematized according to this store's schemas and type definitions. 347 "data": "A String", # JSON output of the parser. 348 "error": "A String", # The error output of the parser. 349 }, 350 "sendFacility": "A String", # The hospital that this message came from. MSH-4. 351 "sendTime": "A String", # The datetime the sending application sent this message. MSH-7. 352 }, 353}</pre> 354</div> 355 356<div class="method"> 357 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code> 358 <pre>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. 359 360Args: 361 parent: string, Name of the HL7v2 store to retrieve messages from. (required) 362 filter: string, Restricts messages returned to those matching a filter. The following syntax is available: * A string field value can be written as text inside quotation marks, for example `"query text"`. The only valid relational operation for text fields is equality (`=`), where text is searched within the field, rather than having the field be equal to the text. For example, `"Comment = great"` returns messages with `great` in the comment field. * A number field value can be written as an integer, a decimal, or an exponential. The valid relational operators for number fields are the equality operator (`=`), along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. * A date field value must be written in `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format. Leading zeros are required for one-digit months and days. The valid relational operators for date fields are the equality operator (`=`) , along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. * Multiple field query expressions can be combined in one query by adding `AND` or `OR` operators between the expressions. If a boolean operator appears within a quoted string, it is not treated as special, it's just another part of the character string to be matched. You can prepend the `NOT` operator to an expression to negate it. Fields/functions available for filtering are: * `message_type`, from the MSH-9.1 field. For example, `NOT message_type = "ADT"`. * `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 < "2017-01-02"`. * `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 < "2017-01-02T00:00:00-05:00"`. * `create_time`, the timestamp when the message was created in the HL7v2 store. Use the RFC3339 time format for comparisons. For example, `create_time < "2017-01-02T00:00:00-05:00"`. * `send_facility`, the care center that the message came from, from the MSH-4 segment. For example, `send_facility = "ABC"`. * `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("123456", "MRN")`. * `labels.x`, a string value of the label with key `x` as set using the Message.labels map. For example, `labels."priority"="high"`. The operator `:*` can be used to assert the existence of a label. For example, `labels."priority":*`. 363 orderBy: string, Orders 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` 364 pageSize: integer, Limit on the number of messages to return in a single response. If not specified, 100 is used. May not be larger than 1000. 365 pageToken: string, The next_page_token value returned from the previous List request, if any. 366 view: string, Specifies 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. 367 Allowed values 368 MESSAGE_VIEW_UNSPECIFIED - Not specified, equivalent to FULL. 369 RAW_ONLY - Server responses include all the message fields except parsed_data field, and schematized_data fields. 370 PARSED_ONLY - Server responses include all the message fields except data field, and schematized_data fields. 371 FULL - Server responses include all the message fields. 372 SCHEMATIZED_ONLY - Server responses include all the message fields except data and parsed_data fields. 373 BASIC - Server responses include only the name field. 374 x__xgafv: string, V1 error format. 375 Allowed values 376 1 - v1 error format 377 2 - v2 error format 378 379Returns: 380 An object of the form: 381 382 { # Lists the messages in the specified HL7v2 store. 383 "hl7V2Messages": [ # The returned Messages. Won't be more Messages than the value of page_size in the request. See view for populated fields. 384 { # A complete HL7v2 message. See [Introduction to HL7 Standards] (https://www.hl7.org/implement/standards/index.cfm?ref=common) for details on the standard. 385 "createTime": "A String", # Output only. The datetime when the message was created. Set by the server. 386 "data": "A String", # Raw message bytes. 387 "labels": { # User-supplied key-value pairs used to organize HL7v2 stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label values are optional, must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given store. 388 "a_key": "A String", 389 }, 390 "messageType": "A String", # The message type for this message. MSH-9.1. 391 "name": "A String", # Resource name of the Message, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server. 392 "parsedData": { # The content of a HL7v2 message in a structured format. # Output only. The parsed version of the raw message data. 393 "segments": [ 394 { # A segment in a structured format. 395 "fields": { # A mapping from the positional location to the value. The key string uses zero-based indexes separated by dots to identify Fields, components and sub-components. A bracket notation is also used to identify different instances of a repeated field. Regex for key: (\d+)(\[\d+\])?(.\d+)?(.\d+)? Examples of (key, value) pairs: * (0.1, "hemoglobin") denotes that the first component of Field 0 has the value "hemoglobin". * (1.1.2, "CBC") denotes that the second sub-component of the first component of Field 1 has the value "CBC". * (1[0].1, "HbA1c") denotes that the first component of the first Instance of Field 1, which is repeated, has the value "HbA1c". 396 "a_key": "A String", 397 }, 398 "segmentId": "A String", # A string that indicates the type of segment. For example, EVN or PID. 399 "setId": "A String", # Set ID for segments that can be in a set. This can be empty if it's missing or isn't applicable. 400 }, 401 ], 402 }, 403 "patientIds": [ # All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message. 404 { # A patient identifier and associated type. 405 "type": "A String", # ID type. For example, MRN or NHS. 406 "value": "A String", # The patient's unique identifier. 407 }, 408 ], 409 "schematizedData": { # The content of an HL7v2 message in a structured format as specified by a schema. # The parsed version of the raw message data schematized according to this store's schemas and type definitions. 410 "data": "A String", # JSON output of the parser. 411 "error": "A String", # The error output of the parser. 412 }, 413 "sendFacility": "A String", # The hospital that this message came from. MSH-4. 414 "sendTime": "A String", # The datetime the sending application sent this message. MSH-7. 415 }, 416 ], 417 "nextPageToken": "A String", # Token to retrieve the next page of results or empty if there are no more results in the list. 418}</pre> 419</div> 420 421<div class="method"> 422 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 423 <pre>Retrieves the next page of results. 424 425Args: 426 previous_request: The request for the previous page. (required) 427 previous_response: The response from the request for the previous page. (required) 428 429Returns: 430 A request object that you can call 'execute()' on to request the next 431 page. Returns None if there are no more items in the collection. 432 </pre> 433</div> 434 435<div class="method"> 436 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code> 437 <pre>Update the message. The contents of the message in Message.data and data extracted from the contents such as Message.create_time cannot be altered. Only the Message.labels field is allowed to be updated. The labels in the request are merged with the existing set of labels. Existing labels with the same keys are updated. 438 439Args: 440 name: string, Resource name of the Message, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server. (required) 441 body: object, The request body. 442 The object takes the form of: 443 444{ # A complete HL7v2 message. See [Introduction to HL7 Standards] (https://www.hl7.org/implement/standards/index.cfm?ref=common) for details on the standard. 445 "createTime": "A String", # Output only. The datetime when the message was created. Set by the server. 446 "data": "A String", # Raw message bytes. 447 "labels": { # User-supplied key-value pairs used to organize HL7v2 stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label values are optional, must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given store. 448 "a_key": "A String", 449 }, 450 "messageType": "A String", # The message type for this message. MSH-9.1. 451 "name": "A String", # Resource name of the Message, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server. 452 "parsedData": { # The content of a HL7v2 message in a structured format. # Output only. The parsed version of the raw message data. 453 "segments": [ 454 { # A segment in a structured format. 455 "fields": { # A mapping from the positional location to the value. The key string uses zero-based indexes separated by dots to identify Fields, components and sub-components. A bracket notation is also used to identify different instances of a repeated field. Regex for key: (\d+)(\[\d+\])?(.\d+)?(.\d+)? Examples of (key, value) pairs: * (0.1, "hemoglobin") denotes that the first component of Field 0 has the value "hemoglobin". * (1.1.2, "CBC") denotes that the second sub-component of the first component of Field 1 has the value "CBC". * (1[0].1, "HbA1c") denotes that the first component of the first Instance of Field 1, which is repeated, has the value "HbA1c". 456 "a_key": "A String", 457 }, 458 "segmentId": "A String", # A string that indicates the type of segment. For example, EVN or PID. 459 "setId": "A String", # Set ID for segments that can be in a set. This can be empty if it's missing or isn't applicable. 460 }, 461 ], 462 }, 463 "patientIds": [ # All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message. 464 { # A patient identifier and associated type. 465 "type": "A String", # ID type. For example, MRN or NHS. 466 "value": "A String", # The patient's unique identifier. 467 }, 468 ], 469 "schematizedData": { # The content of an HL7v2 message in a structured format as specified by a schema. # The parsed version of the raw message data schematized according to this store's schemas and type definitions. 470 "data": "A String", # JSON output of the parser. 471 "error": "A String", # The error output of the parser. 472 }, 473 "sendFacility": "A String", # The hospital that this message came from. MSH-4. 474 "sendTime": "A String", # The datetime the sending application sent this message. MSH-7. 475} 476 477 updateMask: string, The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask 478 x__xgafv: string, V1 error format. 479 Allowed values 480 1 - v1 error format 481 2 - v2 error format 482 483Returns: 484 An object of the form: 485 486 { # A complete HL7v2 message. See [Introduction to HL7 Standards] (https://www.hl7.org/implement/standards/index.cfm?ref=common) for details on the standard. 487 "createTime": "A String", # Output only. The datetime when the message was created. Set by the server. 488 "data": "A String", # Raw message bytes. 489 "labels": { # User-supplied key-value pairs used to organize HL7v2 stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label values are optional, must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given store. 490 "a_key": "A String", 491 }, 492 "messageType": "A String", # The message type for this message. MSH-9.1. 493 "name": "A String", # Resource name of the Message, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server. 494 "parsedData": { # The content of a HL7v2 message in a structured format. # Output only. The parsed version of the raw message data. 495 "segments": [ 496 { # A segment in a structured format. 497 "fields": { # A mapping from the positional location to the value. The key string uses zero-based indexes separated by dots to identify Fields, components and sub-components. A bracket notation is also used to identify different instances of a repeated field. Regex for key: (\d+)(\[\d+\])?(.\d+)?(.\d+)? Examples of (key, value) pairs: * (0.1, "hemoglobin") denotes that the first component of Field 0 has the value "hemoglobin". * (1.1.2, "CBC") denotes that the second sub-component of the first component of Field 1 has the value "CBC". * (1[0].1, "HbA1c") denotes that the first component of the first Instance of Field 1, which is repeated, has the value "HbA1c". 498 "a_key": "A String", 499 }, 500 "segmentId": "A String", # A string that indicates the type of segment. For example, EVN or PID. 501 "setId": "A String", # Set ID for segments that can be in a set. This can be empty if it's missing or isn't applicable. 502 }, 503 ], 504 }, 505 "patientIds": [ # All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message. 506 { # A patient identifier and associated type. 507 "type": "A String", # ID type. For example, MRN or NHS. 508 "value": "A String", # The patient's unique identifier. 509 }, 510 ], 511 "schematizedData": { # The content of an HL7v2 message in a structured format as specified by a schema. # The parsed version of the raw message data schematized according to this store's schemas and type definitions. 512 "data": "A String", # JSON output of the parser. 513 "error": "A String", # The error output of the parser. 514 }, 515 "sendFacility": "A String", # The hospital that this message came from. MSH-4. 516 "sendTime": "A String", # The datetime the sending application sent this message. MSH-7. 517}</pre> 518</div> 519 520</body></html>