class Google::Apis::HealthcareV1::Message

A complete HL7v2 message. See [Introduction to HL7 Standards] (www.hl7. org/implement/standards/index.cfm?ref=common) for details on the standard.

Attributes

create_time[RW]

Output only. The datetime when the message was created. Set by the server. Corresponds to the JSON property `createTime` @return [String]

data[RW]

Raw message bytes. Corresponds to the JSON property `data` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

labels[RW]

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. Corresponds to the JSON property `labels` @return [Hash<String,String>]

message_type[RW]

The message type for this message. MSH-9.1. Corresponds to the JSON property `messageType` @return [String]

name[RW]

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. Corresponds to the JSON property `name` @return [String]

parsed_data[RW]

The content of a HL7v2 message in a structured format. Corresponds to the JSON property `parsedData` @return [Google::Apis::HealthcareV1::ParsedData]

patient_ids[RW]

All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message. Corresponds to the JSON property `patientIds` @return [Array<Google::Apis::HealthcareV1::PatientId>]

schematized_data[RW]

The content of an HL7v2 message in a structured format as specified by a schema. Corresponds to the JSON property `schematizedData` @return [Google::Apis::HealthcareV1::SchematizedData]

send_facility[RW]

The hospital that this message came from. MSH-4. Corresponds to the JSON property `sendFacility` @return [String]

send_time[RW]

The datetime the sending application sent this message. MSH-7. Corresponds to the JSON property `sendTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/healthcare_v1/classes.rb, line 3008
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/healthcare_v1/classes.rb, line 3013
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @data = args[:data] if args.key?(:data)
  @labels = args[:labels] if args.key?(:labels)
  @message_type = args[:message_type] if args.key?(:message_type)
  @name = args[:name] if args.key?(:name)
  @parsed_data = args[:parsed_data] if args.key?(:parsed_data)
  @patient_ids = args[:patient_ids] if args.key?(:patient_ids)
  @schematized_data = args[:schematized_data] if args.key?(:schematized_data)
  @send_facility = args[:send_facility] if args.key?(:send_facility)
  @send_time = args[:send_time] if args.key?(:send_time)
end