Class: Renalware::Pathology::MessageListener

Inherits:
Object
  • Object
show all
Defined in:
app/models/renalware/pathology/message_listener.rb

Instance Method Summary collapse

Instance Method Details

#message_arrived(hl7_message:) ⇒ Object

Note: We are already inside a transaction here



13
14
15
16
17
18
19
# File 'app/models/renalware/pathology/message_listener.rb', line 13

def message_arrived(hl7_message:, **)
  pathology_params = parse_pathology_params(hl7_message)
  create_observation_requests_and_their_child_observations_from(pathology_params)
  #
  # Note: The current_observation_set for the patient is updated by a trigger here!
  #
end