bugGNU Health - Bugs: bug #64269, get_serial function of LabTest...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #64269: get_serial function of LabTest class in health_crypto_lab.py need conside add units.name

Submitter:  Feng Shu <tumashu>
Submitted:  Thu 01 Jun 2023 03:20:49 AM UTC
   
 
Category:  Functionality Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Release:  4.2.0
Module:  health_crypto_lab Component:  Hospital Management

Thu 06 Jul 2023 08:46:23 AM UTC, comment #1: 
Luis Falcon <meanmicio>
Group administrator
Thu 01 Jun 2023 03:20:49 AM UTC, original submission:  

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

Feng Shu <tumashu>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by meanmicio (Posted a comment)
  • -email is unavailable- added by tumashu (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-07-06 meanmicio StatusNone Fixed
        Open/ClosedOpen Closed
        ReleaseNone 4.2.0
        ComponentNone Hospital Management

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code