URL: <https://savannah.gnu.org/bugs/?64269>
Summary: get_serial function of LabTest class in health_crypto_lab.py need conside add units.name Group: GNU Health Submitter: tumashu Submitted: Thu 01 Jun 2023 03:20:49 AM UTC Category: Functionality Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Release: None Discussion Lock: Any Module: health_crypto_lab Component: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Thu 01 Jun 2023 03:20:49 AM UTC By: Feng Shu <tumashu> I think unit.name should add behind line.result -------------------------- @classmethod def get_serial(cls, document): analyte_line = [] for line in document.critearea: line_elements = [ line.name or '', line.result or '', line.result_text or '', line.remarks or ''] analyte_line.append(line_elements) data_to_serialize = { 'Lab_test': str(document.name) or '', 'Test': str(document.test.rec_name) or '', 'HP': str(document.requestor.rec_name), 'Patient': str(document.patient.rec_name), 'Patient_ID': str(document.patient.name.ref) or '', 'Analyte_line': str(analyte_line), } serialized_doc = str(HealthCrypto().serialize(data_to_serialize)) return serialized_doc _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?64269> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/