Module: Roqua::Healthy
- Defined in:
- lib/roqua/healthy.rb,
lib/roqua/healthy/a19.rb,
lib/roqua/healthy/oru.rb,
lib/roqua/healthy/client.rb,
lib/roqua/healthy/errors.rb,
lib/roqua/healthy/version.rb,
lib/roqua/healthy/oru/client.rb,
lib/roqua/healthy/a19/fetcher.rb,
lib/roqua/healthy/a19/name_parser.rb,
lib/roqua/healthy/a19/transformer.rb,
lib/roqua/healthy/message_cleaner.rb,
lib/roqua/healthy/a19/phone_parser.rb,
lib/roqua/healthy/a19/address_parser.rb,
lib/roqua/healthy/a19/phone_validator.rb,
lib/roqua/healthy/a19/response_parser.rb,
lib/roqua/healthy/a19/cdis_name_parser.rb,
lib/roqua/healthy/a19/epic_name_parser.rb,
lib/roqua/healthy/a19/response_validator.rb,
lib/roqua/healthy/a19/impulse_name_parser.rb,
lib/roqua/healthy/a19/correct_patient_check.rb
Defined Under Namespace
Modules: A19, MirthErrors, Oru Classes: AuthenticationFailure, Client, ConnectionError, ConnectionRefused, Error, HostUnreachable, IllegalMirthResponse, MessageCleaner, NACK, NoRouteToHost, PatientIdNotInRemote, PatientNotFound, Timeout, UnknownFailure
Constant Summary collapse
- ERRORS =
{ 'Timeout waiting for ACK' => ::Roqua::Healthy::Timeout, "Unable to connect to destination\tSocketTimeoutException\tconnect timed out" => ::Roqua::Healthy::Timeout, 'ERROR: Timeout waiting for response' => ::Roqua::Healthy::Timeout, 'ERROR: SocketTimeoutException: connect timed out' => ::Roqua::Healthy::Timeout, "Unable to connect to destination\tConnectException\tConnection refused" => ::Roqua::Healthy::ConnectionRefused, 'ERROR: ConnectException: Connection refused' => ::Roqua::Healthy::ConnectionRefused, 'ERROR: NoRouteToHostException: No route to host' => ::Roqua::Healthy::NoRouteToHost, "ERROR: NACK sent from receiver. (Rejected)" => ::Roqua::Healthy::NACK, "ERROR: NACK sent from receiver. (Error)" => # ie. Patient not found ::Roqua::Healthy::NACK }.freeze
- VERSION =
healthy version
"1.5.11"
Class Attribute Summary collapse
-
.a19_endpoint ⇒ Object
Returns the value of attribute a19_endpoint.
Class Method Summary collapse
Class Attribute Details
.a19_endpoint ⇒ Object
Returns the value of attribute a19_endpoint.
14 15 16 |
# File 'lib/roqua/healthy.rb', line 14 def a19_endpoint @a19_endpoint end |
Class Method Details
.convert_generic_errors_to_healthy_errors ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/roqua/healthy/errors.rb', line 23 def self.convert_generic_errors_to_healthy_errors yield rescue RestClient::Exceptions::ReadTimeout, RestClient::Exceptions::OpenTimeout => error raise ::Roqua::Healthy::Timeout, error. rescue ::Timeout::Error => error raise ::Roqua::Healthy::Timeout, error. rescue Errno::ETIMEDOUT => error raise ::Roqua::Healthy::Timeout, error. rescue Errno::EHOSTUNREACH => error raise ::Roqua::Healthy::HostUnreachable, error. rescue Errno::ECONNREFUSED => error raise ::Roqua::Healthy::ConnectionRefused, error. end |