66 lines
4.9 KiB
PHP
66 lines
4.9 KiB
PHP
<?php
|
||
|
||
declare(strict_types=1);
|
||
|
||
/** Synthetic engineering fixture. No real patient, record mutation or reference prescription. */
|
||
final class CompleteTcmCase
|
||
{
|
||
public static function current(): array
|
||
{
|
||
return [
|
||
'id' => 900000001, 'patient_id' => 0, 'patient_name' => '独立合成测试病例(非真实患者)',
|
||
'gender' => 1, 'gender_text' => '男', 'age' => 54, 'diagnosis_date' => strtotime('2026-10-23'),
|
||
'height' => 170, 'weight' => 65, 'bmi' => 22.5, 'systolic_pressure' => 124,
|
||
'diastolic_pressure' => 76, 'heart_rate' => 78, 'temperature' => 36.5,
|
||
'fasting_blood_sugar' => 7.2, 'postprandial_blood_sugar' => 9.0, 'hba1c' => 7.1,
|
||
'chief_complaint' => '乏力、动则气短、自汗、口干3个月。',
|
||
'present_illness' => '合成接诊记录:神疲乏力,轻微活动后气短,白天自汗、活动后加重,口干欲饮、少量频饮。'
|
||
. '无恶寒发热,无高热烦渴、汗出淋漓或意识异常。无明显五心烦热、潮热盗汗,无畏寒肢冷。'
|
||
. '食欲一般,大便稍干、每日1次,小便量较以往略多、夜尿1次。无咳嗽咯痰、胸痛心悸、浮肿或腹泻。'
|
||
. '此次症状逐渐出现,无明显急性感染诱因;睡眠一般,未记录腰酸耳鸣或固定刺痛。',
|
||
'tongue' => '本次面诊记录:舌质淡红,舌面少津,苔少;无黄腻苔、紫暗或瘀斑。',
|
||
'pulse' => '本次医师切诊:脉细弱,按之无力;不浮、不滑、不紧。',
|
||
'symptoms' => '望诊神疲、面色少华;闻诊语声低微,无喘促及异常气味。问诊及切诊见本次记录。',
|
||
'local_hospital_diagnosis' => '2型糖尿病', 'diabetes_discovery_year' => 4,
|
||
'past_history' => '合成病史:2型糖尿病4年;无已知冠心病、心衰或慢性肾病。',
|
||
'current_medications' => '二甲双胍0.5g,每日2次,既有医嘱;未使用胰岛素或中药。',
|
||
'allergy_history' => 0, 'allergy_history_text' => '本次询问无已知药物过敏史',
|
||
'family_history' => 0, 'surgery_history' => 0, 'trauma_history' => 0,
|
||
'clinical_diagnosis' => '已有西医诊断为2型糖尿病,本次中医证名未预填。',
|
||
'remark' => '全部数据为独立构造的工程验收资料,不对应真实患者。无附件,不从图片或心率推断舌脉。',
|
||
];
|
||
}
|
||
|
||
public static function rows(): array
|
||
{
|
||
$d = self::current();
|
||
return [
|
||
'diagnoses' => [$d],
|
||
'doctor_notes' => [[
|
||
'id' => 900000002, 'diagnosis_id' => $d['id'], 'note_date' => '2026-10-23',
|
||
'content' => '独立合成检查资料:2026-10-20,ALT 22U/L、肌酐78μmol/L、eGFR 96mL/min/1.73m²、尿ACR 12mg/g。'
|
||
. '本次BP124/76mmHg、HR78次/分。过敏询问见本次病历,所有新用药仍需医师复核。',
|
||
]],
|
||
'blood_records' => [
|
||
['record_date' => '2026-10-21', 'fasting_blood_sugar' => 7.1, 'postprandial_blood_sugar' => 8.9,
|
||
'systolic_pressure' => 122, 'diastolic_pressure' => 74, 'western_medicine' => '按既有二甲双胍医嘱服用', 'insulin' => '未使用'],
|
||
['record_date' => '2026-10-22', 'fasting_blood_sugar' => 7.3, 'postprandial_blood_sugar' => 9.1,
|
||
'systolic_pressure' => 124, 'diastolic_pressure' => 76, 'western_medicine' => '按既有二甲双胍医嘱服用', 'insulin' => '未使用'],
|
||
],
|
||
'diet_records' => [['record_date' => '2026-10-22', 'breakfast' => '燕麦、鸡蛋', 'lunch' => '米饭、蔬菜、鱼',
|
||
'dinner' => '杂粮、蔬菜', 'note' => '合成记录:三餐规律,无节食。']],
|
||
'exercise_records' => [['record_date' => '2026-10-22', 'exercise_type' => '步行', 'duration' => 20,
|
||
'note' => '活动后乏力、汗出较明显,无胸痛或晕厥。']],
|
||
'prescriptions' => [[
|
||
'id' => 900000003, 'diagnosis_id' => $d['id'], 'prescription_date' => '2020-05-02',
|
||
'prescription_name' => '藿香正气散(旧记录、早已停用)', 'clinical_diagnosis' => '当年短期胃肠不适,非本次接诊',
|
||
'usage_instruction' => '历史事实,仅用于检查模型是否混淆时点;不代表本次适用。',
|
||
]],
|
||
'im_messages' => [['msg_time' => strtotime('2026-10-23 09:00:00'), 'msg_type' => 'text',
|
||
'text' => '合成访谈:活动后出汗和气短明显,喝水每次不多,没有最近高热、恶寒、腹泻。']],
|
||
'wechat_messages' => [], 'call_records' => [], 'transcript_segments' => [],
|
||
'tracking_notes' => [], 'todos' => [], 'as_of' => strtotime('2026-10-23 12:00:00'),
|
||
];
|
||
}
|
||
}
|