46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
# 加载初始数据
|
|
doctor load
|
|
medicine load
|
|
ward load
|
|
patient load
|
|
|
|
# 添加患者
|
|
patient add P001 John 45 Male 13800000001
|
|
patient add P002 Jane 35 Female 13800000002
|
|
|
|
# 查看患者列表
|
|
patient list
|
|
|
|
# 添加诊断记录 (case diagnosis add <patientId> <doctorId> <diagnosis> [prescription] [remarks])
|
|
case diagnosis add P001 D001 "High fever" "Antibiotics" "Viral infection suspected"
|
|
case diagnosis add P002 D002 "Cough" "Cough medicine" "Common cold"
|
|
|
|
# 添加药房记录 (case medicine add <patientId> <medicineId> <medicineName> <quantity> <usage> <unitPrice>)
|
|
case medicine add P001 M001 Amoxicillin 100 "一日三次,饭后服用" 5.5
|
|
case medicine add P002 M002 Cough-syrup 50 "一日两次,睡前服用" 8.0
|
|
|
|
# 添加住院记录 (case admission add <patientId> <wardId> <bedId> [reason])
|
|
case admission add P001 W1 B001 "高烧需要住院观察"
|
|
case admission add P002 W2 B002 "咳嗽需要拍胸片"
|
|
|
|
# 查看患者病例
|
|
case view P001
|
|
case view P002
|
|
|
|
# 查看统计信息
|
|
case stats P001
|
|
case stats P002
|
|
|
|
# 出院记录 (case discharge <patientId> [summary])
|
|
case discharge P001 "体温恢复正常,已停药3天"
|
|
case discharge P002 "胸片检查无异常,可回家自我隔离"
|
|
|
|
# 查看日志
|
|
log view 20
|
|
|
|
# 导出日志
|
|
log export logs/demo_logs.txt
|
|
|
|
# 退出
|
|
exit
|