Class: Renalware::Patients::Ingestion::MessageMappers::Patient
- Inherits:
-
Renalware::Patients::Ingestion::MessageMapper
- Object
- Renalware::Patients::Ingestion::MessageMapper
- Renalware::Patients::Ingestion::MessageMappers::Patient
- Defined in:
- app/models/renalware/patients/ingestion/message_mappers/patient.rb
Overview
Given an HL7 message that instructs us to update a patient (eg ADT^A31) or add a new one (ADT^A28) we parse the patient level information from the HL7 message and update or create the patient.
Instance Attribute Summary collapse
-
#patient ⇒ Object
readonly
Returns the value of attribute patient.
Attributes inherited from Renalware::Patients::Ingestion::MessageMapper
Instance Method Summary collapse
- #fetch ⇒ Object
-
#initialize(message, patient = nil) ⇒ Patient
constructor
A new instance of Patient.
Constructor Details
Instance Attribute Details
#patient ⇒ Object (readonly)
Returns the value of attribute patient.
22 23 24 |
# File 'app/models/renalware/patients/ingestion/message_mappers/patient.rb', line 22 def patient @patient end |
Instance Method Details
#fetch ⇒ Object
24 25 26 27 |
# File 'app/models/renalware/patients/ingestion/message_mappers/patient.rb', line 24 def fetch map_attributes patient end |