Class: Services::Hl7Message
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Services::Hl7Message
- Defined in:
- app/models/services/hl7_message.rb
Constant Summary collapse
- STATUS_RECEIVED =
0
- STATUS_PROCESSED =
1
- STATUS_ERRORED =
2
Instance Method Summary collapse
Instance Method Details
#message_as_hash ⇒ Object
16 17 18 |
# File 'app/models/services/hl7_message.rb', line 16 def .empty? ? {} : ActiveSupport::HashWithIndifferentAccess.new(JSON.parse()) end |
#raw_hl7_message ⇒ Object
20 21 22 23 |
# File 'app/models/services/hl7_message.rb', line 20 def raw_data = ['rawData'] Base64.urlsafe_decode64(raw_data) if raw_data.present? end |