hamyar_paygah.controllers.widgets.mission_details_tab_controller ================================================================ .. py:module:: hamyar_paygah.controllers.widgets.mission_details_tab_controller .. autoapi-nested-parse:: Controller for mission details tab. Attributes ---------- .. autoapisummary:: hamyar_paygah.controllers.widgets.mission_details_tab_controller.NOT_REGISTERED_PERSIAN_TEXT hamyar_paygah.controllers.widgets.mission_details_tab_controller.COLOR_WARNING hamyar_paygah.controllers.widgets.mission_details_tab_controller.COLOR_CRITICAL hamyar_paygah.controllers.widgets.mission_details_tab_controller.RR_CRITICAL_LOW hamyar_paygah.controllers.widgets.mission_details_tab_controller.RR_WARNING_LOW hamyar_paygah.controllers.widgets.mission_details_tab_controller.RR_NORMAL_HIGH hamyar_paygah.controllers.widgets.mission_details_tab_controller.RR_WARNING_HIGH hamyar_paygah.controllers.widgets.mission_details_tab_controller.RR_CRITICAL_HIGH hamyar_paygah.controllers.widgets.mission_details_tab_controller.PULSE_CRITICAL_LOW hamyar_paygah.controllers.widgets.mission_details_tab_controller.PULSE_WARNING_LOW hamyar_paygah.controllers.widgets.mission_details_tab_controller.PULSE_NORMAL_HIGH hamyar_paygah.controllers.widgets.mission_details_tab_controller.PULSE_CRITICAL_HIGH hamyar_paygah.controllers.widgets.mission_details_tab_controller.SPO2_CRITICAL hamyar_paygah.controllers.widgets.mission_details_tab_controller.SPO2_WARNING_HIGH hamyar_paygah.controllers.widgets.mission_details_tab_controller.BS_CRITICAL_LOW hamyar_paygah.controllers.widgets.mission_details_tab_controller.BS_WARNING_LOW hamyar_paygah.controllers.widgets.mission_details_tab_controller.BS_NORMAL_HIGH hamyar_paygah.controllers.widgets.mission_details_tab_controller.BS_CRITICAL_HIGH hamyar_paygah.controllers.widgets.mission_details_tab_controller.BP_WARNING_SYS_HIGH hamyar_paygah.controllers.widgets.mission_details_tab_controller.BP_CRITICAL_SYS_HIGH hamyar_paygah.controllers.widgets.mission_details_tab_controller.BP_WARNING_DIA_HIGH hamyar_paygah.controllers.widgets.mission_details_tab_controller.BP_CRITICAL_DIA_HIGH hamyar_paygah.controllers.widgets.mission_details_tab_controller.BP_WARNING_SYS_LOW hamyar_paygah.controllers.widgets.mission_details_tab_controller.BP_CRITICAL_SYS_LOW hamyar_paygah.controllers.widgets.mission_details_tab_controller.BP_WARNING_DIA_LOW hamyar_paygah.controllers.widgets.mission_details_tab_controller.BP_CRITICAL_DIA_LOW hamyar_paygah.controllers.widgets.mission_details_tab_controller.EYE_GCS_CRITICAL hamyar_paygah.controllers.widgets.mission_details_tab_controller.EYE_GCS_WARNING hamyar_paygah.controllers.widgets.mission_details_tab_controller.EYE_GCS_NORMAL hamyar_paygah.controllers.widgets.mission_details_tab_controller.VERBAL_GCS_CRITICAL hamyar_paygah.controllers.widgets.mission_details_tab_controller.VERBAL_GCS_WARNING hamyar_paygah.controllers.widgets.mission_details_tab_controller.VERBAL_GCS_NORMAL hamyar_paygah.controllers.widgets.mission_details_tab_controller.MOTOR_GCS_CRITICAL hamyar_paygah.controllers.widgets.mission_details_tab_controller.MOTOR_GCS_WARNING hamyar_paygah.controllers.widgets.mission_details_tab_controller.MOTOR_GCS_NORMAL hamyar_paygah.controllers.widgets.mission_details_tab_controller.GCS_CRITICAL hamyar_paygah.controllers.widgets.mission_details_tab_controller.GCS_WARNING_LOW hamyar_paygah.controllers.widgets.mission_details_tab_controller.GCS_WARNING_HIGH Classes ------- .. autoapisummary:: hamyar_paygah.controllers.widgets.mission_details_tab_controller.MissionsDetailsTab Module Contents --------------- .. py:data:: NOT_REGISTERED_PERSIAN_TEXT :type: str :value: 'ثبت نشده' Text to show when an information is not yet registered by EMS .. py:data:: COLOR_WARNING Color to use for warning values that are approaching critical thresholds. .. py:data:: COLOR_CRITICAL Color to use for critical values that have exceeded safe thresholds. .. py:data:: RR_CRITICAL_LOW :value: 8 Respiratory rate less than or equal to this value is considered critical (adult baseline). .. py:data:: RR_WARNING_LOW :value: 11 Lower bound of warning range for respiratory rate (inclusive). Values between RR_CRITICAL_LOW+1 and this value are considered warning. .. py:data:: RR_NORMAL_HIGH :value: 20 Upper bound of normal range for respiratory rate (inclusive). .. py:data:: RR_WARNING_HIGH :value: 24 Upper bound of warning range for respiratory rate (inclusive). .. py:data:: RR_CRITICAL_HIGH :value: 25 Respiratory rate greater than or equal to this value is considered critical (adult baseline). .. py:data:: PULSE_CRITICAL_LOW :value: 50 Pulse rate strictly less than this value is considered critical (adult baseline). .. py:data:: PULSE_WARNING_LOW :value: 59 Lower bound of warning range for pulse rate (inclusive). .. py:data:: PULSE_NORMAL_HIGH :value: 100 Upper bound of normal range for pulse rate (inclusive). .. py:data:: PULSE_CRITICAL_HIGH :value: 120 Pulse rate strictly greater than this value is considered critical (adult baseline). .. py:data:: SPO2_CRITICAL :value: 90 Oxygen saturation strictly less than this value is considered critical. .. py:data:: SPO2_WARNING_HIGH :value: 94 Upper bound of warning oxygen saturation range (inclusive). .. py:data:: BS_CRITICAL_LOW :value: 54 Blood sugar strictly less than this value is considered critical hypoglycemia. .. py:data:: BS_WARNING_LOW :value: 69 Lower bound of warning hypoglycemia range (inclusive). .. py:data:: BS_NORMAL_HIGH :value: 140 Upper bound of normal glucose in blood .. py:data:: BS_CRITICAL_HIGH :value: 250 Blood sugar strictly greater than this value is considered critical hyperglycemia. .. py:data:: BP_WARNING_SYS_HIGH :value: 140 Systolic blood pressure greater than or equal to this value enters warning range. .. py:data:: BP_CRITICAL_SYS_HIGH :value: 180 Systolic blood pressure greater than or equal to this value is considered critical. .. py:data:: BP_WARNING_DIA_HIGH :value: 90 Diastolic blood pressure greater than or equal to this value enters warning range. .. py:data:: BP_CRITICAL_DIA_HIGH :value: 120 Diastolic blood pressure greater than or equal to this value is considered critical. .. py:data:: BP_WARNING_SYS_LOW :value: 90 Systolic blood pressure lower than or equal to this value enters warning range. .. py:data:: BP_CRITICAL_SYS_LOW :value: 70 Systolic blood pressure lower than or equal to this value is considered critical. .. py:data:: BP_WARNING_DIA_LOW :value: 60 Diastolic blood pressure lower than or equal to this value enters warning range. .. py:data:: BP_CRITICAL_DIA_LOW :value: 40 Diastolic blood pressure lower than or equal to this value is considered critical. .. py:data:: EYE_GCS_CRITICAL :value: 2 Eye GCS score less than or equal to this value is considered critical. .. py:data:: EYE_GCS_WARNING :value: 3 Eye GCS score equal to this value is considered warning. .. py:data:: EYE_GCS_NORMAL :value: 4 Eye GCS score equal to this value is considered normal. .. py:data:: VERBAL_GCS_CRITICAL :value: 3 Verbal GCS score less than or equal to this value is considered critical. .. py:data:: VERBAL_GCS_WARNING :value: 4 Verbal GCS score equal to this value is considered warning. .. py:data:: VERBAL_GCS_NORMAL :value: 5 Verbal GCS score equal to this value is considered normal. .. py:data:: MOTOR_GCS_CRITICAL :value: 4 Motor GCS score less than or equal to this value is considered critical. .. py:data:: MOTOR_GCS_WARNING :value: 5 Motor GCS score equal to this value is considered warning. .. py:data:: MOTOR_GCS_NORMAL :value: 6 Motor GCS score equal to this value is considered normal. .. py:data:: GCS_CRITICAL :value: 8 Total GCS less than or equal to this value is considered critical (severe impairment). .. py:data:: GCS_WARNING_LOW :value: 9 Lower bound of warning GCS range (inclusive). .. py:data:: GCS_WARNING_HIGH :value: 14 Upper bound of warning GCS range (inclusive). A score of 15 is considered normal. .. py:class:: MissionsDetailsTab Bases: :py:obj:`PySide6.QtWidgets.QWidget` Tab that enables user to retrieve details of a mission. .. py:attribute:: ui .. py:method:: on_search_button_clicked() :async: Loads the mission details from server and populates the fields. .. py:method:: _clear_data() Clears all the fields and checkboxes in the UI. .. py:method:: _populate_information_tab(mission_details) Populates the information tab with data of the mission details model. .. py:method:: _populate_times_and_distances_tab(mission_details) Populates the times and distances tab with data from mission details model. .. py:method:: _populate_location_and_emergency_tab(mission_details) Populates the location and emergency tab with data from mission details model. .. py:method:: _populate_symptoms_tab(mission_details) Populates the symptoms tab from mission details data. .. py:method:: _setup_vital_signs_table() .. py:method:: _classify_respiratory_rate(value) .. py:method:: _classify_pulse(value) .. py:method:: _classify_blood_pressure(value) .. py:method:: _classify_blood_sugar(value) .. py:method:: _classify_spo2(value) .. py:method:: _classify_eye_gcs(value) .. py:method:: _classify_verbal_gcs(value) .. py:method:: _classify_motor_gcs(value) .. py:method:: _classify_gcs_total(value) .. py:method:: _classify_vital_sign(row, value) Classifies a vital sign value into normal, warning, or critical state. .. py:method:: _populate_vital_signs_table(mission_details) Populates the vital signs table from mission details data. .. py:method:: _populate_medical_history_section(mission_details) Populates the medical history section by data of mission details. .. py:method:: _populate_pupils_lungs_heart_section(mission_details) Populates the pupils, lungs and heart section by data of mission details. .. py:method:: _populate_trauma_types_section(mission_details) Populates the trauma types section by data of mission details. .. py:method:: _populate_medical_actions_section(mission_details) Populates the medical actions section by data of mission details. .. py:method:: _setup_drugs_list_table() Setups the drugs list table with appropriate row labels and initial configuration. .. py:method:: _populate_drugs_list_table(mission_details) Populates the drugs list table from mission details data. .. py:method:: _populate_consumables_list_table(mission_details) Populates the consumables list table from mission details data. .. py:method:: _populate_medical_center_section(mission_details) Populates the medical center section by data of mission details. .. py:method:: set_mission_and_search(mission_id, patient_id) Fill inputs and trigger search.