基本信息 Basic Information

患者信息

姓名:{{ patient.姓名 }}

性别:{{ patient.性别 }}

年龄:{{ patient.年龄 }}

病历号:{{ patient.病历号 }}

数据日期:{{ (patient.日期 or patient.最后一次就诊时间).split(' ')[0] if (patient.日期 or patient.最后一次就诊时间) else '未知' }}

诊所信息

所属诊所:{{ clinic_name }}

最后一次就诊时间:{{ patient.最后一次就诊时间.split(' ')[0] if patient.最后一次就诊时间 else '未知' }}

最后一次就诊诊所:{{ patient.最后一次就诊诊所 or clinic_name }}

最后一次就诊医生:{{ patient.最后一次就诊医生 or '未知医生' }}

特殊诊断信息

{% if patient.牙槽骨吸收 and patient.牙槽骨吸收 == '是' %} 牙槽骨吸收 {% endif %} {% if patient.缺失牙 and patient.缺失牙 != '[]' and patient.缺失牙|string != 'nan' %} {% set missing_teeth = patient.缺失牙 %} {% if missing_teeth.startswith('[') and missing_teeth.endswith(']') %} {% set teeth_list = missing_teeth[1:-1].replace('"', '').split(',') %} {% if teeth_list and teeth_list[0].strip() != '' %} 缺失牙: {{ teeth_list|join(', ') }} {% endif %} {% else %} 缺失牙: {{ missing_teeth }} {% endif %} {% endif %} {% if patient.恒牙萌出空间不足 and patient.恒牙萌出空间不足 == '是' %} 恒牙萌出空间不足 {% endif %}

漏诊信息 Missed Diagnosis

{% if patient.漏诊项 and patient.漏诊项 != '' and patient.漏诊项|string != 'nan' %} {% set missed_diagnosis = patient.漏诊项 %} {% set missed_items = missed_diagnosis.split('\n') %} {% set valid_items = [] %} {% for item_text in missed_items %} {% if item_text.strip() and '漏诊项:' in item_text %} {% set item_parts = item_text.replace('漏诊项:', '').split(',牙位:') %} {% if item_parts|length >= 2 %} {% set item_name = item_parts[0].strip() %} {% set tooth_positions = item_parts[1].strip() %} {% set _ = valid_items.append({'name': item_name, 'positions': tooth_positions}) %} {% else %} {% set item_name = item_text.replace('漏诊项:', '').strip() %} {% set _ = valid_items.append({'name': item_name, 'positions': ''}) %} {% endif %} {% endif %} {% endfor %} {% if valid_items|length == 0 %} {% if '漏诊项:' in missed_diagnosis %} {% set diagnosis_name = missed_diagnosis.split('漏诊项:')[1].split(',')[0] %} {% set _ = valid_items.append({'name': diagnosis_name, 'positions': ''}) %} {% else %} {% set _ = valid_items.append({'name': missed_diagnosis, 'positions': ''}) %} {% endif %} {% endif %}

漏诊统计

漏诊总数:{{ valid_items|length }}项

原始数据:{{ missed_diagnosis[:50] }}...

漏诊项目详情

{% for item in valid_items %}
{{ item.name }}
{% if item.positions and item.positions != '[]' %}
牙位: {{ item.positions }}
{% endif %}
{% endfor %}
{% else %}

无漏诊项目

该患者暂无发现漏诊项目

{% endif %}

上次就诊记录 Last Visit Records

{{ patient.最后一次就诊时间.split(' ')[0] if patient.最后一次就诊时间 else '未知日期' }}

主治医生:{{ patient.最后一次就诊医生 or '未知医生' }}

收费金额
{% set fee_value = patient.上次就诊收费 %} {% if fee_value and fee_value != 0 and fee_value|string != 'nan' and fee_value|string != 'None' %} ¥{{ "%.2f"|format(fee_value|float) }} {% else %} 免费 {% endif %}

上次就诊主诉:

{{ patient.上次就诊主诉 or '无记录' }}

上次就诊诊断:

{{ patient.上次就诊诊断 or '无记录' }}

上次处置:

{{ patient.上次处置 or '无记录' }}

医生诊断:

{{ patient.医生诊断 or '无记录' }}

{% if patient.上次就诊收费项 and patient.上次就诊收费项 != 'null' %}

收费信息

{% if fee_value and fee_value != 0 and fee_value|string != 'nan' and fee_value|string != 'None' %} ¥{{ "%.2f"|format(fee_value|float) }} {% else %} 免费 {% endif %}

收费项目:{{ patient.上次就诊收费项 }}

{% endif %}

口腔回访话术 Oral Callback Script

患者姓名: {{ patient.姓名 }}
年龄性别: {{ patient.年龄 }}岁 {{ patient.性别 }} ({{ patient.病历号 }})
就诊医生: {{ patient.最后一次就诊医生 or '未知' }}
生成时间: {{ patient.最后一次就诊时间.split(' ')[0] if patient.最后一次就诊时间 else '未知' }}
{% if callback_script %} {{ callback_script | safe }}

使用提示:此话术为Dify AI智能生成,请根据实际情况灵活调整使用。建议按照四个模块的顺序进行回访。

{% else %}

暂无回访话术,点击下方按钮生成AI话术

{% endif %}

回访记录 Callback Records ({{ callback_records|length }})

历史记录:以下是该患者的历史回访记录,按时间倒序排列。

{% for record in callback_records %}

回访记录 #{{ loop.index }}

回访时间:{{ record.create_time }}

状态:已回访

{% for method in record.callback_methods %} {{ method }} {% endfor %} {% if record.callback_result %} {{ record.callback_result }} {% endif %}

操作员:{{ record.operator_name }}

{% endfor %}

新建回访记录

病历号:{{ patient.病历号 }}