Class: Google::Apis::HealthcareV1alpha2::Message

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/healthcare_v1alpha2/classes.rb,
generated/google/apis/healthcare_v1alpha2/representations.rb,
generated/google/apis/healthcare_v1alpha2/representations.rb

Overview

A complete HL7v2 message. See http://www.hl7.org/implement/standards/index.cfm?ref=common for details on the standard.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Message

Returns a new instance of Message



2098
2099
2100
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 2098

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. The datetime when the message was created. Set by the server. Corresponds to the JSON property createTime

Returns:

  • (String)


2043
2044
2045
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 2043

def create_time
  @create_time
end

#dataString

Raw message bytes. Corresponds to the JSON property data NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


2049
2050
2051
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 2049

def data
  @data
end

#labelsHash<String,String>

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: \pLl\pLo0,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: [\pLl\pLo\pN_-]0,63 No more than 64 labels can be associated with a given store. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


2062
2063
2064
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 2062

def labels
  @labels
end

#message_typeString

The message type and trigger event for this message. MSH-9. Corresponds to the JSON property messageType

Returns:

  • (String)


2067
2068
2069
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 2067

def message_type
  @message_type
end

#nameString

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 propertyname`

Returns:

  • (String)


2075
2076
2077
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 2075

def name
  @name
end

#parsed_dataGoogle::Apis::HealthcareV1alpha2::ParsedData

The content of a HL7v2 message in a structured format. Corresponds to the JSON property parsedData



2080
2081
2082
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 2080

def parsed_data
  @parsed_data
end

#patient_idsArray<Google::Apis::HealthcareV1alpha2::PatientId>

All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message. Corresponds to the JSON property patientIds



2086
2087
2088
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 2086

def patient_ids
  @patient_ids
end

#send_facilityString

The hospital that this message came from. MSH-4. Corresponds to the JSON property sendFacility

Returns:

  • (String)


2091
2092
2093
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 2091

def send_facility
  @send_facility
end

#send_timeString

The datetime the sending application sent this message. MSH-7. Corresponds to the JSON property sendTime

Returns:

  • (String)


2096
2097
2098
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 2096

def send_time
  @send_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 2103

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)
  @send_facility = args[:send_facility] if args.key?(:send_facility)
  @send_time = args[:send_time] if args.key?(:send_time)
end