Sha256: d1af2d13216711b0772ed8bd86aa9fe70ea82e7576ff83abf3966cb199923de3
Contents?: true
Size: 1.1 KB
Versions: 8
Compression:
Stored size: 1.1 KB
Contents
module Extensions module HL7 module Segments module MSH def self.included base base.send :include, InstanceMethods base.extend ClassMethods end module InstanceMethods def to_hash @hash = {"enc_chars" => self.enc_chars, "seq" => self.seq, "sendingApplication" => self.sending_app, "sendingFacility" => self.sending_facility, "receivingApplication" => self.recv_app, "receivingFacility" => self.recv_facility, "dateTime" => self.time, "security" => self.security, "messageType" => self.message_type.split("^").first, "messageEvent" => self.message_type.split("^").last, "messageControlId" => self.message_control_id, "processingID" => self.processing_id, "versionID" => self.version_id} end end module ClassMethods end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems