Class: Google::Apis::HealthcareV1::Message
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1::Message
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/healthcare_v1/classes.rb,
lib/google/apis/healthcare_v1/representations.rb,
lib/google/apis/healthcare_v1/representations.rb
Overview
A complete HL7v2 message. See Introduction to HL7 Standards for details on the standard.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#data ⇒ String
Required.
-
#labels ⇒ Hash<String,String>
User-supplied key-value pairs used to organize HL7v2 stores.
-
#message_type ⇒ String
The message type for this message.
-
#name ⇒ String
Output only.
-
#parsed_data ⇒ Google::Apis::HealthcareV1::ParsedData
The content of a HL7v2 message in a structured format.
-
#patient_ids ⇒ Array<Google::Apis::HealthcareV1::PatientId>
All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message.
-
#schematized_data ⇒ Google::Apis::HealthcareV1::SchematizedData
The content of an HL7v2 message in a structured format as specified by a schema.
-
#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.
Constructor Details
#initialize(**args) ⇒ Message
Returns a new instance of Message.
3706 3707 3708 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3706 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
3649 3650 3651 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3649 def create_time @create_time end |
#data ⇒ String
Required. Raw message bytes.
Corresponds to the JSON property data
NOTE: Values are automatically base64 encoded/decoded in the client library.
3655 3656 3657 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3655 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
3666 3667 3668 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3666 def labels @labels end |
#message_type ⇒ String
The message type for this message. MSH-9.1.
Corresponds to the JSON property messageType
3671 3672 3673 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3671 def @message_type end |
#name ⇒ String
Output only. Resource name of the Message, of the form projects/
project_id/
locations/
location_id/datasets/
dataset_id/hl7V2Stores/
hl7_v2_store_id/
messages/
message_id`. Assigned by the server.
Corresponds to the JSON property
name`
3678 3679 3680 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3678 def name @name end |
#parsed_data ⇒ Google::Apis::HealthcareV1::ParsedData
The content of a HL7v2 message in a structured format.
Corresponds to the JSON property parsedData
3683 3684 3685 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3683 def parsed_data @parsed_data end |
#patient_ids ⇒ Array<Google::Apis::HealthcareV1::PatientId>
All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message.
Corresponds to the JSON property patientIds
3688 3689 3690 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3688 def patient_ids @patient_ids end |
#schematized_data ⇒ Google::Apis::HealthcareV1::SchematizedData
The content of an HL7v2 message in a structured format as specified by a
schema.
Corresponds to the JSON property schematizedData
3694 3695 3696 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3694 def schematized_data @schematized_data end |
#send_facility ⇒ String
The hospital that this message came from. MSH-4.
Corresponds to the JSON property sendFacility
3699 3700 3701 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3699 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
3704 3705 3706 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3704 def send_time @send_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3711 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 |