更新
This commit is contained in:
@@ -73,6 +73,7 @@ from PySide6.QtWidgets import (
|
||||
QWidget,
|
||||
)
|
||||
|
||||
from ...core.appointment_modes import appointment_type_description, appointment_type_value
|
||||
from .. import icons
|
||||
from ..diagnosis_drawer import DailyRecordPanel
|
||||
from ..diagnosis_editors import FlowLayout
|
||||
@@ -7824,6 +7825,7 @@ class ReceptionPage(QWidget):
|
||||
meta_parts = [f"{gender} · {display_text(age)}岁", phone]
|
||||
if visit_id not in (None, ""):
|
||||
meta_parts.append(f"就诊号:{display_text(visit_id)}")
|
||||
meta_parts.append(appointment_type_description(appointment_type_value(appointment)))
|
||||
self.patient_meta_label.setText(" | ".join(meta_parts))
|
||||
self.patient_meta_label.setToolTip(" · ".join(condition_parts))
|
||||
status_number = (
|
||||
@@ -7866,15 +7868,7 @@ class ReceptionPage(QWidget):
|
||||
display_text(first_value(appointment, "assistant_name"))
|
||||
)
|
||||
self.appointment_labels["type"].setText(
|
||||
display_text(
|
||||
first_value(
|
||||
appointment,
|
||||
"appointment_type_text",
|
||||
"type_text",
|
||||
"appointment_type",
|
||||
"type",
|
||||
)
|
||||
)
|
||||
appointment_type_description(appointment_type_value(appointment))
|
||||
)
|
||||
self.appointment_labels["channel"].setText(
|
||||
display_text(
|
||||
@@ -8928,6 +8922,12 @@ class ReceptionPage(QWidget):
|
||||
self.video_button.setEnabled(
|
||||
appointment_id is not None and diagnosis_id is not None and patient_id is not None
|
||||
)
|
||||
is_text = appointment_type_value(appointment) == "text"
|
||||
self.video_button.setText("图文沟通" if is_text else "IM 问诊")
|
||||
self.video_button.setToolTip(
|
||||
"发送文字、图片和文件;图文问诊不支持音视频通话" if is_text
|
||||
else "打开患者 IM,会话通话能力由本次挂号决定"
|
||||
)
|
||||
self.edit_button.setEnabled(diagnosis_id is not None)
|
||||
report_enabled = (
|
||||
self._can_ai_report
|
||||
@@ -9684,6 +9684,7 @@ class ReceptionPage(QWidget):
|
||||
payload = {
|
||||
"source": "reception",
|
||||
"appointment_id": appointment_id,
|
||||
"appointment_type": appointment_type_value(appointment),
|
||||
"patient_id": patient_id,
|
||||
"diagnosis_id": diagnosis_id,
|
||||
"patient_name": first_value(
|
||||
|
||||
Reference in New Issue
Block a user