数据库设计

数据库设计

一、日常护理模块表

1、老人 elder

建立 楼号、单位号、床位号的索引,节省批量查询时间

2、经理 manager

building和unit确定了经理管理的楼层单位,每位老人和护工都有这两项

3、护工 nurse

4、护理关注 nursing_attention

building、unit、bed建立了索引,牺牲内存空间,为提高检索速度

5、护理事项明细 nursing_event

主键有老人id和事项id两项组成
type:事项类型(服药类、兴趣类等)
description:事项描述
time:事项完成时间
others:其他备注
state:事项状态(未完成、已完成、已超时等)
deadline:事项截止日期
unit为提高检索速度

二、体检模块表

1、体检报告 exam_report

主键由老人id和体检日期两项构成
分为两部分:
体检结果 和 体检反馈

2、当前体检日期 current_exam_date

3、当前体检医生负责楼号 current_exam_doctor_building

4、当前体检进度 current_exam_progress

每个老人一条进度,
building、unit、bed加快检索速度
state:总进度状态(未开始、进行中、已完成等)
单科进度

三、院内就诊表

1、院内医生 doctor

2、院内就诊事项 internal_hospital_event

state:事项所处状态
date:发起日期
description:(就诊前)病情描述
医生填写
condition:病人症状
diagnosis:诊断
nursing_advice:护理建议
prescription:是否开处方(yes or no)
enclosure:附件
external_event_id:院外就诊事项id

3、院内就诊处方 internal_prescrition

drug:药名
usage:用法(送服、外敷、含片等)
consumption:用量
others:其他备注

四、院外就诊表

1、院外就诊事项 external_hospital_event

sponsor_type:发起类型(楼层经理发起或院内医生发起)
sponsor_id:发起者id
internal_event_id:院内就诊关联id
state:事项进度
description:(就诊前)病情描述
hospital_name:就诊医院名字
accompany_type:陪同类型(护工陪同或家属陪同)
nid:陪同护工id
nurse_visit_date:就诊日期
registration_info:挂号信息
family_authorization:家属授权证明
family_visit_date:就诊日期
医生填写

2、院外处方 external_prescription