Class: Google::Apis::HealthcareV1beta1::Message
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::Message
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/healthcare_v1beta1/classes.rb,
generated/google/apis/healthcare_v1beta1/representations.rb,
generated/google/apis/healthcare_v1beta1/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
-
#create_time ⇒ String
Output only.
-
#data ⇒ String
Raw message bytes.
-
#labels ⇒ Hash<String,String>
User-supplied key-value pairs used to organize HL7v2 stores.
-
#message_type ⇒ String
The message type and trigger event for this message.
-
#name ⇒ String
Resource name of the Message, of the form
projects/
project_id/datasets/
dataset_id/hl7V2Stores/
hl7_v2_store_id/ messages/
message_id``. -
#parsed_data ⇒ Google::Apis::HealthcareV1beta1::ParsedData
The content of a HL7v2 message in a structured format.
-
#patient_ids ⇒ Array<Google::Apis::HealthcareV1beta1::PatientId>
All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message.
-
#send_facility ⇒ String
The hospital that this message came from.
-
#send_time ⇒ String
The datetime the sending application sent this message.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Message
constructor
A new instance of Message.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Message
Returns a new instance of Message.
2057 2058 2059 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2057 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The datetime when the message was created. Set by the server.
Corresponds to the JSON property createTime
2002 2003 2004 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2002 def create_time @create_time end |
#data ⇒ String
Raw message bytes.
Corresponds to the JSON property data
NOTE: Values are automatically base64 encoded/decoded in the client library.
2008 2009 2010 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2008 def data @data end |
#labels ⇒ Hash<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
\pLo
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: [\pLl
\pLo
\pN
_-]0,63
No more than 64 labels can be associated with a given store.
Corresponds to the JSON property labels
2021 2022 2023 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2021 def labels @labels end |
#message_type ⇒ String
The message type and trigger event for this message. MSH-9.
Corresponds to the JSON property messageType
2026 2027 2028 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2026 def @message_type end |
#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.
Corresponds to the JSON property
name`
2034 2035 2036 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2034 def name @name end |
#parsed_data ⇒ Google::Apis::HealthcareV1beta1::ParsedData
The content of a HL7v2 message in a structured format.
Corresponds to the JSON property parsedData
2039 2040 2041 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2039 def parsed_data @parsed_data end |
#patient_ids ⇒ Array<Google::Apis::HealthcareV1beta1::PatientId>
All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this
message.
Corresponds to the JSON property patientIds
2045 2046 2047 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2045 def patient_ids @patient_ids end |
#send_facility ⇒ String
The hospital that this message came from. MSH-4.
Corresponds to the JSON property sendFacility
2050 2051 2052 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2050 def send_facility @send_facility end |
#send_time ⇒ String
The datetime the sending application sent this message. MSH-7.
Corresponds to the JSON property sendTime
2055 2056 2057 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2055 def send_time @send_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2062 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 |